六 建立用户smaba 密码
[iyunv@localhost ~]# smbpasswd -a cover01
New SMB password:
Retype new SMB password:
Added user cover01.
[iyunv@localhost ~]# smbpasswd -a cover02
New SMB password:
Retype new SMB password:
Added user cover02.
[iyunv@localhost ~]# smbpasswd -a team01
New SMB password:
Retype new SMB password:
Added user team01.
[iyunv@localhost ~]# smbpasswd -a team02
New SMB password:
Retype new SMB password:
Added user team02.
[iyunv@localhost ~]# smbpasswd -a user01
New SMB password:
Retype new SMB password:
Added user user01.
[iyunv@localhost ~]# smbpasswd -a user02
New SMB password:
Retype new SMB password:
Added user user02.
七 在客户端查看共享
测试一
[iyunv@localhost ~]# smbclient //192.168.18.157/cover -U cover01
Password:
Domain=[LOCALHOST] OS=[Unix] Server=[Samba 3.0.33-3.29.el5_5.1]
smb: \> ls
. D 0 Mon Jan 7 16:46:48 2013
.. D 0 Mon Jan 7 17:33:01 2013
57159 blocks of size 524288. 48636 blocks available
smb: \> mkdir rongxin1.txt
smb: \> ls
. D 0 Mon Jan 7 18:30:06 2013
.. D 0 Mon Jan 7 17:33:01 2013
rongxin1.txt D 0 Mon Jan 7 18:30:06 2013
57159 blocks of size 524288. 48636 blocks available
smb: \> pwd
Current directory is \\192.168.18.157\cover\
smb: \>
[iyunv@localhost ~]# smbclient //192.168.18.157/cover -U cover02
Password:
Domain=[LOCALHOST] OS=[Unix] Server=[Samba 3.0.33-3.29.el5_5.1]
smb: \> ls
. D 0 Mon Jan 7 18:30:06 2013
.. D 0 Mon Jan 7 17:33:01 2013
rongxin1.txt D 0 Mon Jan 7 18:30:06 2013
57159 blocks of size 524288. 48636 blocks available
smb: \> pwd
Current directory is \\192.168.18.157\cover\
smb: \> mkdir rongxin2.txt
smb: \> ls
. D 0 Mon Jan 7 18:32:26 2013
.. D 0 Mon Jan 7 17:33:01 2013
rongxin1.txt D 0 Mon Jan 7 18:30:06 2013
rongxin2.txt D 0 Mon Jan 7 18:32:26 2013
57159 blocks of size 524288. 48636 blocks available
smb: \>
[iyunv@localhost ~]# smbclient //192.168.18.157/cover -U team01
Password:
Domain=[LOCALHOST] OS=[Unix] Server=[Samba 3.0.33-3.29.el5_5.1]
tree connect failed: NT_STATUS_ACCESS_DENIED
[iyunv@localhost ~]# smbclient //192.168.18.157/cover -U user01
Password:
Domain=[LOCALHOST] OS=[Unix] Server=[Samba 3.0.33-3.29.el5_5.1]
tree connect failed: NT_STATUS_ACCESS_DENIED