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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-11-2005, 01:46 PM
|
#1
|
Member
Registered: Jul 2005
Posts: 216
Rep:
|
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.
|
|
|
09-11-2005, 01:52 PM
|
#2
|
Senior Member
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020
Rep:
|
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
|
|
|
09-11-2005, 03:41 PM
|
#3
|
Member
Registered: Nov 2004
Location: Germany
Distribution: Debian Testing
Posts: 332
Rep:
|
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.
|
|
|
09-11-2005, 06:36 PM
|
#4
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
09-11-2005, 09:45 PM
|
#5
|
Member
Registered: Jul 2005
Posts: 216
Original Poster
Rep:
|
No one uses this PC but me, so that is never an issue.
|
|
|
09-11-2005, 09:53 PM
|
#6
|
Senior Member
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775
Rep:
|
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.
|
|
|
09-11-2005, 11:23 PM
|
#7
|
Senior Member
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,098
Rep:
|
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...
|
|
|
09-11-2005, 11:44 PM
|
#8
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
09-11-2005, 11:50 PM
|
#9
|
Senior Member
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,098
Rep:
|
tanks tink 
|
|
|
09-12-2005, 02:26 PM
|
#10
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
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
|
|
|
09-12-2005, 05:05 PM
|
#11
|
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 11,097
|
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.
|
|
|
09-12-2005, 10:26 PM
|
#12
|
Senior Member
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,098
Rep:
|
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!!!!
|
|
|
All times are GMT -5. The time now is 08:06 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|