Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

I have a pair of users on an ssh Server. lets call them UserX & UserY. UserX has the home Dir /home/userX UserY has the home Dir /home/userX Both are members of the userX group. UserX has no problems, everything is cool, and working fine. UserY may read Files in his home directory, but cannot write files.

How can I give full access permissions (rwx) to UserY?

share|improve this question
add comment

marked as duplicate by qbi, Kevin Bowen, Warren Hill, LiveWireBT, Jorge Castro Oct 24 '13 at 1:22

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

chmod 771 -R /home/UserX

This will give rwx permissions to both the owner and the members of the group that the owner belongs to. The first 7 gives the owner rwx permissions, the second gives rwx to the group and the third bit is everyone else. The -R flag is the recursive option. Everyone else with just have execute permissions (Hence the third bit in the triplex there). You could change this if you wanted different permissions for the global user (not the owner or part of the group).

Alternatively you can use:

chmod g+rwxs /home/UserX

This will ensure that future files created in the directory are owned by the group and have rwx permissions.

share|improve this answer
    
Will this make future files and folders created by UserX accessible to UserY? –  Kero Poonk Oct 21 '13 at 22:35
    
I have edited the answer –  Ntc Oct 22 '13 at 15:41
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.