install samba: sudo apt-get install samba
install smbclient: sudo apt-get install
install SMBFS: Sudo apt-get SMBFS
2, modify configuration file
sudo gedit /etc/samba/smb.conf edit smb.conf file
will; Change security user to security user, and then add
at the end of the configuration file
[ShareFiles]
comment = Shared Folder require password
path = /home/magic/share
public = yes
writable = yes
valid users = magic
create mask = 0777
directory mask = 0777
force user = nobody
force group = nogroup
available = yes
browseable = yes
save and restart samba, Sudo /etc/init.d/samba restart
3, set user and password
sudo smbpasswd-a magic then I prompt for password.
4, finally under Windows online neighbor -> Right click – & gt; Map network drive
input folder box \\ IP address \ShareFiles, press the prompt to input username and password.
this article from the Linux community website (www.linuxidc.com), the original link: http://www.linuxidc.com/Linux/2011-09/42621.htm
p>
=============================================================
increases samba user prompt Failed to add entry for user
[root@ubuntu ~]# smbpasswd-a test
New SMB password:
Retype New SMB password:
Failed span> span> to span> span> add span> span> entry span> span> for span> span> user span> test. span> p>
Failed to add0 1 entry3 for4 5 user6
[root@ubuntu ~]# groupadd test-g 6000
/root @ ubuntu ~ # user span> add span> strong> test – u 6000 – g/sbin/nologin – 6000 – s d/dev/null p>
+ /span> + /span> + /span> + /span In order to increase the security of the system, the added system account should not be given to shell or designated directory. At that time, a folder should be created for the test account in /home directory, and only Test has access to read and write.
:
/root @ ubuntu ~ # mkdir strong>/home/test
/root @ ubuntu ~ # chown strong> – R test: test/home/test p>
[root@ubuntu ~]# chmod u+ RWX,g+ RWX,o-rwx /home/test
[root@ubuntu ~]# smbpasswd-a test
New SMB password:
Retype New SMB password:
Add span> Ed user span> test.
p>
problem solving from: http://hi.baidu.com/asxiaosi/item/5420d0f037bcff14fe35822e p>