How do I give a user permission to a folder in Linux?

Mỹ Duyên

New member
How do I give a user permission to a folder in Linux?
Answer
chmod ugo+rwx foldername
to give read, write, and execute to everyone.

…

The command for changing directory permissions for group owners is similar, but add a “g” for group or “o” for users:
  1. chmod g+w filename.
  2. chmod g-wx filename.
  3. chmod o+w filename.
  4. chmod o-rwx foldername.
 

Tìm kiếm

Back
Top