Comments on What does capital T mean in the output of 'ls -l'?
Parent
What does capital T mean in the output of 'ls -l'?
+3
−0
I had a nightly cronjob start throwing errors about "inappropriate permissions..."
rsync: [generator] failed to set permissions on "/data2/home/redacted/alsoredacted/opt/dell/srvadmin/var/log/openmanage/omcmdlog.xml": Inappropriate file type or format (79)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1179) [sender=3.1.2]
Looking into it I found:
[myname@myserver ~]$ ls -l /opt/dell/srvadmin/var/log/openmanage/omcmdlog.xml
-rw-rw-r-T. 1 root root 735 Dec 19 22:03 /opt/dell/srvadmin/var/log/openmanage/omcmdlog.xml
I suspected the 'sticky bit'.
Googling it I found this:
`T'
If the restricted deletion flag or sticky bit is set but the
other-executable bit is not set.
I thought lsattr
would show it if it was set sticky but I guess not:
$ lsattr /opt/dell/srvadmin/var/log/openmanage/omcmdlog.xml
-------------e-- /opt/dell/srvadmin/var/log/openmanage/omcmdlog.xml
What does the capital T mean and how do I get rid of it?
Post
+1
−0
Works for me
The following users marked this post as Works for me:
User | Comment | Date |
---|---|---|
re89j |
Thread: Works for me Probably not the very best answer, but worked to fix my rsync error |
Jan 21, 2022 at 05:51 |
To get rid of it, I ran:
$ sudo chmod o-t /opt/dell/srvadmin/var/log/openmanage/omcmdlog.xml
$ ls -l /opt/dell/srvadmin/var/log/openmanage/omcmdlog.xml
-rw-rw-r--. 1 root root 735 Dec 19 22:03 /opt/dell/srvadmin/var/log/openmanage/omcmdlog.xml
I am still not entirely sure if it was sticky or setuid (more likely) but there's no reason that file should have been specially permissioned.
0 comment threads