Solaris sticky bit


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris sticky bit
# 8  
Old 03-04-2014
@Don Cragun........What you say contradicts my longstanding generic understanding that 'sticky bits' cause a file to remain in virtual memory not become virtual memory. It is used (typically) on very frequently used executables to prevent them having to be loaded from disk every time thereby vastly improving load time of the application. Do correct me if I'm wrong.
# 9  
Old 03-04-2014
Quote:
Originally Posted by hicksd8
@Don Cragun........What you say contradicts my longstanding generic understanding that 'sticky bits' cause a file to remain in virtual memory not become virtual memory. It is used (typically) on very frequently used executables to prevent them having to be loaded from disk every time thereby vastly improving load time of the application. Do correct me if I'm wrong.
From the Solaris chmod(2) man page:
Quote:
If a directory is writable and has S_ISVTX (the sticky bit) set, files within that direc-
tory can be removed or renamed only if one or more of the following is true (see unlink(2)
and rename(2)):

o the user owns the file

o the user owns the directory

o the file is writable by the user

o the user is a privileged user

If a regular file is not executable and has S_ISVTX set, the file is assumed to be a swap
file. In this case, the system's page cache will not be used to hold the file's data.
If
the S_ISVTX bit is set on any other file, the results are unspecified.
Your longstanding generic understanding is correct for executable files. A file that ls -l shows up as:
Code:
-rw-r--r-T 1 mark support 875166720 Mar 23 2005 file_mig.dat

as is being discussed in this thread, is not executable.

Last edited by Don Cragun; 03-04-2014 at 03:53 PM.. Reason: Add note about difference between executable and non-executable regular file sticky bit processing.
# 10  
Old 03-04-2014
@Don Cragun......Thanks. You learn something new every day!!! Great forum this!!
# 11  
Old 03-04-2014
Quote:
Originally Posted by Don Cragun
Your longstanding generic understanding is correct for executable files.
Actually, the page you quoted shows that Solaris does not work that way. I would be surprised if any OS released this century still behaves like that.
# 12  
Old 03-07-2014
Yes, IIRC it was SunOS 4, later named Solaris 1 (to boost the Solaris sales).
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Sticky Bit

What is sticky bit ...and where we aill use this.. how to set this bit in files and directories (1 Reply)
Discussion started by: udtyuvaraj
1 Replies

2. Solaris

Does Sticky Bit works in solaris as per definition

Hi all, I have trouble working with Sticky bit in solaris, I am able to delete files and directory from the directory who has sticky bit set , i have verified that i am neither owner of the file pr directories.. I have check in Solaris 7, 8 ,9 ,10, versions, that does not seem to work..... (8 Replies)
Discussion started by: kshama
8 Replies

3. UNIX for Advanced & Expert Users

sticky bit

Hi, I understand the purpose of sticky bit on directories. But I am not very clear about what the sticky bit do on a file. Can any one explain me in detail and with example please. Thanks in advance. (1 Reply)
Discussion started by: praveen_b744
1 Replies

4. UNIX for Dummies Questions & Answers

Sticky Bit????

HI What is sticky bit? how can be see if the sticky bit for file is set? WHat is meaning of sticky bit set on Directory? What is the syntax to set the sticky bit? With example Thanks (10 Replies)
Discussion started by: skyineyes
10 Replies

5. UNIX for Dummies Questions & Answers

Question regarding permision and seguid bit (sticky bit)

Hi , I am having file permision as drwxrwsr_x I kwo for deleting a file in the diretory i need w permsion as well .. Say if i am having the permsion as drwxrwsrwx - wil any one can delete the files in the directory .. And one more question what is the s doing there ..... (2 Replies)
Discussion started by: arunkumar_mca
2 Replies

6. UNIX for Dummies Questions & Answers

Sticky Bit

Hi, could anyone please send me a link to learn/ know more about sticky bits? I am still not clear on the application of using a sticky bits. Thanks for your help. Regards, UP (3 Replies)
Discussion started by: teenu18
3 Replies

7. Shell Programming and Scripting

sticky bit

Hi frns, What is command to list out all dir's for which sticky bit has been set. Regards, Manu (2 Replies)
Discussion started by: manu.vmr
2 Replies

8. UNIX for Dummies Questions & Answers

Sticky Bit

I have the sticky bit set on my /tmp directory, but users are still able to remove files that are not owned by them. Does the /etc/group file get invloved in securing these files ?? (1 Reply)
Discussion started by: rob11g
1 Replies

9. UNIX for Dummies Questions & Answers

sticky bit

What command string would you use to set the sticky bit on a directory that you own? (2 Replies)
Discussion started by: mma_buc_98
2 Replies

10. UNIX for Dummies Questions & Answers

Sticky bit

I have a questions, whose answer may be very obvious: Of what use is the sticky-bit permission on a Unix system? I have looked at the chmod(1) man page on our HP-UX playground system, and haven't been given much explanation: Add or delete the save-text-image-on-file- execution (sticky... (3 Replies)
Discussion started by: LivinFree
3 Replies
Login or Register to Ask a Question