QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1170|回复: 3

急求samba配置文件!!!

[复制链接]
发表于 2006-4-23 15:31:23 | 显示全部楼层 |阅读模式
哪位能帮我写个samba的配置文件,share 级的与user级(最简单的,实现下述功能就行)

先谢过!!!
share 级:
[tmp]直接访问,不许密码
[gre]需用户名密码才能访问
user级:(应该是点击samba服务器时就需要密码吧)
进去后
[tmp]直接访问,不许密码
[gre]需用户名密码才能访问

win下的用户名Kong(管理员)

PS:
虚拟机里装rh9
弄samba只是为了学习下,查啦好多资料,看啦好多书,可配置来配置去,还是有问题!!

好像好写文章写的自己实践都行不通~~~~~55555
1。share级 :在win下能进,但对public=no 的目录,出现对话框,用户名灰的,而且是
Guest(很不懂!!!)!!无论输入啥密码都不行!!!
[gre]
path=/home/gre
valid users = gre root(已把win下的用户名Kong(管理员)影射为root)
pulic = no
guest account = gre
2.user级 在win下,我连samba都尽不了。。。。。。。直接弹出无法访问,请与系统管理
员联系的对话框
3。为什么smb.conf 与图形界面的配置不同步!!!从share-->user 我得自己在图形界面
手动设置
 楼主| 发表于 2006-4-23 15:37:19 | 显示全部楼层
附上share级的配置
[global]
workgroup = guogroup
netbios name = smb-server
server string = samba server
hosts allow = 192.168.1. 192.168.2. 127. 172.16.27.136 172.16.27.219
printcap name = /etc/printcap
load printers = yes
printing = cups
guest account = kong
log file = /var/log/samba/%m.log
max log size = 0

security = share
# password server = *
; password server = <NT-Server-Name>
; password level = 8
; username level = 8
smb passwd file = /etc/samba/smbpasswd
; ssl CA certFile = /usr/share/ssl/certs/ca-bundle.crt
unix password sync = No
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*aut
hentication*tokens*updated*successfully*
pam password change = yes

; username map = /etc/samba/smbusers
; include = /etc/samba/smb.conf.%m

obey pam restrictions = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=819
; interfaces = 192.168.12.2/24 192.168.13.2/24
interfaces = 172.16.27.219
; remote browse sync = 192.168.3.25 192.168.5.255
; remote announce = 192.168.1.255 192.168.2.44
; local master = no
; os level = 33
; domain master = yes
; preferred master = yes
; domain logons = yes
; logon script = %m.bat
; logon script = %U.bat
; logon path = \\%L\Profiles\%U
; wins support = yes
; wins server = w.x.y.z
encrypt passwords = yes
username map = /etc/samba/smbusers
dns proxy = no
; preserve case = no
; short preserve case = no
; default case = lower
; case sensitive = no
#============================ Share Definitions ==============================

[homes]
comment = Home Directories
browseable = no
writeable = yes
valid users = %S
create mode = 0664
directory mode = 0775

# If you want users samba doesn't recognize to be mapped to a guest user
; map to guest = bad user
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# Set public = yes to allow user 'guest account' to print
printable = yes
[gre]
comment = Gre's Service
path = /home/gre
valid users = gre root
guest account =gre

[tmp]
comment = tmp
guest ok = yes
path = /tmp
回复

使用道具 举报

发表于 2006-4-24 12:14:36 | 显示全部楼层
share级是需要密码访问的吗?
你在想什么呀!!!!
http://www.linuxsir.org/bbs/showthread.php?t=249153
回复

使用道具 举报

发表于 2006-4-28 16:19:49 | 显示全部楼层
网上都有的,好好看一下应该就好了把
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-2 18:25 , Processed in 0.042570 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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