L
L
LakeForest2022-03-31 10:40:34
linux
LakeForest, 2022-03-31 10:40:34

How to calculate access rights? How can I translate the right of this type "drwx------" into a numeric format (such as 777)?

There are permissions "drwx------", "drwxr-xr-x" . How can I make a folder with the same permissions? I would like to translate what I see in ls -ls into the form available to the chmod command?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2022-03-31
@LakeForest

r w x | - - - | - - -
4+2+1 | 0+0+0 | 0+0+0
    7       0       0

r w x | r - x | r - x
4+2+1 | 4+0+1 | 4+0+1
    7       5       5

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question