Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-06-2006, 03:54 PM
|
#1
|
LQ Newbie
Registered: Apr 2006
Distribution: Slackware 10.2
Posts: 13
Rep:
|
Getting PAM to work
I've got Slackware 10.2.
I installed the PAM 0.99.3 package from linuxpackages.org.
But it dind't install itselt as described in the man pages.
There should be a config dir /etc/pam.d/ but instead there is something /etc/pam and still the content isn't what was described in the manual pages.
The the /lib/security/ dir is in /usr/lib/pam/
I'd like to get my virtual users working for vsftpd, but I can't beacaus of the strange installation
I was supposed to add the next two lines to /etc/pam.d/ftp
auth required /lib/security/pam_userdb.so db=/etc/vsftpd/accounts
account required /lib/security/pam_userdb.so db=/etc/vsftpd/accounts
Obviously they don't work. I tried to change the pam_userdb file path where it is located in the current PAM install, but no results.
Does anyone have experience with this PAM package.
Big thanks in advance for helping me
rmg
|
|
|
04-07-2006, 04:28 AM
|
#2
|
Moderator
Registered: May 2001
Posts: 29,415
|
If you read man pam.conf from the pkg it basically says /etc/pam.conf acts similar to /etc/pam.d/service_name. You'll have to prefix entries with service_name in pam.conf. Choosing for using /etc/pam.d overrides /etc/pam.conf. Where the modules are located isn't important AFAIK as long as anything that needs it can find them. Also ldd your vsftpd binary to see if it's compiled with PAM and can locate the necessary libs.
* BTW, this isn't a security question but a Slackware-specific on AFAIK, so I'll move ith there. Also it's linuxpackages.net.
|
|
|
04-08-2006, 05:22 AM
|
#3
|
LQ Newbie
Registered: Apr 2006
Distribution: Slackware 10.2
Posts: 13
Original Poster
Rep:
|
Sry for misspelling the address.
I quite don't know how to ldd the vsftpd, but I'll try to find out.
|
|
|
04-08-2006, 02:11 PM
|
#4
|
Moderator
Registered: May 2001
Posts: 29,415
|
I quite don't know how to ldd the vsftpd, but I'll try to find out.
Try "ldd /path/to/vsftpd|grep -i pam". It should show a line with /path/to/libpam.so.
|
|
|
04-09-2006, 02:50 AM
|
#5
|
LQ Newbie
Registered: Apr 2006
Distribution: Slackware 10.2
Posts: 13
Original Poster
Rep:
|
Aha, thanks. It didn't find any lines with pam in it, so this means that my vsftpd was compiled without pam support?
ldd found this:
Code:
libnsl.so.1 => /lib/libnsl.so.1 (0x4001c000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x40032000)
libdl.so.2 => /lib/libdl.so.2 (0x40061000)
libresolv.so.2 => /lib/libresolv.so.2 (0x40065000)
libutil.so.1 => /lib/libutil.so.1 (0x40078000)
libssl.so.0 => /usr/lib/libssl.so.0 (0x4007c000)
libcrypto.so.0 => /usr/lib/libcrypto.so.0 (0x400ad000)
libc.so.6 => /lib/libc.so.6 (0x401ae000)
/lib/ld-linux.so.2 (0x40000000)
|
|
|
04-09-2006, 05:34 AM
|
#6
|
Moderator
Registered: May 2001
Posts: 29,415
|
so this means that my vsftpd was compiled without pam support?
That is correct. Easy fixed though, just compile from source.
|
|
|
All times are GMT -5. The time now is 02:12 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|