Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

samba make shared folder invisible to invalid users

Status
Not open for further replies.

knyam

Technical User
Mar 18, 2004
16
ZW
Hie guys. I am trying to configure a linux samba server for the first
time. I have a folder named costbible that i want only users in the group @accounts. I wrote the following lines in the smb.conf file

[costbible]
comment = Cost bible
path = /usr/costbible
valid users = @accounts
read only = no
create mask = 0765

this is working ok but what i would like is a situation in which users who do not belong to @accounts group will not be able to view the folder costbible. right now they can view it but cannot access it's contents.

thanks in advance
 
Try setting the parameter browseable = no.

Then on the clients that are in the accounts group, issue a command to map the costbible share to a drive, or place the command to map that costible share in your logon script.

(i.e. net use i: \\servername\costbible

The browseable parmater removes the smb client's ability to see the share, not access it. The reality is, what you have there works for most cases. Users should get their resources through a login script, if you do not list the users in the allow parameter, then the drive mapping will fail for them. This is what I usually do.


Matt J.

Please always take the time to backup any and all data before performing any actions suggested for ANY problem, regardless of how minor a change it might seem. Also test the backup to make sure it is intact.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top