MEPIS Community Forum

A Linux operating system based on Debian Stable
View unanswered posts | View unsolved topics | View active topics |



Reply to topic  [ 29 posts ]  Go to page 1, 2, 3  Next
Password protection for folders 
Author Message
MEPIS Rules!
MEPIS Rules!
User avatar

Joined: Wed Jul 14, 2010 8:04 am
Posts: 176
Has thanked: 32 times
Have thanks: 1 time
Post # 296731
Post 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
Profile
MEPIS Guide
MEPIS Guide
User avatar

Joined: Mon Jun 30, 2008 8:06 pm
Posts: 2909
Has thanked: 48 times
Have thanks: 368 times
Post # 296732
Post 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

GoManutd thanked by: jeidern
Profile
MEPIS Rules!
MEPIS Rules!
User avatar

Joined: Sun Jan 09, 2011 12:11 pm
Posts: 290
Has thanked: 15 times
Have thanks: 24 times
Post # 296744
Post Re: Password protection for folders
GoManutd wrote:
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

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
Profile
MEPIS is cool!
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
Post Re: Password protection for folders
brux wrote:
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?


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
Profile
MEPIS Guide
MEPIS Guide
User avatar

Joined: Mon Jun 30, 2008 8:06 pm
Posts: 2909
Has thanked: 48 times
Have thanks: 368 times
Post # 296750
Post 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
Profile
MEPIS Guide
MEPIS Guide
User avatar

Joined: Thu Jul 13, 2006 7:21 am
Posts: 1517
Location: albuquerque
Has thanked: 70 times
Have thanks: 91 times
Post # 296751
Post 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
Profile
MEPIS is cool!
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
Post Re: Password protection for folders
GoManutd wrote:
truecrypt isn't the solution to the stated problem.


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 it

but 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
Profile
MEPIS Guide
MEPIS Guide
User avatar

Joined: Thu Jul 13, 2006 7:21 am
Posts: 1517
Location: albuquerque
Has thanked: 70 times
Have thanks: 91 times
Post # 296754
Post Re: Password protection for folders
chrispop99 wrote:
but if you were to use the approach of creating a new group, anyone who new the root password could access it surely?


Yeah, that's how it looks to me.


Sun Mar 04, 2012 1:35 pm
Profile
MEPIS Guide
MEPIS Guide
User avatar

Joined: Mon Jun 30, 2008 8:06 pm
Posts: 2909
Has thanked: 48 times
Have thanks: 368 times
Post # 296755
Post 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
Profile
MEPIS is cool!
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
Post Re: Password protection for folders
GoManutd wrote:
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.


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
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 29 posts ]  Go to page 1, 2, 3  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.