Python /etc/shadow

S

shakeeb

hi
i am pretty new to python .i was wondering whether there is any
module so that i could authenticate against /etc/shadow file i tried
pwd it only checks the /etc/passwd file
Any help will be appreciated
shakeeb
 
J

John Abel

Have a look at Medusa. There is some code in the examples that checks
against passwd/shadow.

Regards

John
 
D

Dennis Lee Bieber

Have a look at Medusa. There is some code in the examples that checks
against passwd/shadow.
Doesn't Medusa run at a privileged level?

As I recall, the shadow files are used because regular "user"
level code can NOT read them. So unless the original poster is running
privileged levels for his code, he can not use the shadow files
directly.


--
 
C

Christophe Cavalaria

shakeeb said:
hi
i am pretty new to python .i was wondering whether there is any
module so that i could authenticate against /etc/shadow file i tried
pwd it only checks the /etc/passwd file
Any help will be appreciated
shakeeb
There is a package called python-pam in Debian. I don't know if it is what
you want but it looks like it ( PAM : Pluggable Authentication Modules ).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top