How do I check user and group permissions in Linux?

Ngọc Trâm

New member
How do I check user and group permissions in Linux?
Answer
When you perform the following command:
  1. ls -l. Then you will see the file’s permissions, like the following: …
  2. chmod o+w section.txt. …
  3. chmod u+x section.txt. …
  4. chmod u-x section.txt. …
  5. chmod 777 section.txt. …
  6. chmod 765 section.txt. …
  7. sudo useradd testuser. …
  8. uid=1007(testuser) gid=1009(testuser) groups=1009(testuser)
 

Tìm kiếm

Back
Top