Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #11554 > unrolled thread

Re: Linux : create a user if not exists

Started byChristian Heimes <lists@cheimes.de>
First post2011-08-16 16:14 +0200
Last post2011-08-16 16:14 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Linux : create a user if not exists Christian Heimes <lists@cheimes.de> - 2011-08-16 16:14 +0200

#11554 — Re: Linux : create a user if not exists

FromChristian Heimes <lists@cheimes.de>
Date2011-08-16 16:14 +0200
SubjectRe: Linux : create a user if not exists
Message-ID<mailman.62.1313504090.27778.python-list@python.org>
Am 16.08.2011 10:04, schrieb Chris Rebert:
> You can replace the /etc/passwd parsing with a call to pwd.getpwnam():
> http://docs.python.org/library/pwd.html#pwd.getpwnam

You should replace it. /etc/passwd is not the only source for users.
/etc/nsswitch.conf may list more user and group sources like nis/yp,
LDAP and so on.

Christian

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web