OS:debian 6.0.3 kernel:2.6.32-5-adm64 samba 3.6.1 여기 내 smb.conf가 있습니다.
[global]
workgroup = Workgroup
server string = Share Server
hosts allow = 192.168.1.0/24
wins support = yes
dns proxy = no
name resolve order = wins host lmhosts bcast
interfaces = eth0
bind interfaces only = yes
log file = /var/log/samba/log.%m
log level = 2
max log size = 1000
syslog = 0
security = user
encrypt passwords = true
smb passwd file = /etc/samba/smbpasswd
unix password sync = no
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix extensions = no
printcap name = /etc/samba/printcap
load printers = no
config file = /etc/samba/smb.conf.%U
[fileshare]
comment = File Share
path = /home/fileshare
read only = no
valid users = @files
browseable = no
writable = yes
write list = @files
create mask = 644
directory mask = 755
guest ok = no
hide dot files = yes
follow symlinks = yes
wide links = yes
veto files = /*.exe/*.com/*.dll/*.mp3/*.avi/*.mkv/*.msi/
이제 사용자는 /home/fileshare에서 exe 파일을 읽거나 쓸 수 없습니다. 나는 /home/fileshare/soft 디렉토리에 제한을 두지 않기를 원합니다. 알아요. 공유 태그를 추가하면 됩니다. 예:
[soft]
comment = software dir
path = /home/fileshare/soft
read only = no
valid users = @files
browseable = no
writable = yes
write list = @files
create mask = 644
directory mask = 755
guest ok = no
hide dot files = yes
follow symlinks = yes
wide links = yes
하지만 //samba-server/soft가 아닌 //samba-server/fileshare/soft에 로그인하고 싶습니다. 어떤 아이디어가 있습니까?