Originally posted by ShawnD
could you tell me how to give a guy full read and write access to the folder /var/junk for a user named joe? i learn by examples.
Alright, first create joe and make his home directory /var/junk.
If you want full read write access for joe in /var/junk, you want him to be owner or just part of a group ?
If he is owner or to make him owner:
chown joe /var/junk
For group ownership, say he is in the group users:
chgrp users /var/junk
Now to give the permissions for user joe, if he is owner, he should have already read and write access and executable by default.
If he is just part of the group users and you want him to have the read and write access:
chmod 760 /var/junk
That will give him read and write, the owner has full access and anyone else not part of the group no access.
I hope this helps, any other questions just ask.
might want to man chmod for more details on permissions.