![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Linux Support Linux - Operating Systems and Applications Support |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Asst. Manager, The Conversation Pit
|
Password Protection for a Folder
Awhile back I asked about encrypting a drive. I decided against that but I would still like to protect certain folders.
Is there a way to assign a password to a folder? I'm using Ubuntu 6.06 the drive is formatted ext3.
__________________
If there are lawyers or politicians involved, logic may be a very poor tool for reaching a conclusion. |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Manager
Join Date: Sep 2004
Location: Colorado
Posts: 987
OS: Mac OS 9.1, Mac OS X 10.5.8, WinXP Pro, FreeBSD 6.0, Gentoo Linux
|
I'd probably go with permissions. You can create a specific group and instead of giving people a password, you can just add them to a group. This makes it simple to deny them access by just removing them from the group.
As either the directory's owner or root, you can type 'chmod xyz file' where xyz is an octal number. x - the owner's permissions y - the group's permissions z - everyone else's permissions You can then think of each of the three integers similar to a binary representation of each of the three sets of permissions. For example: rwx = 111 = 7 rw- = 110 = 6 -w- = 010 = 2 If you really want, you should also be able to type 'chmod rwxrwxrwx file', 'chmod rwxr-xr-- file' to type in the permissions the long way. You can use 'chown owner:group file' to change owner and group. |
|
|
|
|
|
#3 (permalink) |
|
Asst. Manager, The Conversation Pit
|
Thanks shuuhen,
If I do that the files are still visable on the drive - right? So even if a user can't open the file he can still see it. Said another way: Does permissions keep someone w/o the necessary permission from seeing the file structure? What I'd like to do is have a folder that only I can see. I thought about daughter folder within a protected parent folder - My Docs>My Really Important Docs. Another user could see the My Docs folder but couldn't open it to see the My Really Important Docs sub-folders. thanks, yustr
__________________
If there are lawyers or politicians involved, logic may be a very poor tool for reaching a conclusion. |
|
|
|
|
|
#4 (permalink) |
|
Manager, Alternative Comp
|
If you do it shuuhen's way, then you need to set the permissions to 660 for files and 770 for directories/folders, so that only the owner/group can have access to the files. All others will not even be able to get a file listing.
Another option would be to create an encrypted file that can be mounted just like any other drive. This is a bit more involved and there are a few options to use. The danger with either option is if you login and walk away, someone can sit down at your computer and start browsing these files. Setting the screensaver to lock once it turns on is a good way around this. And in KDE (I don't know about Gnome), you can set one or more corners of the screen as a trigger point for the screensaver (i.e. you move the mouse to the very top left corner and leave it there for a few seconds and the screensaver will start).
__________________
Last edited by Skie; 10-17-2006 at 10:02 AM. |
|
|
|
|
|
#5 (permalink) |
|
Asst. Manager, The Conversation Pit
|
I've tried the permissions route and that's not doing what I want.
So it looks like encryption is the way to go. Shie, you mention options...Is there a program I should investigate or a guide that will walk me through it? I have a number of folders with a number of subfolders - all on one drive. Ideas? Thanks
__________________
If there are lawyers or politicians involved, logic may be a very poor tool for reaching a conclusion. |
|
|
|
|
|
#6 (permalink) |
|
Tech, Networking Forums
Join Date: Apr 2005
Location: 1265 Lombardi Ave.
Posts: 1,142
OS: All of the above
|
TrueCrypt.
Works on Linux and Windows. TrueCrypt - Free Open-Source On-The-Fly Disk Encryption Software for Windows XP/2000 and Linux But permissions should work. Not sure what is not working for you. You could also look into use ACL's. Introduction to Linux Capabilities and ACL's Linux ACL - Google Search |
|
|
|
|
|
#7 (permalink) | |
|
Asst. Manager, The Conversation Pit
|
Quote:
__________________
If there are lawyers or politicians involved, logic may be a very poor tool for reaching a conclusion. |
|
|
|
|
|
|
#8 (permalink) |
|
Moderator Networking Team
Join Date: Aug 2006
Location: Canada
Posts: 2,664
OS: Windows Vista Business SP1, Windows XP Professional SP3
|
Just for clarification...
If you remove the Read permission from the directory, it can not list files (such as using ls). If you remove the eXecute permission from the directory, you can not navigate into it. The files are still, however, stored in plaintext. |
|
|
|
![]() |
| Thread Tools | |
|
|