Mailinglist Archive: opensuse-programming (96 mails)

< Previous Next >
useradd
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


< Previous Next >
Follow Ups