How do I give a user permission read only in Linux?

How do I give a user permission read only in Linux?
Answer
1 Answer
  1. Create the user useradd readonlyuser.
  2. Enter its password if you want password auth, otherwise, setup SSH keys passwd readonlyuser.
  3. Give Read and Execution permission to the directory Owner and all its sub-folders and files chmod -R o+rx /var/www/html/websitenamehere/
 

Tìm kiếm

Back
Top