Translations:Linux introduction/22/en

From Alliance Doc
Jump to navigation Jump to search
  • Prevent group members and all others to read or modify the file secret.txt:
    Question.png
    [name@server ~]$ chmod go-rwx secret.txt
    
  • Allow everybody to read the file public.txt:
    Question.png
    [name@server ~]$ chmod a+r public.txt
    
  • Make the file script.sh executable:
    Question.png
    [name@server ~]$ chmod a+x script.sh
    
  • Allow group members to read and write in the directory shared:
    Question.png
    [name@server ~]$ chmod g+rwx shared
    
  • Prevent other users from reading or modifying your home directory:
    Question.png
    [name@server ~]$ chmod go-rw ~