Root User Login
Modify/Etc/samba/smb. conf
Join
[Share]
Path =/opt/share
Writeable = Yes
Browseable = Yes
Guest OK = Yes
Start the service
[Root @ localhost ~] #/Etc/init. d/SMB start
Start the smb service: [OK]
Start nmb service: [OK]
Stop restarting
[Root @ localhost ~] #/Etc/init. d/SMB stop
[Root @ localhost ~] #/Etc/init. d/SMB restart
Label http://www.linuxsir.org/main/node/158
Samba
Server folder permission allocation instance Using the Samba server as a file sharing Server is a good choice. The permission allocation mechanism in Linux is much better than that in Windows ~~~ I used to get a Shared Server on win2003, but it was actually broken down by the Windows permission allocation mechanism. Haha ~~~ I feel it once, and I don't want to get it again ~~~ I switched to Linux directly ~~~ There are too many installation methods on the internet, and I don't have any new things to write. Haha, just summarize your own folder permission allocation ~~~ Edit the samba configuration file: # vi/etc/samba/smb. add the following statement at the end of the conf file: In the following example, both the public user and the smbuser user have the read permission for the/opt/SMB/directory. [Share] // The folder name displayed during access comment = File Share Path =/opt/SMB/valid users = Public smbuser public = No writable = No printable = No create mask = 0444 in the following example, both public and smbuser users have write permission on the/opt/SMB/directory. [You are my owner!] Comment = temp folder Path =/opt/temp/valid users = Public smbuser public = No writable = Yes printable = No create mask = 0765 different entries from the folder with the same configuration as the first one, there are different permissions after entering. The following configuration gives the smbuser the permission to add and delete, that is, write permission. [Admin folder] Comment = File Share Path =/opt/SMB/valid users = smbuser public = No writable = Yes printable = No create mask = 0765 note: SMB. the access permission configured in conf is related to the read and write permissions of the shared folder and the owner! When Samba is configured, you often encounter errors that cannot be opened in the samba folder! In this case, do not use the # ll command to check the permission of the shared folder. If not, use the CHMOD or CHOWN command to increase the permission.