[问题]ubuntu能正常通过samba访问xp,xp如何登入samba??[已解决]

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
*linux*
帖子: 76
注册时间: 2005-08-24 17:34

[问题]ubuntu能正常通过samba访问xp,xp如何登入samba??[已解决]

#1

帖子 *linux* » 2005-11-04 18:58

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,就是在输入用户名和口令那通不过。
应怎样设置呢?
上次由 *linux* 在 2005-11-04 23:32,总共编辑 1 次。
*linux*
帖子: 76
注册时间: 2005-08-24 17:34

#2

帖子 *linux* » 2005-11-04 22:54

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

以上全是照官方文档设置
*linux*
帖子: 76
注册时间: 2005-08-24 17:34

#3

帖子 *linux* » 2005-11-04 23:31

难怪没人回复
问题太底级了
结果我在linux系统中新建了一个和xp登陆名一样的用户名口令,ok
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#4

帖子 eexpress » 2005-11-04 23:48

是看晕了。就看了smbclient正常。你贴代码太多了。怕怕。
● 鸣学
回复