thanks all for your guidance.Well on dir it is working perfect. I want to know regarding to octal value. Normally we do chmod g+s dir_name.When we say I it is said sticky bit .So which one sticky bit it .For root user ? Please guide me.It is confusing me!
2- When the default directory permission is 755 and we want to add sticky bit we should add it as
and to remove sticky bit
#chmod 2755 dir_name
#chmod 0755 dir_name
Kindly guide me about how to remove sticky bit using Octal digit.
3- In some web sites i have learned that to add or remove the sticky bit, use chmod with the "t" flag:
chmod +t <directory>
chmod -t <directory>
so when the +t will apply it will on normal user or for root user ?
Following are some Numeric representation for your kind info.
Octal digit Binary value Meaning
0 000 setuid, setgid, sticky bits are cleared
1 001 sticky bit is set
2 010 setgid bit is set
3 011 setgid and sticky bits are set
4 100 setuid bit is set
5 101 setuid and sticky bits are set
6 110 setuid and setgid bits are set
7 111 setuid, setgid, sticky bits are set