C
C
cruz2011-10-12 10:33:59
linux
cruz, 2011-10-12 10:33:59

Number of bits to store permissions in the file system

Good afternoon.

Please help me understand the following question: "How many bits are allocated in the Linux file system to store access rights?".

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Ano, 2011-10-12
@Ano

What is a "Linux file system"?
Actually, bit nine is right; in the same field there are also setuid, setgid, sticky and four bits for the file type, for a total of 16. Different file systems implement this differently, plus there are POSIX ACLs that take up a variable amount of space.

I
Infinitive, 2011-10-12
@Infinitive

Под права выделяются 9 бит в атрибутах файла, каждый бит хранит ноль или единицу.
Source

C
cruz, 2011-10-12
@cruz

Thank you, this is the answer I needed.
Please clarify why 4 bits for file types? Is a file or directory indicated by 2 different bits, not just one, for example, 1 is a file, 0 is a directory? And also hardlinks and softlinks?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question