SMB server configuration

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.