Mailinglist Archive: opensuse-programming (96 mails)
| < Previous | Next > |
useradd
- From: Greg Freemyer <freemyer@xxxxxxxxxxxxxxxxx>
- Date: Thu, 27 Mar 2003 16:13:02 -0500
- Message-id: <20030327211026.DQGM11325.imf33bis.bellsouth.net@tiger2>
Linux Guru's,
The way I want to setup my SuSE boxes, useradd is not working.
I have /etc/passwd bound to /config/etc/passwd (ie. mount --bind .....).
Doing a strace on useradd, I see it is failing because it creates /etc/passwd+
with the new user, then attempts a rename().
In my case, the rename is failing.
Does anyone know any pros/cons between me:
writing a shell script to use instead of useradd
getting the shadow srpm and changing useradd to work directly on
/etc/passwd
If I write my own script, and there any files other than /etc/passwd,
/etc/shadow, and /etc/skel I need to worry about?
Thanks
Greg
The way I want to setup my SuSE boxes, useradd is not working.
I have /etc/passwd bound to /config/etc/passwd (ie. mount --bind .....).
Doing a strace on useradd, I see it is failing because it creates /etc/passwd+
with the new user, then attempts a rename().
In my case, the rename is failing.
Does anyone know any pros/cons between me:
writing a shell script to use instead of useradd
getting the shadow srpm and changing useradd to work directly on
/etc/passwd
If I write my own script, and there any files other than /etc/passwd,
/etc/shadow, and /etc/skel I need to worry about?
Thanks
Greg
| < Previous | Next > |