LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 09-11-2005, 12:46 PM   #1
joshknape
Member
 
Registered: Jul 2005
Posts: 216

Rep: Reputation: 30
how do I hide files?


I want some ffiles and directories in my home/[me] directory to be hidden, but I don't see an option to hide them.
 
Old 09-11-2005, 12:52 PM   #2
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
hi,
one way of doing that is to rename them by just prefixing a '.' (dot) with original name
like mozilla.........rename it to .mozilla ( notice the dot there )

regards
 
Old 09-11-2005, 02:41 PM   #3
addy86
Member
 
Registered: Nov 2004
Location: Germany
Distribution: Debian Testing
Posts: 332

Rep: Reputation: 31
But be careful not to rename any file you want to hide. If a program relies on a file xyz, it won't find it any more if you rename the file to .xyz.
 
Old 09-11-2005, 05:36 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,964
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Re: how do I hide files?

Quote:
Originally posted by joshknape
I want some ffiles and directories in my home/[me] directory to be hidden, but I don't see an option to hide them.
It would be easiest not to give anyone access to
your home in the first place. If you have special
files you want others to be able to see a scenario
like this should work.

chmod go-rw /home/user

Thus they won't be able to see which files you have
in general. Now it's easy enough to apply the same
permissions to files you don't want anyone to read.

Files you explicitly want the to see you make
chmod o+r file and give the person you want to be
able to use it the complete path to the file.



Cheers,
Tink
 
Old 09-11-2005, 08:45 PM   #5
joshknape
Member
 
Registered: Jul 2005
Posts: 216

Original Poster
Rep: Reputation: 30
No one uses this PC but me, so that is never an issue.
 
Old 09-11-2005, 08:53 PM   #6
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,776

Rep: Reputation: 66
Maybe it can be achieved through permissions? I'm using KDE right now, and when I right-click on a file, there are three types of permissions: forbidden, can view content, and can view or modify content. Maybe if you mark it as "forbidden" from the group (i.e., not owner), it'll be hidden? I'm sure there's something similar for Gnome, too.
 
Old 09-11-2005, 10:23 PM   #7
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,091

Rep: Reputation: 45
not to hijack this thread...but...can i password protect files? i've been searching for awhile and i can't seem to find a way to do this in linux...
 
Old 09-11-2005, 10:44 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,964
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Quote:
Originally posted by detpenguin
not to hijack this thread...but...can i password protect files? i've been searching for awhile and i can't seem to find a way to do this in linux...
gpg will do that quite well. If a lesser level of protection
will do there's crypt, too.


Cheers,
Tink
 
Old 09-11-2005, 10:50 PM   #9
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,091

Rep: Reputation: 45
tanks tink
 
Old 09-12-2005, 01:26 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,964
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Quote:
Originally posted by joshknape
No one uses this PC but me, so that is never an issue.
Ummm ... why would you want to "hide" files, then?


Cheers,
Tink
 
Old 09-12-2005, 04:05 PM   #11
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,256

Rep: Reputation: 1076Reputation: 1076Reputation: 1076Reputation: 1076Reputation: 1076Reputation: 1076Reputation: 1076Reputation: 1076
Many times the simplest way to hide things is to create one hidden directory, named (say...) .hidden. Then just put the files in there: once you enter that directory, its contents do not need to have hidden-names. Kinda easier to keep them straight that way.

Linux does provide ACLs (Access Control Lists) and other fairly smart controls for controlling file access, and you can do many other wonderful things with PAM (Pluggable Authentication Modules), but those can get tricky in a hurry.

When I have particular things that I want to keep well out of the way, I simply create a separate user-id for myself and do the work there. It works very well.
 
Old 09-12-2005, 09:26 PM   #12
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,091

Rep: Reputation: 45
Quote:
Originally posted by sundialsvcs


When I have particular things that I want to keep well out of the way, I simply create a separate user-id for myself and do the work there. It works very well.
thats sooo simple...it could actually work!!!!
 
  


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
hide ip address treotan Linux - Networking 2 08-02-2004 08:02 AM
How to hide files in Linux bngrhl Linux - Newbie 8 05-23-2004 08:36 AM
Samba won't hide dot files josephswagner Linux - Software 1 02-25-2003 08:25 AM
Hide icons? TravisB Linux - General 0 05-02-2002 11:34 AM
How could i hide some files in the share directory(samba) whepin Linux - General 1 12-20-2001 07:10 AM


All times are GMT -5. The time now is 04:51 PM.

Main Menu
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