6/17/2023 0 Comments Change host file in ubuntuR- last three characters – only read permissions for others Rw- next three characters – read & write permissions for group Rw- first three characters – read & write permissions for user We define permissions for three set of users namely – user, group and rest others. Now, zeroing down on permission set itself. rw-rw-r- these are the permissions of the objectġ represent the link count i.e. With ls -l command, we can view the permissions of an object. It would return us the output – -rw-rw-r- 1 user group 6 Feb 14 00:00 ABC.txt For instance, lets say we have a file ABC.txt then – issue the following in terminal – ls -l ABC.txt We can long list the contents of a file & directory using ls command with -l option. chmod is a command-line utility, which is used to change file mode bits.īut, first we need to discuss a bit about file & directory permissions itself. ![]() In this article, we would discuss how to set permissions on files & directories using chmod in Ubuntu distribution.
0 Comments
Leave a Reply. |