Solaris sticky bit

Thread Tools Search this Thread
Operating Systems Solaris Solaris sticky bit
# 1  
Old 03-04-2014
Solaris sticky bit

i got this archive file on sticky bit mode. somehow i could not remove the sticky bit. i could not even copy or view the view using file user account or root account.

-rw-r--r-T 1 mark support 875166720 Mar 23 2005 file_mig.dat

anybody encounter this type of problem?

i have done running the command:

#chmod -t file_mig.dat

i found this on google:
T Permission Sticky bit is on, execution bit for others is off

i already using file owner account but still got this problem of not able to view or copy the file

when i tried to view the file with sticky bit on it got this message:

file temporarily unavailable on the server, retrying...
# 2  
Old 03-04-2014
Logged in as root you should be able to manipulate all security settings.

So keeping the owner, group, others rights the same as now what does:

# chmod 0644 file_mig.dat


It might be that some process has the file open.
# 3  
Old 03-04-2014

The use of the sticky bit changes greatly from one nix to an other, what is the OS and version?


# 4  
Old 03-04-2014
@gull04......I assumed that since the OP is on the Solaris forum that is the O/S.
# 5  
Old 03-04-2014
Hi hicksd8,

Was just opening mouth to change feet - sorry.

Assuming that it's 11 then it may be that the only root can remove the file as I think that there was a change in one of the 10 updates (10/9) I think, in that the parent directory has to be owned by the file owner as well or the user has to be a priv user.


# 6  
Old 03-04-2014
@gull04....Yes, you're correct. However, from the OP post, I think we're trying to strip out the sticky bit, not remove the file. Removal of the file means modifying the directory above (need right to) whereas stripping the sticky bit is a modification of that file's inode only.

Last edited by hicksd8; 03-04-2014 at 09:01 AM..
# 7  
Old 03-04-2014
If you look at the Solaris man pages on this forum, you'll note that only a user with privileges (such as root) can set the sticky bit on a regular file. Doing that tells the OS that this file is to be used as a swap file. The man pages explicitly state that the system ignores the sticky bit when a normal user is using chmod() on a regular file. The man pages don't explicitly state that a privileged user can't clear the sticky bit, but I assume that no one can clear that bit if the file is assigned to an active swap partition. (By any chance does this file show up as part of a swap partition when you run the mount command?)
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