Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What are the UNIX file permissions?

file permissions Unix
0
Posted

What are the UNIX file permissions?

0

If you type ‘ll’ at a command prompt, you might see something like % ll (clipped) -rwxrw—- 1 johnson cheme 1056 Oct 3 10:37 index.html -rw——- 1 johnson cheme 691 Sep 29 15:54 myface.jpg (clipped) The -rwxrw—- represents the permissions for index.html. The first character represents special attributes. ‘d’ is for directory ‘-‘ is for normal file. The remaining 9 characters are intrepreted in groups of 3. The first ‘rwx’ is user permissions. In this case, index.html is readable writable, and executable by the user. The second group of 3 characters (‘rw-‘) is the group permissions. In our example, index.html is readable and writable (but not executable) by anyone in the group ‘cheme’. The final 3 characters (‘—‘) are permissions for ‘world’ or ‘everyone’. In this case, index.html is not readable by anyone outside the group cheme.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123