Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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:

-rwsr-Sr-T

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

-rwxr--r--

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

Any ideas?

Update

the command ran was:

sudo chmod 7744 ./*

share|improve this question

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.