打印

求解: 如何设置LINUX客户端使用SAMBA登录LINUX虚拟NT域?

求解: 如何设置LINUX客户端使用SAMBA登录LINUX虚拟NT域?

问题: 我使用RED HAT8.0做公司的服务器。成功虚拟了一个名为MLS的域。在WIN9X WIN2K WINXP客户端均能够正常访问。

但是我不知道如何使我的LINUX客户端(RED HAT8)访问主机(linux)。

我查过资料。用smbclient、LinNeighborhood、Gnomba实验过。
上网没有问题,也能够找到主机,
用root用户以匿名的方式也能够正常访问主机的共享文件。

但就是不能像WIN一样用用户名和密码登录“虚拟域”
也就是说我不知道如何让自己LINUX客户机以用户身分连接主机。
用户名:Reading
密码: 123456

〔我的表达可能不太好〕

请大家帮忙解决这个问题 ̄ ̄ 谢谢 ̄!

附录:

我的LINUX主机的smb.conf


[global]
veto files = /*.eml/*.nws/riched20.dll/*.scr/*.pif/
dont descend = /proc, /dev
client code page = 936
   workgroup = MLS
   netbios name = linux
   printcap name = /etc/printcap
   load printers = yes

   printing = lprng

   log file = /var/log/samba/%m.log

   max log size = 0

   security = user

   encrypt passwords = yes
   smb passwd file = /etc/samba/smbpasswd

null passwords = yes

unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*

obey pam restrictions = yes


   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   local master = yes

   domain master = yes

   preferred master = yes

   domain logons = yes

   dns proxy = no

#============================ Share Definitions ==============================
[homes]
   comment = Home Directories
   browseable = no
   writable = yes
   valid users = %S
   create mode = 0664
   directory mode = 0775


[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
   guest ok = no
   writable = no
   printable = yes

[public]
   comment = Public Stuff
   path = /home/public
   public = yes
   writable = yes
   write list = @office
[Software]
   comment = Software
   path = /mnt/sdb/Software
   public = yes
   writable = yes
   write list = @OP

===========================================================
我的LINUX客户机的smb.conf

# Samba config file created using SWAT
# from 192.168.1.7 (192.168.1.7)
# Date: 2002/12/02 14:57:17

# Global parameters
[global]
        client code page = 936
        workgroup = MLS
        netbios name = READING
        server string = Reading's Linux
        security = SHARE
        encrypt passwords = Yes
        update encrypted = Yes
        null passwords = Yes
        pam password change = Yes
        log file = /var/log/samba/%m.log
        max log size = 0
        printing = lprng

[homes]
        comment = Home Directories
        valid users = %S
        read only = No
        create mask = 0664
        directory mask = 0775
        browseable = No

[printers]
        comment = All Printers
        path = /var/spool/samba
        read only = No
        guest ok = Yes
        printable = Yes
        browseable = No

[public]
        comment = Public Stuff
        path = /home/pub
        write list = @staff
        read only = No
        guest ok = Yes

[hp]
        comment = Reading's Linux HP
        path = /var/spool/samba
        read only = No
        guest ok = Yes
        printable = Yes
        printer name = hp
        oplocks = No

TOP

2002年12月02日下午20时44分45秒[root@www root]# cat /etc/fstab|g smbfs
#//192.168.10.254/我的目录 /mnt/samba/md03      smbfs   uname=gugong,password=111111,rw      0 0
//mail/gugong           /mnt/smb/mail           smbfs   uname=gugong,rw,noauto       0 0
//fileserver/临时文件夹 /mnt/smb/data           smbfs   uname=gugong,rw,noauto       0 0


       高举马列主义毛泽东思想 !!!

TOP

多谢gugong  !

这样的确可以MOUNT上了,但是如何用我不用ROOT用户登录可以么?
这样写有无问题?

//linux/Software /home/Reading/mnt/LINUX/Software smbfs noauto,user,uid=500,gid=500,umask=007,iocharset=cp936,uname=Reading,password=123456,rw 0 0
======================================= 我的Oicq:160480 我的E-mail:Reading@tm-studio.net 家中电脑: C4 2G / 512M DDR 333 / 55G HD GF4 64M / PHILIPS 150P2 / 8139c Liton 16X DVD / Liton 8x DVDRW+- 联想 PlatiniX 2E/333(Intel 845PE) USB 2.0 / Microsoft Windows XP 手提电脑: DELL 8600 P4 1.5M/ 512M / 80G / 8xDVD / (Debian 2.6.6-1/ KDE) 移动硬盘1;GL811 / 6G 移动硬盘2: 没看芯片/ 80G ====================================== 对我而言 生命就是不断地 探索!探索!再探索! 学习!学习!再学习! 使其燃烧出绚丽的光彩! 将心灵从无知的黑暗中解放出来!

TOP

看看 /etc/sudoers 文件:

2002年12月03日上午11时10分41秒[root@mail root]# cat /etc/sudoers
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# Defaults specification

# User privilege specification
root    ALL=(ALL) ALL

# Uncomment to allow people in group wheel to run all commands
# %wheel        ALL=(ALL)       ALL

# Same thing without a password
# %wheel        ALL=(ALL)       NOPASSWD: ALL

# Samples
# %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users  localhost=/sbin/shutdown -h now


       高举马列主义毛泽东思想 !!!

TOP