Page 1 of 1

Permission to pam.d folder denied.

Posted: 2019/02/22 13:27:04
by maru4
If you try to modify or create a new file in the /etc/pam.d/ folder, you will get a message that you do not have permission.

You ran the command using root.
[root @ oracle pam.d] # touch test.txt
touch: can not touch `test.txt ':" permission denied "

The pam.d folder permissions are:
-rw-r - r--. Root route

What is the problem?

What should be analyzed?

Please help me.

Using OS: Centos 6.4

Re: Permission to pam.d folder denied.

Posted: 2019/02/22 14:13:05
by tunk
I don't know what your problem is, but you really, really should run yum update to get 6.10.

Re: Permission to pam.d folder denied.

Posted: 2019/02/22 15:38:21
by lightman47
The permissions on MY pam.d folder are 755, not the 644 you show. The contents however have the permissions you listed. Your touch command also worked on my system (but I am CebtOS 7).

Re: Permission to pam.d folder denied.

Posted: 2019/02/22 15:53:31
by TrevorH
Using OS: Centos 6.4
6.4 is from March 2013 and using it unpatched is incredibly dangerous. It has numerous unpatched security flaws present and an attacker could most likely get root access in minutes. You are 6 years behind on maintenance and you'll be lucky if that machine is even yours any more.

If you can't write to /etc/pam.d as root then I would suspect a hardware error on the device containing that filesystem has marked the entire thing readonly. Check the output from the `dmesg` command for errors (it won't be in /var/log/messages if that filesystem also contains that directory).