[Pkg-shadow-devel] Bug#483645: Bug#483645: Bug#483645: Bug with UID=4294967296 on Alpha-Arch. (lenny/sid)

xrgtn xrgtn at yandex.ru
Fri May 30 14:43:07 UTC 2008


Hello,

30.05.08, 13:28, "Nicolas François" <nicolas.francois at centraliens.net>:
> On Fri, May 30, 2008 at 09:10:29AM +0200, oliver.morais at akhwien.at wrote:
> > Creating an user-account and changing the UID via vipw to "4294967296"
> > (Which is 2^32) results in an overflow and the user gets the UID=0,
> > an UID of "4294967297" leads to an UID=1 and so on.

Maybe this is a platform limit (passwd.pw_uid is of uid_t type).
For example, on 64-bit HP Tru64 I see the next:

HP Tru64 UNIX V5.1B (Rev. 2650); Fri Jul 27 14:32:42 EEST 2007
xrgtn at xxx:~$ grep uid_t /usr/include/sys/types.h 
typedef int             uid_t;          /* user ID */
typedef uint_t          uid_t;          /* user ID */
typedef unsigned int cpuid_t;
xrgtn at xxx:~$ uname -a
OSF1 xxx.yyy V5.1 2650 alpha
xrgtn at xxx:~$ 

-- 
WBR,
xrgtn





More information about the Pkg-shadow-devel mailing list