Article Title: three typical configurations of Samba. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Pub-you can read, write, and delete files without a password.
Read-only-the password is not required, but only the file can be read.
User1-requires a password to read, write, and delete files.
The procedure is as follows:
1. log on to the system as the root user.
2. edit the/etc/smb. conf file and change "unix password sync = no" to "unix password sync = yes ". In this way, the system will be used in the future.
The password is automatically updated to/etc/smbpasswd (Samba account password file ).
3. add the following directories to the/home directory and specify the permissions for these directories:
/Home/pub nobody: no body 777
/Home/read-only root: root 755.
/Home/user1user1: user1 700
4. edit the/etc/smb. conf file and modify it:
Security = share
5. edit the/etc/smb. conf file and add the following sentence to the end of the file:
[Public]
Comment = Public Areas
Path =/home/pub
Browseable = yes
Guest OK = yes
Writable = yes
[Read-only]
Comment = Read-Only Areas
Path =/home/read-only
Browseable = yes
Guest OK = yes
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