BBS水木清华站∶精华区

发信人: suzhe (I Love Linux), 信区: Linux        
标  题: Re: Samba的疑惑(希望尽快得到解答) 
发信站: BBS 水木清华站 (Tue Jan  4 23:01:30 2000) 
 
 
 
samba 2.0 以上版本好像不用修改注册表吧?! 直接加上 encrypt passwords=yes  
就行了. 下面是我装的一台服务器的 smb.conf: 
 
# Samba config file created using SWAT 
# from xxx (192.168.1.1) 
# Date: 1999/10/16 19:27:56 
 
# Global parameters 
        workgroup = INSIGHT 
        netbios name = INSIGHT-SERVER 
        server string = Server for Insight 
        interfaces = 192.168.1.1/255.255.255.0 
        security = user 
        update encrypted = No 
        encrypt passwords = Yes 
        unix password sync = True 
        map to guest = Bad Password 
        null passwords = Yes 
        log file = /var/log/samba/log.%m 
        smb passwd file = /etc/smbpasswd 
        max log size = 50 
        socket options = TCP_NODELAY 
        printcap name = /etc/printcap 
        dns proxy = No 
        guest account = guest 
        hosts allow = 192.168.1., localhost 
        printing = bsd 
        print command = lpr -r -h -P%p %s 
        mangling char = ^@ 
 
        lock directory = /var/lock/samba 
 
[homes] 
        comment = Home Directories 
        read only = No 
        public = yes 
        browseable = No 
 
[public-folder] 
        comment = Folder for everyone 
        path = /home/xxx-share 
        security = share 
        writable = Yes 
        public = yes 
        browseable = Yes 
 
[Panasonic] 
        comment = Panasonic Laser Printer 
        path = /var/spool/lpd/lp0 
        writable = no 
        printable = yes 
        public = yes 
        browseable = Yes 
        printer name = lp0 
        print command = lpr -r -h -P%p %s 
 
[HPLaserJet] 
        comment = HP LaserJet 1100 
        path = /var/spool/lpd/lp1 
        writable = no 
        printable = Yes 
        public = yes 
        broweable = Yes 
        print command = lpr -r -h -P%p %s 
        printer name = lp1 
 
 
 
 
【 在 qinming (qm) 的大作中提到: 】 
 我在Redhat6.1开了Samba服务,但是用WIN98的机子访问LINUX的机子总有问题。 
 在98的网上邻居中可以看到LINUX的机子,但访问时总是密码不对,在smb.conf文件中设 
 了 
 encrypt passwords = yes 
 allow null password = yes 
 security = share (user 也试了) 
 都没用。后来看了一篇文章说,修改98的注册表,加EnablePlainTextPassword=1,就可 
 以,我试了,确实行,但仍然只有LINUX的用户才能访问,而且此时,不管 
 encrypt passwords = yes或no,只要是密码正确都行。 
 要在每台WIN98的机子上修改注册表太麻烦了,而且安全性也不高。我想问能不能只在 
 Samba服务器上设置。另外我记得有人说到过,security = share后,根本不需要用户验 
 证,只要建立了GUEST组,这样不是LINUX的用户也可以以GUEST组的身份访问LINUX机子, 
 那么,具体是怎么设置的呢?是不是除了security = share,还要有别的设置? 
 希望说的详细些,谢谢! 
 
 
-- 
※ 来源:·BBS 水木清华站 smth.org·[FROM: nts.Phys.Tsingh] 

BBS水木清华站∶精华区