This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author giampaolo.rodola
Recipients giampaolo.rodola
Date 2010-11-11.14:03:10
SpamBayes Score 0.02191298
Marked as misclassified No
Message-id <1289484192.53.0.424683719192.issue10388@psf.upfronthosting.co.za>
In-reply-to
Content
As root:

>>> import spwd
>>> spwd.getspall()
[spwd.struct_spwd(sp_nam='root', sp_pwd='!', sp_lstchg=14895, sp_min=0, sp_max=99999, sp_warn=7, sp_inact=-1, sp_expire=-1, sp_flag=-1)
 ...
]

As limited user:

>>> import spwd
>>> spwd.getspall()
[]
>>> 

Wouldn't it be better for consistency to raise OSError EACCES instead?
History
Date User Action Args
2010-11-11 14:03:12giampaolo.rodolasetrecipients: + giampaolo.rodola
2010-11-11 14:03:12giampaolo.rodolasetmessageid: <1289484192.53.0.424683719192.issue10388@psf.upfronthosting.co.za>
2010-11-11 14:03:10giampaolo.rodolalinkissue10388 messages
2010-11-11 14:03:10giampaolo.rodolacreate