LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-02-2002, 12:52 PM   #1
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Rep: Reputation: 30
Sticky Bit


Hello everyone.

Well, i've been looking for information regarding the sticky bit. I have been unsuccessfuly in locating a web page of some sort to explain the sticky bit to me.

I understand how the sticky bit works, however, what i'm looking for his the permission numbers that are associated with it.

For example, what would chmod 1777 or chmod 2777 do. I understand the 777, but i'm trying to learn the first number before the rwx permission settings.

SO if anyone can shoot me a link, or explain it to me, i'd really appreciate it.

Thanks everyone.

TheTarball
 
Old 07-02-2002, 12:58 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
http://www.tac.eu.org/cgi-bin/man-cgi?chmod+1

About halfway down the page you'll see the modes for stickybit that might explain it some for you.
 
Old 07-02-2002, 09:00 PM   #3
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Original Poster
Rep: Reputation: 30
Hmm, i'm a little confused now. I guess I did not know exactly what the sticky bit did.

So, anyone know of a good way or a link that can explain this to me? For example, what are some valid reasons to use the sticky bit?

Let me ask another thing. The sticky bit is represented by a 't' when a ls -l is done in a directory. Ok, so what does something like this mean:

ls -l

drwxrsxr-- such and such file

I thought the 's' was the sticky bit?

Boy, im lost now.

Any help?

Thanks guys.

Confused Tarball
 
Old 07-02-2002, 09:15 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Nope, the sticky bit is shown like this:

drwxr-xrwt

And it is basically used and set to have only the owner of the file and or directory allowed to remove that file from a given directory.
 
Old 07-03-2002, 03:54 PM   #5
eallen
LQ Newbie
 
Registered: Jan 2002
Distribution: Suse Linux 7.3 - 8.1
Posts: 22

Rep: Reputation: 15
This web site does a pretty good job...

http://www.geocities.com/tipsforlinux/articles/028.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sticky Bit Doesn't Seem to work krishvij Linux - Newbie 5 05-10-2005 05:31 PM
Losing sticky bit privilege when using fork() jones507 Programming 1 11-13-2003 03:57 PM
file modes list i.e. what is a sticky bit? Glover Linux - Newbie 2 07-04-2002 06:41 AM
Sticky bit question...need help rootlinux Linux - General 1 01-26-2002 05:12 PM
sticky bit motiram Linux - General 1 08-01-2001 12:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration