Vmware install samba bis


Installation samba: sudo apt-get install samba


installation smbclient: sudo apt-get install 


installation smbfs: the sudo APT-GET smbfs


2, modify the configuration file


sudo gedit /etc/samba/smb.conf smb.conf file editing

will; security user modification It is a security user, and then add the line end

[ShareFiles]
Comment = the Shared Folder the require password
path = / Home / Magic / Share
public = Yes
Writable = Yes
Valid Users = Magic
Create mask = 0777
Directory mask = 0777
Force User = the nobody
Force = nogroup Group
Available = Yes
browseable, = Yes

save restart Samba, the sudo /etc/init.d/samba the restart


. 3, and a user provided password


sudo smbpasswd -a magic I then prompted for a password.

4. The last windows My Network Places -> right click -> Map Network Drive

Enter the folder box \\ ip address \ ShareFiles, enter the user name password.


This article comes from Linux Corporation website (www.linuxidc.com) Original link: http: //www.linuxidc.com/Linux/2011-09/42621.htm

 

Increase the samba user prompts Failed to add entry for user

[root@ubuntu ~]# smbpasswd -a test
New SMB password:
Retype new SMB password:
Failed to add entry for user test.


Solution:
This is because there is no corresponding increase in system account, it will prompt Failed to add entry for user errors, simply add the appropriate account system test on it:
[root @ Ubuntu ~] # groupadd -g 6000 test
[ root @ ubuntu ~] # useradd test -u 6000 -g 6000 -s / sbin / nologin -d / dev / null


Then you can use smbpasswd -a test test increased account of the samba! To increase the security of the system, so the system accounts do not add it to the shell, do not give it the specified directory when the / home directory to test accounts to build folder, the folder only read and write permissions to test!
such as:
[Ubuntu the root @ ~] # mkdir / Home / test
[Ubuntu the root @ ~] # chown -R & lt test: test / Home / test


If other people want to visit, so that only the user can access the test, simply execute the command:
[root @ Ubuntu ~] # chmod + rwx U, G + rwx, rwx-O / Home / test


Then you can increase with the command smbpasswd samba account test the
[root @ Ubuntu ~] # smbpasswd -a test
New SMB password:
the Retype new new SMB password:
Added the User test.

Guess you like

Origin www.cnblogs.com/life-Meer/p/11031936.html