Hi Mahmood,

I believe that the general permissions for a user's home directory prevent 
access to anyone but the primary user (and root of course).  For example:

[user@system ~]$ ls -l /home
drwx------. 88 user group  4096 Jul  8 09:12 user

Therefore, becoming a member of the correct group will not let you access files 
in that user's home directory (group has no read, write or execute permissions).

You will need to check the permissions of the directories in your  "/home" 
directory to confirm my theory.

I hope that is helpful.
Regards,
Jon

Jon Clark
Senior Software Engineer
[Servelec Tech Logo]<http://www.servelec-systems.com/>

D +44 1246 437516   P +44 1246 437580   F +44 1246 437401   A Rotherside Road, 
Eckington, Sheffield. S21 4HL

E [email protected]<mailto:[email protected]%20>   W 
www.servelec-systems.com<http://www.servelec-systems.com>

This email including any attachments is for the named person or persons use 
only. It may contain confidential or legally privileged information. No 
confidentiality or privilege is waived or lost by any mis-transmission. If you 
receive this email in error, please notify the sender, delete the email 
immediately, and remove all copies from your system. You must not, directly or 
indirectly, use, disclose, distribute, print, or copy any part of this message 
if you are not the intended recipient. All opinions expressed in this message 
are that of the individual sender, except where the message states otherwise 
and the sender is so authorised. Any liability (in negligence or otherwise) 
arising from any third party relying on this email is excluded. The company 
reserves the right to monitor all email communication for compliance purposes 
and to protect our business. Servelec Systems is part of Servelec Group plc 
www.servelec-group.com<http://www.servelec-group.com>. Servelec Systems Limited 
is a private limited company registered in England and Wales Co. No. 6879601 
UK. VAT Number: GB648280518.

P Please consider the environment and do not print this email unless absolutely 
necessary. Servelec Group encourages environmental awareness.


From: [email protected] 
[mailto:[email protected]] On Behalf Of Mahmood N
Sent: 08 July 2014 11:05
To: [email protected]
Subject: changing primary group

Hi
I changed the primary group of my user name to another on in order to access 
some folders of that user. However I can not access them. Why?

[root@N100 mahmood]# groups mahmood
mahmood : devs mahmood
[root@N100 mahmood]# groups devs
plotfi : devs

[mahmood@N100 ~]$ ls /home/devs/tools
ls: cannot access /home/devs/tools: Permission denied

Regards,
Mahmood

Reply via email to