Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just found this confusing output of the ls command:

    whodare@ubuntu~ $: ls -l /var/spool/cron/
    total 12
    drwxrwx--T 2 daemon daemon  4096 Oct 29 05:02 atjobs
    drwxrwx--T 2 daemon daemon  4096 Sep 15 21:09 atspool
    drwx-wx--T 2 root         crontab  4096 Dec 24 02:11 crontabs

I know 't' means sticky, but what does 'T' mean?

How can I setup this bit for a directory?

share|improve this question

migrated from Dec 23 '09 at 19:31

This question came from our site for professional and enthusiast programmers.

't' takes place of 'x' so you need to be able to distinguish whether the 'x' was supposed to be there and was overwritten by 't'

  • 't' == sticky + 'x'
  • 'T' == only sticky
share|improve this answer

Look for sticky bit in here.
Regarding your second question, look at this wikipedia entry on how to set it.

The difference between the two is that 'T' is present

on a file or directory without the execution bit set for the others category

share|improve this answer

t will be in place of others permission and in place of execute permission. So it means that t is for execute + sticky bit. T means only sticky bit without execute permission.


dr-xr-xr-t  2 scm scm 4096 Feb 15 17:48 log
drwxr-xr-T  2 scm scm 4096 Feb 15 18:04 rpm

Here, log has execute + sticky bit (others). rpm has only sticky bit.

share|improve this answer

You must log in to answer this question.