You are not logged in.

#1 2013-05-19 10:16:34

Roberth
Member
From: The Pale Blue Dot
Registered: 2007-01-12
Posts: 894

Give a user read privileges to another users homefolder

Hello

I have two users on my system, and I need the other user to have read privileges to the my main users home folder, how do I do that?


Use the Source, Luke!

Offline

#2 2013-05-19 12:12:33

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: Give a user read privileges to another users homefolder

I think that this is the default in archlinux in anyway. You can check the permissions with

ls -l /home

By default all users are in the users group and the home folders belong to the users group, too. If group-read is allowed (5.th field) other users can read.
If you really need to change this see

man chown
man chmod

Last edited by teateawhy (2013-05-19 14:56:58)

Offline

#3 2013-05-19 12:25:40

Roberth
Member
From: The Pale Blue Dot
Registered: 2007-01-12
Posts: 894

Re: Give a user read privileges to another users homefolder

No it's not default.

Both users are in the group "users", my user "roberth" and the group "users" are the owner of /home/roberth, according to dolphin /home/roberth, the group "users" is forbidden to both view and modify this folder. When I try to change it through dolphin, dolphin just stops responding.

/home/roberth permissions:

drwx------ 16 roberth users  4096 May 19 12:20 roberth

I have never really exactly understood the permission system in linux, specially how to manage it. So any help would be appreciated, I need this explained to me, reading docs, haven't helped much for me.


Use the Source, Luke!

Offline

#4 2013-05-19 12:28:01

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: Give a user read privileges to another users homefolder

This is a really bad idea, use a shared folder instead.

Or if you *really* want to do it, look into ACL, less chance of messing it up that way.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#5 2013-05-19 12:31:08

Roberth
Member
From: The Pale Blue Dot
Registered: 2007-01-12
Posts: 894

Re: Give a user read privileges to another users homefolder

Why is that a really bad idea? The second user, isn't really used by anyone, it's just created for samba, where samba is used by my sonos mediaplayer, which also is under my control.


Use the Source, Luke!

Offline

#6 2013-05-19 12:37:26

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: Give a user read privileges to another users homefolder

I would rather create a /home/music or similar than riscking making a typo and therefor sharing all your sensetive data over the network.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#7 2013-05-19 12:47:22

Roberth
Member
From: The Pale Blue Dot
Registered: 2007-01-12
Posts: 894

Re: Give a user read privileges to another users homefolder

Well I am the only user on the network.


Use the Source, Luke!

Offline

#8 2013-05-19 14:55:57

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: Give a user read privileges to another users homefolder

chmod -R g+rx /home/robert

Last edited by teateawhy (2013-05-19 14:56:17)

Offline

Board footer

Powered by FluxBB