LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-21-2009, 05:55 AM   #1
davender84
Member
 
Registered: Feb 2009
Posts: 42

Rep: Reputation: 15
Smile how to hide a file using file permissions in linux without using dot


i want to hide a file using file permissions pls suggest me how can i do this
thanks in adv.
 
Old 03-21-2009, 06:30 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,369
Blog Entries: 54

Rep: Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870
Next time it would be efficient to post what you have tried yourself. As unprivileged user you will be able to hide files from other users using access permissions by changing the "other" and "group" bits. For example running 'chmod 0400 ~/somefile' as unprivileged user sets the file permissions to readable for you but not other unprivileged users ...but you can not use discretionary access permissions to hide a file from root. (If the files contents are worth it you could opt for file encryption instead. While GnuPG is one of the most secure and compatible forms, you could also use something simple like
Code:
openssl enc -e -bf -in ~/someFileName -out ~/someOtherFileName
which works on all platforms having access to OpenSSL.)
 
Old 03-21-2009, 08:37 AM   #3
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,381

Rep: Reputation: 1109Reputation: 1109Reputation: 1109Reputation: 1109Reputation: 1109Reputation: 1109Reputation: 1109Reputation: 1109Reputation: 1109
The only way that I know of to "hide" a particular file is to prefix the name with a period.

The entire content of a directory can be concealed from view with permissions, applied to the directory.
 
Old 03-23-2009, 02:49 AM   #4
davender84
Member
 
Registered: Feb 2009
Posts: 42

Original Poster
Rep: Reputation: 15
Smile thanks

Quote:
Originally Posted by unSpawn View Post
Next time it would be efficient to post what you have tried yourself. As unprivileged user you will be able to hide files from other users using access permissions by changing the "other" and "group" bits. For example running 'chmod 0400 ~/somefile' as unprivileged user sets the file permissions to readable for you but not other unprivileged users ...but you can not use discretionary access permissions to hide a file from root. (If the files contents are worth it you could opt for file encryption instead. While GnuPG is one of the most secure and compatible forms, you could also use something simple like
Code:
openssl enc -e -bf -in ~/someFileName -out ~/someOtherFileName
which works on all platforms having access to OpenSSL.)

thanks for your advice and support
 
Old 03-26-2009, 12:13 AM   #5
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Rep: Reputation: 57
@ davender84

You can move your sensitive files to a USB flash drive.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hide dots file with (wIn) Explorer on mounted Linux volumes sylvaticus Linux - General 4 03-30-2009 06:18 AM
How to get file extension (without the dot) scls19fr Linux - General 11 08-21-2008 11:48 AM
Windows file permissions with a Linux file server joseph_k Linux - Server 3 05-09-2008 12:54 PM
How to hide dot files? cegres Linux - Newbie 2 02-07-2008 10:43 AM
Samba won't hide dot files josephswagner Linux - Software 1 02-25-2003 08:25 AM


All times are GMT -5. The time now is 11:59 AM.

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