Permission to pam.d folder denied.

General support questions
Post Reply
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

Posts: 870
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.

Posts: 1246
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).
Remember - importing/building packages will likely "byte you in the butt" come update time, long after you'd forgotten you did that! Use repos whenever possible.

User avatar
Forum Moderator
Posts: 30174
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).
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 6 - General Support”