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
You should be able to use Yast2 as it simplifies it considerably, assuming you're not trying to create users programmatically. Greg Freemyer wrote:
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
-- To unsubscribe, email: suse-programming-e-unsubscribe@suse.com For additional commands, email: suse-programming-e-help@suse.com Archives can be found at: http://lists/archive/suse-programming-e
participants (2)
-
Craig Steffler
-
Greg Freemyer