Permission to pam.d folder denied.

General support questions
Post Reply
maru4
Posts: 1
Joined: 2019/02/22 13:04:47

Permission to pam.d folder denied.

Post by maru4 » 2019/02/22 13:27:04

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

tunk
Posts: 1205
Joined: 2017/02/22 15:08:17

Re: Permission to pam.d folder denied.

Post by tunk » 2019/02/22 14:13:05

I don't know what your problem is, but you really, really should run yum update to get 6.10.

lightman47
Posts: 1521
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: Permission to pam.d folder denied.

Post by lightman47 » 2019/02/22 15:38:21

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).

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Permission to pam.d folder denied.

Post by TrevorH » 2019/02/22 15:53:31

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).
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply