What exactly is Stock Bit (t)


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers What exactly is Stock Bit (t)
# 1  
Old 08-10-2001
What exactly is Sticky Bit (t)

(yes i read the man page for chmod) and i did a basic search on the web.

but it never really went into any info on it.

the reason i ask is. when my systems receaves an email @ at certer user it has a specific mailer specified and that mailer writes stuff to /tmp well the orig. perms were rwxrwxrwt but i had changed it to 777 and i keept getting errors when i sent it mail. Can someone please explaine what the sticky bit is for?

Last edited by Optimus_P; 08-10-2001 at 04:09 PM..
# 2  
Old 08-10-2001
The sticky bit is for the folowing reason:

"With the sticky bit set, only the owner of a file or directory (or the super-user) may change that file's or directory's mode. Only the super-user may set the sticky bit on a non-directory file. If you are not super-user, chmod will mask the sticky-bit but will not return an error. In order to turn on a file's set-group-ID bit, your own group ID must correspond to the file's and group execution must be set."


HTT
# 3  
Old 08-10-2001
The sticky bit on /tmp will prevent users from deleting files any others than owned by themselves.
# 4  
Old 08-10-2001
Quote:
.
The `sticky bit' is not described by POSIX. The name
derives from the original meaning: keep program text on
swap device. These days, when set for a directory, it
means that only the owner of the file and the owner of
that directory may remove the file from that directory.
(This is commonly used on directories like /tmp that have
general write permission.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Which version of Windows Vista to install with a product key? 32-bit or 64-bit?

Hello everyone. I bought a dell laptop (XPS M1330) online which came without a hard drive. There is a Windows Vista Ultimate OEMAct sticker with product key at the bottom case. I checked dell website (here) for this model and it says this model supports both 32 and 64-bit version of Windows... (4 Replies)
Discussion started by: milhan
4 Replies

2. Shell Programming and Scripting

How to handle 64 bit arithmetic operation at 32 bit compiled perl interpreter?H

Hi, Here is the issue. From the program snippet I have Base: 0x1800000000, Size: 0x3FFE7FFFFFFFF which are of 40 and 56 bits. SO I used use bignum to do the math but summing them up I always failed having correct result. perl interpreter info, perl, v5.8.8 built for... (0 Replies)
Discussion started by: rrd1986
0 Replies

3. Red Hat

boot the 32 bit kernel on a 64 bit PPC Linux machine?

Hi all, I'm looking to cover a corner case for an upcoming test cycle. Is there a way to boot a RedHat Advanced Server 4 (update 3) installed on a Power PC machine to use a 32 bit kernel? This would be similar to what is done here -> https://www.unix.com/aix/26204-aix-platform.html I've done... (0 Replies)
Discussion started by: philrau
0 Replies

4. Programming

copying or concatinating string from 1st bit, leaving 0th bit

Hello, If i have 2 strings str1 and str2, i would like to copy/concatenate str2 to str1, from 1st bit leaving the 0th bit. How do i do it? (2 Replies)
Discussion started by: jazz
2 Replies
Login or Register to Ask a Question