LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-26-2010, 09:42 AM   #1
googlix
LQ Newbie
 
Registered: Oct 2007
Location: São Paulo - Brazil
Distribution: Debian Etch 4.1 r1
Posts: 12

Rep: Reputation: 0
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!

Last edited by googlix; 09-26-2010 at 09:43 AM.
 
Old 09-26-2010, 09:45 AM   #2
googlix
LQ Newbie
 
Registered: Oct 2007
Location: São Paulo - Brazil
Distribution: Debian Etch 4.1 r1
Posts: 12

Original Poster
Rep: Reputation: 0
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 $
 
Old 09-26-2010, 09:50 AM   #3
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,254

Rep: Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686
What error do you receive and how are you trying to 'write' to the directory?
 
Old 09-27-2010, 06:31 PM   #4
googlix
LQ Newbie
 
Registered: Oct 2007
Location: São Paulo - Brazil
Distribution: Debian Etch 4.1 r1
Posts: 12

Original Poster
Rep: Reputation: 0
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.
 
Old 09-27-2010, 08:39 PM   #5
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

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

Evo2.
 
Old 09-27-2010, 08:44 PM   #6
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,254

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't write to home directory error bond82 Mandriva 5 06-06-2007 03:11 PM
Active Directory User Cannot Write to Samba Home Directory jonwatson Linux - Networking 2 12-19-2006 01:40 PM
Deny Write Access to Home Directory zenix Red Hat 5 06-28-2006 01:07 AM
No write access to #home directory RichGags Linux - Newbie 9 01-24-2006 05:21 AM
Could not write to my home directory comprookie2000 Linux - Newbie 19 05-11-2004 09:36 PM


All times are GMT -5. The time now is 10:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration