LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Hiding files from users (https://www.linuxquestions.org/questions/linux-general-1/hiding-files-from-users-411611/)

TomalakBORG 02-04-2006 11:42 AM

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

Netizen 02-04-2006 12:31 PM

In your share config add
Code:

public = no

TomalakBORG 02-04-2006 02:34 PM

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


Netizen 02-04-2006 04:00 PM

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.


All times are GMT -5. The time now is 08:49 AM.