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 did chmod on some files in Mac 10.7.3 and I accidentally entered the code 7744 instead of 744.

The resulting permissions were:


After seeing this I reran chmod and fixed the permissions to:


I understand that I put a bad permissions code in, but I was curious what those permissions mean.

Any ideas?


the command ran was:

sudo chmod 7744 ./*

share|improve this question
up vote 2 down vote accepted

The extra 7 set the setuid ("set user ID"), setgid ("set group ID"), and sticky bits in the permissions.

The "s" in the user permissions means it has execute and set ID permissions, the "S" in group means it has set ID but not execute, and the "T" in the other perms means it has the sticky bit but not execute (lowercase "t" would mean both execute and sticky).

See man chmod for details on the meaning of the extra digit, and man ls for details of how ls shows the results.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .