0
votes
2answers
185 views

CentOS $chmod a+w /etc/sudoers command not found

I am very new to CentOS and I am trying to edit my sudoers file. First I am told to run the following: $chmod a+w /etc/sudoers and right away I hit an error: bash: a+w: command not found What ...
2
votes
2answers
87 views

How do I change permissions on a directory

I'm using CentOS and I would like to know how to change permissions on a folder with multiple files in it. I have used the following commands on the folder as root (Let's say folder =A) : chmod ...
0
votes
1answer
63 views

CentOS: How to prevent a user from executing an application installed in a specific directory

I have an application installed in /etc/mydir. I have executed the following to remove the ability for users to execute this program. chown root:group1 /etc/mydir -R chmod 700 /etc/mydir -R I ...
2
votes
2answers
2k views

Restore default permissions to “/var” to CentOS installation

So I accidentally ran chmod -R 0777 /var and I need to revert that (let alone allow chmod the correct ssh directory so I can log back into it). I'm feeling screwed, can anyone help? The sooner the ...
0
votes
1answer
472 views

CentOS chmod overiding set-group-ID?

I'm used to setting up SGID on a directory chmod -R g+s example and then chmdo -R 750 example And have the directory and all sub-directories preserve the set-group-ID. On CentOS SGID gets ...