LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can not write on someone's else /home directory (https://www.linuxquestions.org/questions/linux-newbie-8/can-not-write-on-someones-else-home-directory-834569/)

googlix 09-26-2010 08:42 AM

Can not write on someone's else /home directory
 
Hi Guys,

This might see a dump question but I will make it anyway :).

Here is the scenario:

I have two users on my Linux Mint installation:

User A
User B

I want User A to be able to write on User B home directory, say /home/B.

For this I have changed users's B home directory to look like this:

ls -ld

drwxrwxr-x 36 B music 4096 2010-09-26 10:31 /home/B

I have created a "music" group and assigned to /home/B, so all users that are member of "music" are going to be able to write on User B home directory, right?

The answer is No! Not here in my box :( Can you tell me why?

Why users under group music can't write on /home/B if B directory is owned by group music and group music has write permissions?

Thank You!

googlix 09-26-2010 08:45 AM

Additionally,

Here is how /etc/groups looks like:

tail /etc/group

sambashare:x:114:renan,rodrigo
rodrigo:x:1001:
music:x:1002:A,B,C,D,E

rodrigo@renan-desktop /home $

grail 09-26-2010 08:50 AM

What error do you receive and how are you trying to 'write' to the directory?

googlix 09-27-2010 05:31 PM

Hi grail,

Thanks for your reply and sorry for the delay.

The error I receive is "permission denied".

I am trying to write the usual, for instance, creating a directory or touch file.txt.

I have all the rights through group permission but Linux simply does not allow any member to write.

evo2 09-27-2010 07:39 PM

Changes to group permissions usually require a fresh login. Did you log the user out completely and then log back in?

Evo2.

grail 09-27-2010 07:44 PM

Also just wanted to confirm you are logged in as one of the users and not as rodrigo who is not in the group?


All times are GMT -5. The time now is 01:16 AM.