Home / Linux / Page 4

Category: Linux

How to restrict access to a specific user when file or directory permission is 777?

To remove a user named ‘user’ access from a file/directory with full access to ‘other’. # setfacl -m u:user:- /path/to/file_or_directory The same can be done for a group named ‘groupname’; change u to g. # setfacl -m g:groupname:- /path/to/file_or_directory Check the permission with getfacl. # getfacl /path/to/file_or_directory # file: example/ # owner: root # group: …

Read more

File permissions of /var/cache/yum changed to 666

To resolve this issue follow below steps. Remove /var/cache/yum directory. # rm -fr /var/cache/yum List installed and enabled repositories. # yum repolist Then execute the following command to generate an updated updateinfo.xml file. # yum check-update Once the steps above are done, Check to see if the file has the wrong permissions. # find /var …

Read more