Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #11554 > unrolled thread
| Started by | Christian Heimes <lists@cheimes.de> |
|---|---|
| First post | 2011-08-16 16:14 +0200 |
| Last post | 2011-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.
Re: Linux : create a user if not exists Christian Heimes <lists@cheimes.de> - 2011-08-16 16:14 +0200
| From | Christian Heimes <lists@cheimes.de> |
|---|---|
| Date | 2011-08-16 16:14 +0200 |
| Subject | Re: 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
Back to top | Article view | comp.lang.python
csiph-web