LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to hide files in Linux (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-hide-files-in-linux-184263/)

bngrhl 05-21-2004 05:15 PM

How to hide files in Linux
 
I want to know how to hide a folder or a certain file in Red Hat 9

320mb 05-21-2004 05:18 PM

Code:

mv <filename> <.filename>
just rename file with a "." (period) in front of it..........

Poetics 05-21-2004 11:39 PM

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

Linner 05-22-2004 02:30 AM

hi guys! How could i get/put files during an ssh session?:)

Crashed_Again 05-22-2004 02:47 AM

Quote:

Originally posted by Linner
hi guys! How could i get/put files during an ssh session?:)

ummm...use sftp:

Code:

sftp user@someplace.org

>get filename.txt
>put filename.txt


bngrhl 05-23-2004 12:57 AM

Quote:

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...

muxman 05-23-2004 01:13 AM

Quote:

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.

odat 05-23-2004 02:28 AM

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)

lrt2003 05-23-2004 08:36 AM

permissions, AND a hidden folder would be better to keep your mum from seeing your masses of pr0n.. I mean.. "personal files"..

encryption, yes, I must look into that also!


All times are GMT -5. The time now is 01:22 PM.