Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I should point out, in case bngrhl doesn't know, that a "ls -a" will still find the hidden files. The specific directory could just have no read or execute permissions to hide it from different users
Originally posted by Poetics I should point out, in case bngrhl doesn't know, that a "ls -a" will still find the hidden files. The specific directory could just have no read or execute permissions to hide it from different users
-- Poetics
I know that actually, but I want to prevent other people at home to accidentally open my file folder...
Originally posted by bngrhl I know that actually, but I want to prevent other people at home to accidentally open my file folder...
Wouldn't the best way to do that just be to set the permissions denying them access to the folder? If you hide it but don't change the permissions they can still access it, they just have to find it and then they can access it without anything stopping them. The permissions would be more secure. Permissions would actually deny them access, they will see there is a directory but cannot get into it or do anything to it.
Hi, bngrhl, I'm hoping for purposes of this reply, that the stuff
you want to hide isn't something you have previously agreed not to
put on the box, OK :-)
"Hiding" files is best done by using standared UNIX permissions, which
of course == Linux permissions. If you want only "somebunny" to have
access to a file, it should be owned by somebunny (the user) and permissions
on that directory (owned by somebunny) should be "700"
HOWEVER, root can always access any file on the system AND SO anyone
who boots from a floppy or CD (i.e. Knoppix, which is ubiquitous nowadays)
) and who can mount your filesystem from their kernel can see those
files in somebunny's directory.
If you have a serious snooping problem at home, the only real solution
is to make the box itself not available. You might want to consider
encryption (e.g. GnuPG) of files. It's also possible to encrypt
entire filesystems but I have NO experience with that. Also, the
horrible truth is that there are legal problems with encrypting your
own files on your own PC in some countries (but I cannot recall the
details)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.