HI All, In Chmod, what do they mean by "Sticky Bit", ie 1000? TIA J I M ----------------------------------------- Jim Hatridge Germany hatridge@straubing.baynet.de Proud Linux User #88484 !!!!!!!!!! Micro$oft -- Ghostdriver* on the road to the future! (*German Slang for the guy driving on the wrong side of the road!) ---------------------------------------------- "If a President of the United States ever lied to the American people he should resign." Bill Clinton, 1974 - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
James (Jim) Hatridge wrote:
HI All,
In Chmod, what do they mean by "Sticky Bit", ie 1000?
You can grant *other users* your rights running a binary. if the other user is permitted (group, world executeable) to run it, the programm is run with your UID. This can be a *big* securety risk, particulary if the granting party is root. But this would be 4000 (or 2000 for the rights of the files group), 1000 is -as man chmod tells- only used for directorys. Juergen -- ========================================== __ _ Juergen Braukmann mail: brauki@cityweb.de| -o)/ / (_)__ __ ____ __ Tel: 0201-743648 dk4jb@db0qs.#nrw.deu.eu| /\\ /__/ / _ \/ // /\ \/ / ==========================================_\_v __/_/_//_/\_,_/ /_/\_\ - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
is -as man chmod tells- only used for directorys. The man chmod is very limited in this case and does not explain the full effects on files and directorys.
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Juergen Braukmann wrote:
James (Jim) Hatridge wrote:
HI All,
In Chmod, what do they mean by "Sticky Bit", ie 1000?
You can grant *other users* your rights running a binary. if the other user is permitted (group, world executeable) to run it, the programm is run with your UID. This can be a *big* securety risk, particulary if the granting party is root. But this would be 4000 (or 2000 for the rights of the files group), 1000 is -as man chmod tells- only used for directorys.
Juergen
My prior post speaks for my confusion. Isn't what you're talking about called the suid bit? George - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
George Toft wrote:
Juergen Braukmann wrote:
Juergen
My prior post speaks for my confusion. Isn't what you're talking about called the suid bit?
George
Yes George, I got messed up. Sorry. But you learn something new every day. ;-)) Jürgen -- ========================================== __ _ Juergen Braukmann mail: brauki@cityweb.de| -o)/ / (_)__ __ ____ __ Tel: 0201-743648 dk4jb@db0qs.#nrw.deu.eu| /\\ /__/ / _ \/ // /\ \/ / ==========================================_\_v __/_/_//_/\_,_/ /_/\_\ - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Hi, On Mon, Dec 14, 1998 at 17:00 +0100, James (Jim) Hatridge wrote:
In Chmod, what do they mean by "Sticky Bit", ie 1000?
If you set it on a directory (e. g. /tmp), users can only delete their own files in it. Have a look at /tmp's permissions: drwxrwxrwt 4 root root 1024 Dec 14 20:38 /tmp without the sticky bit every user would have permission to remove someone elses files. On files the sticky bit doesn't have an effect (at least in Linux). Ciao, Stefan - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Stefan Troeger wrote:
Hi,
On Mon, Dec 14, 1998 at 17:00 +0100, James (Jim) Hatridge wrote:
In Chmod, what do they mean by "Sticky Bit", ie 1000?
If you set it on a directory (e. g. /tmp), users can only delete their own files in it. Have a look at /tmp's permissions:
drwxrwxrwt 4 root root 1024 Dec 14 20:38 /tmp
without the sticky bit every user would have permission to remove someone elses files.
On files the sticky bit doesn't have an effect (at least in Linux).
Ciao, Stefan
My interpretation on the sticky bit was that (on older Unix system) it would keep the file in RAM to prevent continuously reloading it. I read about this, then applied it to a CGI script and noticed about a 30 0ncrease in response from the web server, after all, speed is everything on a 486. George - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Hi, On Mon, 14 Dec 1998, James (Jim) Hatridge wrote:
In Chmod, what do they mean by "Sticky Bit", ie 1000?
AFAIK, If you use the sticky bit for directories, only the owner of a file will be able to remove it, despite of the other permissions. Linux does not use this bit for files. The /tmp - directory is an example for a sticky directory:
file /tmp/ /tmp/: sticky directory
Bye, LenZ ------------------------------------------------------------------ Lenz Grimmer SuSE GmbH <A HREF="mailto:grimmer@suse.de">mailto:grimmer@suse.de</A> Schanzaeckerstr. 10 <A HREF="http://www.suse.de/~grimmer"><A HREF="http://www.suse.de/~grimmer</A">http://www.suse.de/~grimmer</A</A>> 90443 Nuernberg, Germany - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
participants (6)
-
brauki@cityweb.de
-
charlesiii@theverge.com
-
grimmer@suse.de
-
hatridge@straubing.baynet.de
-
stefan.troeger@wirtschaft.tu-chemnitz.de
-
toftd001@hawaii.rr.com