LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Other than chmod 2*** (https://www.linuxquestions.org/questions/linux-newbie-8/other-than-chmod-2%2A%2A%2A-248257/)

subaruwrx 10-28-2004 02:37 AM

Other than chmod 2***
 
Is there any chmod commands like 1***, 3***, 4*** etc? If so, whats the use of them?

I only know chmod 2*** is to set sticky bit.

Thanks

Tinkster 11-01-2004 01:02 PM

You obviously know wrong ...

Quote:

from man chmod
Code:

      A numeric mode is from one to  four  octal  digits  (0-7),
      derived  by  adding  up  the bits with values 4, 2, and 1.
      Any omitted digits are assumed to be leading  zeros.  The
      first  digit  selects the set user ID (4) and set group ID
      (2) and save text image [`sticky']  (1)  attributes.  The
      second digit selects permissions for the user who owns the
      file: read (4), write (2),  and  execute  (1);  the  third
      selects  permissions  for other users in the file's group,
      with the same values; and the fourth for other  users  not
      in the file's group, with the same values.



I suppose you could have found that
yourself, too :)


Cheers,
Tink


All times are GMT -5. The time now is 12:18 AM.