| Author |
Message |
|
jeidern
MEPIS Rules!
Joined: Wed Jul 14, 2010 8:04 am Posts: 176 Has thanked: 32 times Have thanks: 1 time
|
Post # 296731
 Password protection for folders
Hi, and good day to all. I'd like to know if there is a way to password-protect a folder so that only the people who know the password for that folder will be able to access it? I would like to do this, if possible, instead of creating different user-accounts.
|
| Sat Mar 03, 2012 7:50 pm |
|
 |
|
GoManutd
MEPIS Guide
Joined: Mon Jun 30, 2008 8:06 pm Posts: 2909 Has thanked: 48 times Have thanks: 368 times
|
Post # 296732
 Re: Password protection for folders
no need to use passwords. you can simply create a user group, assign users to that group and then assign ownership of that entire folder to the group
|
| Sat Mar 03, 2012 7:53 pm |
|
 |
|
brux
MEPIS Rules!
Joined: Sun Jan 09, 2011 12:11 pm Posts: 290 Has thanked: 15 times Have thanks: 24 times
|
Post # 296744
 Re: Password protection for folders
Excuse me for asking (as I am an eternal newbie) but do you mean create a new user AND group or just a new group. Better yet, could you give me a simple run thru of the whole thing?
_________________ Ron Mepis 11 - 64 bit KDE 4.7.4 Nvidia GeForce 9800GT Vista
|
| Sun Mar 04, 2012 12:13 pm |
|
 |
|
chrispop99
MEPIS is cool!
Joined: Tue Jan 27, 2009 3:07 pm Posts: 515 Location: Bracknell, UK Has thanked: 146 times Have thanks: 57 times
|
Post # 296745
 Re: Password protection for folders
Just a new group. The only security issue is that anyone with the root password wouldbe able to get access presumably? Probably total overkill for your needs, but http://www.truecrypt.org/ might suit? Chris
_________________ Gigabyte Z77P-D3, Intel i3-3220, GeForce 8400 GS, 4GB PC3-12800.
|
| Sun Mar 04, 2012 12:22 pm |
|
 |
|
GoManutd
MEPIS Guide
Joined: Mon Jun 30, 2008 8:06 pm Posts: 2909 Has thanked: 48 times Have thanks: 368 times
|
Post # 296750
 Re: Password protection for folders
truecrypt isn't the solution to the stated problem. and, no, i won't give a walk through... better still, i'm including the link to the wiki portion that deals with this. http://www.mepis.org/docs/en/index.php? ... ermissions
|
| Sun Mar 04, 2012 1:02 pm |
|
 |
|
malspa
MEPIS Guide
Joined: Thu Jul 13, 2006 7:21 am Posts: 1517 Location: albuquerque Has thanked: 70 times Have thanks: 91 times
|
Post # 296751
 Re: Password protection for folders
To test this out, I went to System > KUser and created a new group called steve1.
Then I went to Dolphin and created a new (hidden) directory in my home directory: /home/steve/.grouptest.
Then I right-clicked on .grouptest, clicked on Properties, then the Permissions tab. I changed the permissions to:
Owner: Forbidden Group: Can View & Modify Content Others: Forbidden
I also opened Dolphin as root and changed the group for .grouptest to "steve1."
Now, as the normal user ("steve"), I can't access the .grouptest directory, and can't see its contents. I can get into it via Dolphin (right-click, Open With > Dolphin as su).
I think this effectively password protects the directory and its contents, unless the user knows the root password. But if the user knows the root password, I think any file or directory on the system is open anyway, right?
But I don't know if this is the cleanest way to go about it...
Last edited by malspa on Sun Mar 04, 2012 1:36 pm, edited 2 times in total.
|
| Sun Mar 04, 2012 1:20 pm |
|
 |
|
chrispop99
MEPIS is cool!
Joined: Tue Jan 27, 2009 3:07 pm Posts: 515 Location: Bracknell, UK Has thanked: 146 times Have thanks: 57 times
|
Post # 296753
 Re: Password protection for folders
Indeed, but creating a new group isn't either. The requirement was: only the people who know the password for that folder will be able to access itbut if you were to use the approach of creating a new group, anyone who new the root password could access it surely? Chris
_________________ Gigabyte Z77P-D3, Intel i3-3220, GeForce 8400 GS, 4GB PC3-12800.
|
| Sun Mar 04, 2012 1:31 pm |
|
 |
|
malspa
MEPIS Guide
Joined: Thu Jul 13, 2006 7:21 am Posts: 1517 Location: albuquerque Has thanked: 70 times Have thanks: 91 times
|
Post # 296754
 Re: Password protection for folders
Yeah, that's how it looks to me.
|
| Sun Mar 04, 2012 1:35 pm |
|
 |
|
GoManutd
MEPIS Guide
Joined: Mon Jun 30, 2008 8:06 pm Posts: 2909 Has thanked: 48 times Have thanks: 368 times
|
Post # 296755
 Re: Password protection for folders
but by using groups, you don't need a password and you certainly don't have to give out the root password.
any user that is part of the group would simply have access because the group would have been assigned ownership...
that's what the linux permission system is for.
|
| Sun Mar 04, 2012 1:36 pm |
|
 |
|
chrispop99
MEPIS is cool!
Joined: Tue Jan 27, 2009 3:07 pm Posts: 515 Location: Bracknell, UK Has thanked: 146 times Have thanks: 57 times
|
Post # 296756
 Re: Password protection for folders
That approach would certainly work in some situations. I was thinking more of a family situation where let's say "Dad" is the administrator, and "Son" wants to keep a folder of images private. Son setting up a group would be no help because Dad has the root password. Or am I missing something? (Entirely possible!) Chris
_________________ Gigabyte Z77P-D3, Intel i3-3220, GeForce 8400 GS, 4GB PC3-12800.
|
| Sun Mar 04, 2012 1:50 pm |
|
|