Click to See Complete Forum and Search --> : samba - how do i make a share invisible to certain users?


mattn
09-06-2001, 12:19 AM
i want to make my [Serv1_logs] share only accessible/read/writeable by user mattn only.
ive looked through the samba docs but i dont know which variable to use. here is my smb.conf file:

[global]
workgroup = NELSON
server string = Samba Server for Serv1
hosts allow = 192.168.0. 127.
log file = /var/log/samba.%m
max log size = 50
security = user
ssl CA certDir = /etc/ssl/certs
socket options = TCP_NODELAY
dns proxy = no

[MFS]
comment = Mattn's File Storage
path = /file_storage
valid users = mattn
public = no
writable = yes
write list = mattn

[Music]
comment = Music - Mp3s and Videos
path = /file_storage/Music
public = yes
writable = yes
write list = mattn

[Insfiles]
comment = Install Files - Games, apps, etc.
path = /file_storage/Install Files
public = yes
writable = yes
write list = mattn

[Serv1_logs]
comment = Serv1 logs
path = /var/log
public = no
writable = yes
writelist = mattn

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

Craig McPherson
09-06-2001, 08:29 AM
The most straightforward thing to do is just set the permissions on the files so that only the people you want can access them, rather than relying on SAMBA for access control.

Just the same, though:
http://samba.he.net/using_samba/appc_01.html

Here are a few options:

admin users = list

These users will be given root permission on the share. Be careful with this.

valid users = list

These users can connect to the share.

writelist = list

These users can write to a read-only share. Useless if the share isn't read-only.