in reply to (OT) user creation with perl

In generally, in Unix you cannot add users without being root, although some Unices have suid programs that allow non-root users to add users. IIRC, Solaris allows anyone in the admin group to add users using admintool. But still, those tools work by temporarely giving someone root powers - and only root can grant those powers.