LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   proftpd - Unable to open config file: /etc/security/pam_env.conf (https://www.linuxquestions.org/questions/linux-server-73/proftpd-unable-to-open-config-file-etc-security-pam_env-conf-740094/)

micxz 07-14-2009 05:52 PM

proftpd - Unable to open config file: /etc/security/pam_env.conf
 
Linux version 2.6.18-128.1.10.el5 (mockbuild@builder16.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)) #1 SMP Thu May 7 10:39:21 EDT 2009

Hello all I getting the error:
Code:

proftpd: pam_env(proftpd:setcred): Unable to open config file: /etc/security/pam_env.conf: No such file or directory
/etc/security/pam_env.conf exists but there is not one line that isn't commented out. So even if it did find it...
I do have in proftpd.conf:
Code:

DefaultRoot        ~
Makes me think that because of the chrooted env it's trying to find file outside that chroot. But I'm not completely sure on this. Can anyone confirm it's the chroot? Other thoughts maybe?

viGeek 07-14-2009 08:56 PM

The default pam_env file is completely commented out (as you said),,,, I would check permissions on the file. Default is...

-rw-r--r-- 1 root root 3088 Jan 21 18:53 pam_env.conf

micxz 07-14-2009 09:10 PM

Quote:

Originally Posted by viGeek (Post 3607876)
The default pam_env file is completely commented out (as you said),,,, I would check permissions on the file. Default is...
-rw-r--r-- 1 root root 3088 Jan 21 18:53 pam_env.conf

I checked this first and it's world readable. "permission denied" is what I would expect for a permission issue. Thanks for your insight'

mike2010 01-07-2010 08:59 AM

Quote:

Unable to open config file: /etc/security/pam_env.conf
Hello, I'm getting the same exact error in my /log/secure file , but my proftp has been working fine the whole time.

This issue has probably been going on for months without my knowledge.. Just happened to check out the security logs this morning.

Is it ok to continue keep going as is ? Why does it need to open that file anyway ?


All times are GMT -5. The time now is 06:58 AM.