In <[EMAIL PROTECTED]>, Philippe C. Martin wrote:
> I am attempting to write a linux logon manager with python.
Have you considered looking at the sources of xdm/gdm/kdm/... to see how
they solve the problems you have?
Ciao,
Marc 'BlackJack' Rintsch
--
http://mail.python.org/mailman/lis
"Philippe C. Martin" <[EMAIL PROTECTED]> writes:
> Hi Mike,
> Mike Meyer wrote:
>>> 1- I cannot find getpwent in the documentation
>> getpwent is a Unix library call. For python, you want the pwd
>> module. The docs are http://docs.python.org/lib/module-pwd.html >.
> I must be blind but still do no
Hi Mike,
Mike Meyer wrote:
>> 1- I cannot find getpwent in the documentation
>
> getpwent is a Unix library call. For python, you want the pwd
> module. The docs are http://docs.python.org/lib/module-pwd.html >.
>
I must be blind but still do not see it - do you mean getpwnam ?
>> 2- crypt w
"Philippe C. Martin" <[EMAIL PROTECTED]> writes:
> Jeff,
>
> 1- I cannot find getpwent in the documentation
getpwent is a Unix library call. For python, you want the pwd
module. The docs are http://docs.python.org/lib/module-pwd.html >.
> 2- crypt will not work if the system does not have shadow
getting there, this sequence creates a file with the correct uid and gid
test_user_ids = 504
print os.setreuid(test_user_ids,0)
print os.setregid(test_user_ids,0)
print os.setuid(test_user_ids)
print os.setgid(test_user_ids)
print os.getuid()
f = open("/tmp/toto","w")
f.write("titi")
f.close()
Jeff,
1- I cannot find getpwent in the documentation
2- crypt will not work if the system does not have shadow pw
3- Even as root I get "Operation not permitted" using setuid and setgid ...
but I assume it is because I cannot get 1 and/or 2 to work.
Can you direct me to some link that would expla
That helps a lot, thanks.
Regards,
Philippe
[EMAIL PROTECTED] wrote:
> "login APIs" vary widely from system to system.
>
> Classic Unix systems use calls like getpwent and crypt to check passwords,
> and then call setuid, setgid and setgroups to set the identity of the user
> who is
> logging
"login APIs" vary widely from system to system.
Classic Unix systems use calls like getpwent and crypt to check passwords, and
then call setuid, setgid and setgroups to set the identity of the user who is
logging in. These are all available in stock Python, check the library
reference for more de
Hi,
I am attempting to write a linux logon manager with python.
Can python access login APIs (which module ?) or do I need to write a
wrapper ?
Regards,
Philippe
--
http://mail.python.org/mailman/listinfo/python-list