New submission from Giampaolo Rodola' <g.rod...@gmail.com>: 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? ---------- messages: 120950 nosy: giampaolo.rodola priority: normal severity: normal status: open title: spwd returning different value depending on privileges versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10388> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com