1851709 Members
4812 Online
104062 Solutions
New Discussion

Re: Sticky Bit

 
SOLVED
Go to solution
Nobody's Hero
Valued Contributor

Sticky Bit

How do I get rid of the sticky bit on a directory with chmod?
UNIX IS GOOD
6 REPLIES 6
Geoff Wild
Honored Contributor
Solution

Re: Sticky Bit

chmod -t directory


Rgds...GEoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Nobody's Hero
Valued Contributor

Re: Sticky Bit

Actually I have a directory that is
rwxrwSr--

and I want it to be

rwxrwx---
UNIX IS GOOD
RAC_1
Honored Contributor

Re: Sticky Bit

rwxrwSr--

and I want it to be

rwxrwx---

Do chmod 774 file_name
There is no substitute to HARDWORK
Helen French
Honored Contributor

Re: Sticky Bit

# chmod 770 dir_name
Life is a promise, fulfill it!
PVR
Valued Contributor

Re: Sticky Bit

Hi,

rwxrwSr-- Means SUID bit is set for group. it is not sticky bit.

Do #chmod 770 dirname

Don't give up. Try till success...
Elmar P. Kolkman
Honored Contributor

Re: Sticky Bit

The capital 'S' implies that the real mode of your directory is 2764: rwx for owner, rw and sgid on group and readable to world.

A sgid on a directory results in files created there will be automatically of the group of the directory.

To remove a sgid bit on the directory, you can do:
chmod g-s

This will not result in the drwxrwxr-- mode you want in this case (because the 'S' is upper and not lower case).
Every problem has at least one solution. Only some solutions are harder to find.