Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

71%
+3 −0
Q&A What does capital T mean in the output of 'ls -l'?

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/open...

2 answers  ·  posted 3y ago by re89j‭  ·  last activity 3y ago by Quasímodo‭

Question linux coreutils ls
#2: Post edited by user avatar Quasímodo‭ · 2022-01-21T11:12:25Z (almost 3 years ago)
Mostly code block formatting
  • What does capital T mean in 'ls'?
  • What does capital T mean in the output of 'ls -l'?
  • 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 ~]$ ll /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 reference:
  • `T'
  • If the restricted deletion flag or sticky bit is set but the
  • other-executable bit is not set.
  • > $ lsattr /opt/dell/srvadmin/var/log/openmanage/omcmdlog.xml
  • -------------e-- /opt/dell/srvadmin/var/log/openmanage/omcmdlog.xml
  • I thought lsattr would show it if it was set sticky but I guess not.
  • What does the capitol T mean and how do I get rid of it?
  • 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?
#1: Initial revision by user avatar re89j‭ · 2022-01-21T05:45:35Z (almost 3 years ago)
What does capital T mean in 'ls'?
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 ~]$ ll /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 reference:
    `T'
          If the restricted deletion flag or sticky bit is set but the
          other-executable bit is not set.


 > $ lsattr /opt/dell/srvadmin/var/log/openmanage/omcmdlog.xml
-------------e-- /opt/dell/srvadmin/var/log/openmanage/omcmdlog.xml

I thought lsattr would show it if it was set sticky but I guess not.

What does the capitol T mean and how do I get rid of it?