LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-04-2006, 12:42 PM   #1
TomalakBORG
Member
 
Registered: Dec 2004
Location: Maryland
Distribution: SuSE / Gentoo
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?

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

Rep: Reputation: 30
In your share config add
Code:
public = no
 
Old 02-04-2006, 03:34 PM   #3
TomalakBORG
Member
 
Registered: Dec 2004
Location: Maryland
Distribution: SuSE / Gentoo
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-

Code:
## 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
[global]
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 =

[filevault]
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, 05:00 PM   #4
Netizen
Member
 
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.
 
  


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


All times are GMT -5. The time now is 11:15 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration