1. Open the Ubuntu terminal, enter the sudoapt-getinstallsambasmbfs2, create a shared share. Anonymous Access, only read. The user smbuser can write and read data. 1), sudogroupadd-g300smb2), sudouseradd-u300-g300-d/dev/null-s/dev/nullsmbguest3), smb
1. Open the Ubuntu terminal and enter sudo apt-get install samba smbfs
2. Create a shared share. It can be accessed anonymously and can only be read. The user smbuser can write and read data.
1) sudo groupadd-g 300 smb
2) sudo useradd-u 300-g 300-d/dev/null-s/dev/null smbguest
3) smbguest must be consistent with the one defined in the guest account = smbguest field (see modify smb configuration file later ).
4) sudo useradd-u 301-g 300-d/dev/null-s/dev/null smbuser
5), security = user (this step may be a problem. If there is a problem, it will jump to 6)
6) sudo mkdir/home/smbhome
7) sudo chown smbuser/home/smbhome
8), sudo chgrp smb/home/smbhome
9), sudo chmod 0775/home/smbhome
10) sudo smbpasswd-a smbuser
Note:
Add an smb account and set a password
Sudo smbpasswd-a smbuser
Delete an smb account
Sudo smbpasswd-x smbuser
3. Modify the smb configuration file
Sudo cp/etc/samba/smb. conf/etc/samba/smb. conf. bak
Sudo gedit/etc/samba/smb. conf
Search for and modify the following lines:
; Workgroup = MSHOME
Remove the annotator, and modify MSHOME as your working group name.
View the Working Group Name of a computer
; Security = user
Remove the annotator. Use the user Authentication mode.
; Guest account = nobody
Remove the annotator, and change nobody to smbguest.