LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-30-2009, 11:36 AM   #1
gimpy530
Member
 
Registered: Oct 2007
Posts: 98

Rep: Reputation: 16
Access Based Enumeration on Linux with Samba?


I recently migrated my server from Windows Server 2003 to Ubuntu 9.04 x64 Server. I am using Samba to create a cifs share, but I have one small security/privacy concern: Access Based Enumeration

This means that I would have a share (/media/data for example) which could have multiple directories under it like so:

drwxr-x--- 25 myself people 4096 2009-05-25 20:58 Public Dir
drwxr-x--- 3 myself myself 4096 2009-05-24 12:28 Private Dir

Notice that the group "people" can read "Public Dir", good. The problem is that users in that group can see that "Private Dir" exists even though they have no permissions for it. They are blocked if they try to access it, but I would like it if they did not even see that dir while browsing. I do not want to make it hidden by naming it ".Private Dir" as that doesn't do much (ls -a).

For Windows, Microsoft has software that will do this, but I can't seem to find a good way to do this on Linux. I know there has to be a way.

How can I make it so that the users in the group "people" do not even see that "Private Dir" exists?
 
Old 05-31-2009, 06:06 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
Try adding
Code:
hide unreadable = yes
hide unwriteable files = yes
to the share definition.


Cheers,
Tink
 
Old 06-01-2009, 07:25 PM   #3
gimpy530
Member
 
Registered: Oct 2007
Posts: 98

Original Poster
Rep: Reputation: 16
Worked perfectly, thanks.
 
Old 06-01-2009, 08:25 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
Quote:
Originally Posted by gimpy530 View Post
Worked perfectly, thanks.
Glad to be of assistance ;)


Cheers,
Tink
 
  


Reply


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
PCI Express Enumeration at bootup in Linux 2.6.xx webunto Linux - Software 1 01-12-2008 11:46 AM
SAMBA shares allow access based on PAM zQUEz Linux - Newbie 2 06-26-2007 05:08 AM
Linux USB Enumeration Vs Windows USB Enumeration rajasekarpadmanaban Linux - Software 1 05-02-2007 03:36 AM
Linux Access Point using Prism based adapter violetb Linux - Wireless Networking 3 11-24-2004 11:00 AM
SAMBA access based on NT Domain groups [using winbind] tisource Linux - Networking 1 11-24-2003 12:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:27 AM.

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