cyg@ubuntu:~$ sudo smbclient -L 192.168.1.9
Password:
Domain=[LY-XP] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Sharename Type Comment
--------- ---- -------
IPC$ IPC ÈÂ│╠ IPC
D$ Disk ─¼╚¤╣▓¤Ý
SharedDocs Disk
ADMIN$ Disk ÈÂ│╠╣▄└Ý
C$ Disk ─¼╚¤╣▓¤Ý
soft Disk
session request to 192.168.1.9 failed (Called name not present)
session request to 192 failed (Called name not present)
Domain=[LY-XP] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Server Comment
--------- -------
Workgroup Master
--------- -------
cyg@ubuntu:~$ 可以正常查看
sudo smbclient '\\xp\soft'
Password:
Domain=[LY-XP] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
tree connect failed: NT_STATUS_DUPLICATE_NAME
cyg@ubuntu:~$ sudo smbclient '\\192.168.1.9\soft'
Password:
Domain=[LY-XP] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
smb: \> ls
. D 0 Tue Jan 1 04:15:46 2002
.. D 0 Tue Jan 1 04:15:46 2002
jpwb.exe A 1471768 Sat Oct 15 04:03:04 2005
wrar351sc.exe A 1038064 Mon Oct 24 14:43:34 2005
fg171.exe A 2150362 Tue Jan 1 03:34:26 2002
本机8139网卡 D 0 Tue Jan 1 03:15:48 2002
63630 blocks of size 16384. 45596 blocks available
smb: \> //也可以进入xp
在xp中可以进入samba工作组MSHOME,就是在输入用户名和口令那通不过。
应怎样设置呢?
[问题]ubuntu能正常通过samba访问xp,xp如何登入samba??[已解决]
-
- 帖子: 76
- 注册时间: 2005-08-24 17:34
[问题]ubuntu能正常通过samba访问xp,xp如何登入samba??[已解决]
上次由 *linux* 在 2005-11-04 23:32,总共编辑 1 次。
-
- 帖子: 76
- 注册时间: 2005-08-24 17:34
sudo testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]"
Processing section "[public]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
# Global parameters
[global]
workgroup = DOMAIN
server string = %h server (Samba, Ubuntu)
obey pam restrictions = Yes
passdb backend = tdbsam, guest
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spas sword:* %n\n .
username map = /etc/samba/smbusers
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
panic action = /usr/share/samba/panic-action %d
invalid users = root
[homes]
comment = Home Directories
create mask = 0700
directory mask = 0700
browseable = No
[printers]
comment = All Printers
path = /tmp
create mask = 0700
printable = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[public]
comment = Public Folder
path = /home/public
force user = nobody
force group = nogroup
create mask = 0777
directory mask = 0777
guest ok = Yes
cyg@ubuntu:~$
http://www.ubuntu.org.cn/support/docume ... curityuser
以上全是照官方文档设置
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]"
Processing section "[public]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
# Global parameters
[global]
workgroup = DOMAIN
server string = %h server (Samba, Ubuntu)
obey pam restrictions = Yes
passdb backend = tdbsam, guest
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spas sword:* %n\n .
username map = /etc/samba/smbusers
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
panic action = /usr/share/samba/panic-action %d
invalid users = root
[homes]
comment = Home Directories
create mask = 0700
directory mask = 0700
browseable = No
[printers]
comment = All Printers
path = /tmp
create mask = 0700
printable = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[public]
comment = Public Folder
path = /home/public
force user = nobody
force group = nogroup
create mask = 0777
directory mask = 0777
guest ok = Yes
cyg@ubuntu:~$
http://www.ubuntu.org.cn/support/docume ... curityuser
以上全是照官方文档设置