Smba configuration, you need to pay attention to the configuration of the user group, you can use smbclient test, there are problems may read the wrong newspaper.
Path =/home/zhuoying.zy/test
Public = yes
writable = yes
Valid users = User_name
Create mask = 0700
Directory mask = 0700
force user = User_name
Force Group = User_group
Available = yes
browseable = yes
Smbclient//ip/dir-u user_name
Enter user_name ' s password:
Domain=[workgroup] Os=[unix] Server=[samba 3.6.25]
Tree Connect failed: nt_status_no_such_group
The following is transferred from: http://blog.csdn.net/smstong/article/details/4977976
From: http://hi.baidu.com/ilovechallenge/blog/item/53698b28bbf657f699250ae0.html 1, listing the shared folders provided by an IP address
Smbclient-l 198.168.0.1-u Username%password
2, using smbclient like an FTP client
Smbclient//192.168.0.1/tmp-u Username%password
After the successful execution of the smbclient command, enter the smbclient environment, and a prompt appears: smb:/>. You'll see supported commands.
There are many commands similar to FTP commands, such as CDs, LCD, GET, megt, put, mput, and so on. With these commands, we have access to the shared resources of the remote host.
3, direct one-time use of smbclient command
Smbclient-c "ls"//192.168.0.1/tmp-u Username%password
And
Smbclient//192.168.0.1/tmp-u Username%password
Smb:/>ls
Features the same
Example, create a shared folder
Smbclient-c "mkdir share1"//192.168.0.1/tmp-u Username%password
If the user shares//192.168.0.1/tmp in a read-only manner, it prompts
nt_status_access_denied Making remote Directory/share1
4, in addition to using smbclient, you can also mount remote shared folders through mount and Smbcount
Mount Mount-t cifs-o username=administrator,password=123456//192.168.0.1/tmp/mnt/tmp
Remove Mount Umount/mnt/tmp