LINUX smb lab step-Linux Enterprise Application-Linux server application information. The following is a detailed description. Step 1
Mount
Mount/dev/cdrom/media/cdrom
Rpm-qa | grep samba
Start service smb start ===/ etc/init. d/smb start
We share a directory that allows a group to read and write data.
Step 2
(Groupadd share create user user1
And add usermod-g share user1 to the Group)
Useradd user1
Passwd user1 (123)
Groupadd share
Usermod-g share user1
Step 3
We append Permissions
Chown: share/home/share
Chmod-c g + wxr/home/share (permission mode changed to 0775rwxrwxr-x)
Step 4
We compile the samba configuration file.
Vi/etc/samba/smb. conf
[Share]
Comment = samba's share
Writable = yes = @ share = write list
Path =/home/share
You still need to write this user to smbpasswd.
Cd/etc/samba
Ls
Smbpasswd-a user1
Let's verify it from the client.
Run \ 192.168.0.200
Good luck to everyone.
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