Welcome to the most active Linux Forum on the web.
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 02-04-2006, 11:42 AM   #1
Registered: Dec 2004
Posts: 245

Rep: Reputation: 30
Hiding files from users

Hey guys, here's the dilema

I have some ::sensitive:: files that I don't want people to see on my network share (smb). I've already restricted access from that folder to only my account, but that doesn't stop the rest of the world seeing that the folder exists -- although they can't even list its contents

Is there any way to hide files and folders in linux from certain users or groups? I know you can add a dot to the beginning, but that's too broad a method. Any ideas?

Old 02-04-2006, 12:31 PM   #2
Registered: Sep 2003
Location: Texas
Distribution: Slackware and Ubuntu
Posts: 355

Rep: Reputation: 30
In your share config add
public = no
Old 02-04-2006, 02:34 PM   #3
Registered: Dec 2004
Posts: 245

Original Poster
Rep: Reputation: 30
Hmm - that seems to have no effect, in either windows or linux (as clients)
Perhaps there is something in my smb.conf that is to blame-

## Share disabled by YaST
# [netlogon]
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2005-11-11
include = /etc/samba/dhcp.conf
domain master = no
add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
restrict anonymous = no
max protocol = NT
ldap ssl = No
server signing = Auto
encrypt password = yes
smb passwd file = /etc/smbpasswd
update encrypted = yes
null passwords = yes
preferred master = no
server string =

path = /media/filevault
case sensitive = no
guest ok = yes
public = no
write list = tux,root
directory mask = 750
create mask = 640
msdfs proxy = no
valid users = tux,root,@users
hide dot files = no
fstype = EXT2
Old 02-04-2006, 04:00 PM   #4
Registered: Sep 2003
Location: Texas
Distribution: Slackware and Ubuntu
Posts: 355

Rep: Reputation: 30
Why do you have Guest = okand then list valid users? Not sure if it is handling the conflict properly. It may be. Let me check my box.


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
Hiding Folders from restricted users nowhere.elysium Linux - Security 3 11-17-2005 01:46 PM
Hiding login IPs for users. Neva Linux - Security 4 12-17-2004 10:37 PM
Where did ex-users files go? wmcase Linux - Security 4 12-05-2004 02:55 AM
Hiding users from each other itskiLLjoy Linux - Security 1 03-28-2004 04:37 PM
Hiding other users processes itskiLLjoy Linux - Security 2 03-20-2004 09:29 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:02 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