samba 如何设置访问时要密码,
我想让samba共享10个文件夹 有10个用户访问他们自己的,搞了好久没搞好,快失去信心了,希望大哥们能给点信心,小弟在这里先谢谢大哥们了,对了我在solaris 10 的,自带的,最好给个配置文件谢谢,,,谢谢。。。
[解决办法]
我只能给你以信心了,没有自己搞过,呵呵。
我觉得samba本身应该是可以的吧。至少Redhat Enterprise Linux上可以的(有图形界面设置)。
http://linux.chinaitlab.com/server/736209.html
http://linux.chinaitlab.com/server/736209_2.html
如果你不能的话,可以试着用PAM控制吗?
http://www.53vi.com/system/linux/20080601/4213.html
多在网上搜搜,不要局限于中文资料。
多琢磨,多实践。
好运!
[解决办法]
我来说说,希望有帮助:
我来给你一个配置文件:
[global] workgroup = MYGROUP server string = Samba Server Version %v # logs split per machine log file = /var/log/samba/log.%m # max 50KB per log file, then rotate max log size = 50 security = user encrypt passwords = yes smb passwd file = /etc/samba/smbpasswd # the login script name depends on the machine name # the login script name depends on the unix user used # disables profiles support by specifing an empty path cups options = raw #obtain list of printers automatically on SystemV[homes] comment = Home Directories browseable = no writable = yes[printers] comment = All Printers path = /var/spool/samba browseable = no printable = yes[ftp] path = /var/ftp public = yes writeable = yes valid users = gcwh create mask = 0755 guest ok = yes