LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 05-21-2004, 06:15 PM   #1
bngrhl
LQ Newbie
 
Registered: May 2004
Distribution: REDHAT 9.0
Posts: 21

Rep: Reputation: 15
How to hide files in Linux


I want to know how to hide a folder or a certain file in Red Hat 9
 
Old 05-21-2004, 06:18 PM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 47
Code:
mv <filename> <.filename>
just rename file with a "." (period) in front of it..........
 
Old 05-22-2004, 12:39 AM   #3
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
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
 
Old 05-22-2004, 03:30 AM   #4
Linner
Member
 
Registered: May 2004
Distribution: Fedora
Posts: 71

Rep: Reputation: 15
hi guys! How could i get/put files during an ssh session?
 
Old 05-22-2004, 03:47 AM   #5
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
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
 
Old 05-23-2004, 01:57 AM   #6
bngrhl
LQ Newbie
 
Registered: May 2004
Distribution: REDHAT 9.0
Posts: 21

Original Poster
Rep: Reputation: 15
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...
 
Old 05-23-2004, 02:13 AM   #7
muxman
Member
 
Registered: Apr 2004
Distribution: Debian
Posts: 201

Rep: Reputation: 30
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.
 
Old 05-23-2004, 03:28 AM   #8
odat
LQ Newbie
 
Registered: May 2001
Posts: 29

Rep: Reputation: 15
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)
 
Old 05-23-2004, 09:36 AM   #9
lrt2003
Member
 
Registered: Mar 2004
Distribution: Fedora 10
Posts: 182

Rep: Reputation: 30
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!
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do I hide files? joshknape Linux - Newbie 11 09-12-2005 10:26 PM
How can i hide the foldersin linux? alnreddy Linux - Software 4 11-24-2004 01:48 PM
How do you hide your IP in Linux? javaarmy Linux - General 2 09-24-2003 10:25 AM
Samba won't hide dot files josephswagner Linux - Software 1 02-25-2003 09:25 AM
How could i hide some files in the share directory(samba) whepin Linux - General 1 12-20-2001 08:10 AM


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