LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-26-2008, 10:57 AM   #1
knobby67
Member
 
Registered: Mar 2006
Posts: 627

Rep: Reputation: 43
password directory in linux


Hello all,
is there a simple way to password directories in Debian? Perhaps a bit of software to down load? I only want to password a couple of directories rather than a whole drive or partition. Thanks.
 
Old 11-26-2008, 11:16 AM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by knobby67 View Post
Hello all,
is there a simple way to password directories in Debian? Perhaps a bit of software to down load? I only want to password a couple of directories rather than a whole drive or partition. Thanks.
No, you will have to use encryption tools, rar or whatever you prefer. You can as well mount those dirs into an encrypted partition. However, not that while that partition is mounted, root (or any other with enough privileges) will also be able to see it's contents.

I think that btrfs and/or zfs (two experimental file systems in linux) has online encryption on their TODO list, however I have no idea if it will be implemented exactly in the way that you want/need, and I have no idea if some work has been already done in that field.
 
Old 11-26-2008, 01:57 PM   #3
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 111Reputation: 111
if you are on a system with multiple users and you simply want to have one more barrier between your files and them viewing try the following in your home directory (or test directory).

chmod -R go-rwx * .*

Understand what you are doing before you do it. You are removing the read, write, and execute permissions for group owners and people that are not the user owner or in the group. you don't need to restrict the group if you are the only one in your group... Simply removing the read write and execute from your main home directory (e.g. /home/username) will be enough to keep most users away. Do not let this warning be enough for you before trying it. Read the man page.

If you are concerned about superusers/root from viewing your files, look into PGP encryption and other such technologies.

Additionally, simply changing the access permissions on your files will not protect from somebody rebooting your machine with a live cd or taking your hard drive away.

Permissions do not work on windows based file systems (e.g. ntfs, fat32, vfat, etc.) this includes a flashdrive that is probably formatted using fat.
 
  


Reply



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
Username & Password Sync Fedora Directory and Microsoft Active Directory karnac01 Fedora 4 07-19-2010 12:51 AM
password protect a directory in Linux sailu_mvn Linux - Software 6 05-24-2006 02:20 PM
Password protect a directory aquatux SUSE / openSUSE 6 08-01-2005 11:56 PM
Password protecting a directory? How? Thrifty Linux - Security 7 07-20-2004 08:25 PM
password a directory help DigiCrime Linux - Security 2 03-05-2003 08:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:50 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
Open Source Consulting | Domain Registration