Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have two users on my Linux box:

  • John: an admin
  • Jane: a normal user.

I added them both into group called xampp_users. How can I allow both users to have read/write/execute permissions for directory /opt/lampp? I changed the owner and group of /opt/lampp to xampp_users, but it did not work.

share|improve this question
    
please post the result of ls -ld /opt/lampp and grep xampp_users /etc/group –  Matteo Jun 7 '12 at 5:19

1 Answer 1

If ls -l /opt/lampp displays the correct group, you probably have not applied the correct permissions for that directory. Use this command to fix that issue:

chmod g+rwx /opt/lampp

If you need to apply the permissions to the files in the directory too (probably yes), use -R to recursively apply commands chmod, chown, or chgrp.

If you want the new files created in this directory to be owned by the xampp_user group and not the main group of each user, use:

chmod g+s /opt/lampp

I you have not already, you may need to change the umask of the users to allow rwx on the group. Run man umask to learn how to apply the umask you want.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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