Hot Downloads

Welcome, Guest
Username: Password: Remember me

TOPIC: PAM error message what does it mean?

PAM error message what does it mean? 10 years 11 months ago #12553

Feb 28 17:31:25 ernie ftpd[18380]: open_pam_conf: stat(/etc/pam.conf)
failed: No such file or directory
Feb 28 17:33:01 ernie ftpd[18383]: open_pam_conf: stat(/etc/pam.conf)
failed: No such file or directory


Is this the symptom of PAM not installed? or the config file is missing?
The administrator has disabled public write access.

Re: PAM error message what does it mean? 10 years 11 months ago #12557

  • nske
  • nske's Avatar
  • Offline
  • Expert Member
  • Posts: 613
  • Karma: 0
As it says, the config file is missing, either because PAM is not installed at all or for some other reason. Basically, your ftp server was configured to use PAM (usually a compile-time option), but it fails on runtime because it doesn't find the pam's configuration file in the predefined location. You should check through the package manager of your distribution, whether PAM is installed and (re)install it. It might also be the case that only an example configuration file is provided from the distribution's package (i.e. at /etc/pam.conf.sample) and you have to create pam.conf on your own.
The administrator has disabled public write access.

Re: PAM error message what does it mean? 10 years 11 months ago #12559

Thanks friend!

Dude, if i want ftpd to use MD5 for passwords then how can i make the PAM config file for ftpd to use the MD5 module?
The administrator has disabled public write access.

Re: PAM error message what does it mean? 10 years 11 months ago #12561

  • nske
  • nske's Avatar
  • Offline
  • Expert Member
  • Posts: 613
  • Karma: 0
You could use the "md5" argument to pam_unix.so module or use pam_pwdfile.so module that always uses encryption with the crypt library (usually md5). For example, you could put this in your pam.conf:

[code:1]
ftp auth required pam_pwdfile.so pwdfile /etc/ftpaccounts
ftp account required pam_permit.so
[/code:1]

/etc/ftpaccounts is the file that would contain all the accounts of the ftp users in the format
[code:1]
user1:hash1
user2:hash2
[/code:1]


This allows you to have seperate from the system (virtual) user accounts. :)

For detailed information regarding PAM's syntax you can refer here
The administrator has disabled public write access.

Re: PAM error message what does it mean? 10 years 11 months ago #12562

thanks dude!
The administrator has disabled public write access.
Time to create page: 0.077 seconds

CCENT/CCNA

Cisco Routers

  • SSL WebVPN
  • Securing Routers
  • Policy Based Routing
  • Router on-a-Stick

VPN Security

  • Understand DMVPN
  • GRE/IPSec Configuration
  • Site-to-Site IPSec VPN
  • IPSec Modes

Cisco Help

  • VPN Client Windows 8
  • VPN Client Windows 7
  • CCP Display Problem
  • Cisco Support App.

Windows 2012

  • New Features
  • Licensing
  • Hyper-V / VDI
  • Install Hyper-V

Linux

  • File Permissions
  • Webmin
  • Groups - Users
  • Samba Setup