QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1470|回复: 3

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

[复制链接]
发表于 2002-12-2 16:36:33 | 显示全部楼层 |阅读模式
问题: 我使用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
发表于 2002-12-2 20:44:37 | 显示全部楼层
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
回复

使用道具 举报

 楼主| 发表于 2002-12-3 09:54:28 | 显示全部楼层
多谢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
回复

使用道具 举报

发表于 2002-12-3 11:08:15 | 显示全部楼层
看看 /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
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-17 18:44 , Processed in 0.033802 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表