QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 969|回复: 1

SAMBA 应用问题?

[复制链接]
发表于 2006-2-27 16:23:48 | 显示全部楼层 |阅读模式
debian 3.1  SAMBA 3.0.12
如何才能实现 当某用户访问SAMBA服务器的时候能进入自己的目录??

或者显示自己目录或,可以通过密码访问?
配置表如下:

#======================= Global Settings =======================

[global]

workgroup = workgriop      
NetBIOS Name   = xyc-server  
server string = XYC Samba Server
unix charset  =  gb2312     
dos charset=cp936           
security = user     
;hosts allow = 192.168.2.127
guest account = smbprint   
map to  guest = Bad User
map to  guest = Bad Password


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

max log size = 0

encrypt passwords = yes
smb passwd file  = /etc/samba/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

interfaces = 192.168.2.0/24
dns proxy = no


########## Printing ##########

# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
load printers = yes

# lpr(ng) printing. You may wish to override the location of the
# printcap file
printing = bsd
printcap name = /etc/printcap

# CUPS printing.  See also the cupsaddsmb( manpage in the
# cupsys-client package.
printing = cups
printcap name = cups

# When using [print$], root is implicitly a 'printer admin', but you can
# also give this right to other users to add drivers and set printer
# properties
printer admin = @ntadmin



#======================= Share Definitions =======================

wins support = no
map to guest = Bad User
restrict anonymous = no
guest ok = yes
domain master = no
preferred master = no
max protocol = NT
ldap ssl = No
server signing = Auto


# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
create mask = 0700

# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
directory mask = 0700

# Un-comment the following and create the netlogon directory for Domain Logons
# (you need to configure Samba to act as a domain controller too.)
;[netlogon]
;   comment = Network Logon Service
;   path = /home/netlogon
;   guest ok = yes
;   writable = no
;   share modes = no

[homes]
comment = Home Directories
browseable = no
writable = yes

readonly = no
force create mode = 0755
create mode = 0644
force directory mode = 0755
directory mode = 755

[printers]
comment = All Printers
browseable = no
path = /tmp
printable = yes
create mask = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers

[public]
msdfs proxy = no
read only = no
comment = public
path = /home/public
writable  = yes

[netlogon]
comment = Logon Services in the Network
path = /home/netlogon
guest ok = yes
writable = no
write list = dachengi root zhangyang yanyan  
locking = no
public = no
browseable = yes
share modes = no

[group]
comment = Directory of Group
path = /home/%u/group
writable = yes
readonly = no
force create mode = 0770
create mode = 0770
force directory mode = 0770
directory mode = 0770

[cdrom]
comment = CD-ROM
path = /mnt/cdrom
public = yes
writable = no

[tmp]
comment = Tempora Files
path = /tmp
readonly = no
public = yes
writable = yes
force create mode = 0777
create mode = 0777
force directory mode = 0777
directory mode = 0777






[drivers]

msdfs proxy = no
read only = no
comment = drivers
path = /home/drivers
发表于 2006-2-28 16:33:40 | 显示全部楼层
看看和你的有什么区别:
[code:1]
[global]

workgroup = workgriop
netbios name = xyc-server
server string = XYC Samba Server
printcap name = cups
load printers = yes
printing = cups
printer admin = @adm
security = user
log file = /var/log/samba/log.%m
max log size = 50
hosts allow = 192.168.1. 192.168.2. 127.
guest account = nobody
smb passwd file = /etc/samba/smbpasswd
username map = /etc/samba/smbusers
encrypt passwords = yes
passwd chat = *New*UNIX*password* %n\n *Re*ype*new*UNIX*password* %n\n \
*passwd:*all*authentication*tokens*updated*successfully*
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no
unix charset = gb2312

[homes]
   comment = Home Directories
   browseable = no
   writable = yes

[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
   guest ok = yes
   writable = no
   printable = yes
   create mode = 0700
   print command = lpr-cups -P %p -o raw %s -r   # using client side printer drivers.

[print$]
   path = /var/lib/samba/printers
   browseable = yes
   write list = @adm root
   guest ok = yes
   inherit permissions = yes
[/code:1]
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-2 20:29 , Processed in 0.035595 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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