Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-03-2003, 02:03 AM   #1
Registered: Sep 2003
Location: Adelaide, Australia
Distribution: Fedora/RH
Posts: 231

Rep: Reputation: 30
Exclamation Samba Share Folders

Hi i am setting up Samba shares atm and have created different departments eg finance and technical

i would like to know how to make the folders not appear to users that dont have access...

atm we can see EVERYTHING but only can get into those that we have rights to.

Is there another line I add in somewhere...
Ive added the information in smb.conf file below

Any ideas?


# this will be viewable only by members of finance group
comment = Finance
path = /departments/finance
valid group = finance
read only = No
browseable = yes

# this is only viewable by chrisw
comment = Technical
path = /departments/technical
valid users = chrisw
read only = No
browseable = yes
Old 10-03-2003, 04:23 AM   #2
LQ Newbie
Registered: Sep 2003
Posts: 24

Rep: Reputation: 15
There a few things u can do...

1 make a share not viewable (with "browsable = no" option).
path = /datos/calidad
read list = @calidad
write list = @calidad
read only = No
create mask = 0660
directory mask = 0770
browseable = No
this way, u wont see the share when u access the samba host:
To access it u must use the windows explorer "tools" "map network drive" and type in the share's netbios location: \\samba-server\calidad.

2 use a different smb.conf file for different pc's, thus setting up different shares for each. In the main smb.conf, add the option "config file = /etc/samba/smb.conf.%m". %m stands for the host name. Now create a smb.conf.pc_name in /etc/samba and in it, place all the shares u want that pc to view. I suppose u can also use the %u (user) variable to the same as with the pc_names but with user_names instead. U could also do something like smb.conf.%m.%u but i've never tried that.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Share folders being disconnected yllchan Linux - General 0 11-09-2004 04:35 AM
Share folders hylke Linux - Newbie 8 10-22-2004 01:32 PM
Missing folders when accessing samba share from XP IgniZtion Linux - Software 2 08-18-2004 11:34 PM
Share Windows Folders Foggy Linux - Newbie 21 12-09-2003 06:57 PM
files&folders permissions under SAMBA share shani Linux - Software 2 11-20-2003 11:48 AM

All times are GMT -5. The time now is 07:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration