Thanks. Thats the weird think. Permissions are set to 775 , I a ma member of test yet I still get "permissions denied.".... I dont get it...
Main Topics
Browse All TopicsI am trying to allow users from the test group create and write to files under my /tmp/test folder/...but it is NOT working!
My steps are: create the folder under / using root user then,
1. chmod g+s /tmp/test
2. chgrp test /tmp/test
3. usermode -a -G test "myuser"
4. I go to create a file under the directory /tmp/test and PERMISSIONS DENIED!!
ARRR!!!! What am I doing wrong??
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
The SGUID bit is useful if you have different users that have different primary groups.
For example, say you have
user1 with primary group of group1 and secondary group of 'test'
user2 with primary group of group2 and secondary group of 'test'
If the permissions on /tmp/test are 775, then if user1 creates a file/dir, the group ownership of the file/dir will be 'group1'. With the SGUID bit set on /tmp/test and group ownership set to 'test', it will ensure any files/dirs created by user1 and user2 will have group ownership of 'test'
Business Accounts
Answer for Membership
by: TintinPosted on 2009-09-27 at 14:28:52ID: 25435567
You are setting SGUID bit not sticky bit. The SGUID bit ensures any files/dirs created under the directory with SGUID bit set will have the group name of that directory.
You need to make sure you have write permission for the group as well, eg:
chmod 770 /tmp/test (or 775 depending on your needs)
chmod g+s /tmp/test