Current time: 04-14-2025, 09:59 AM Hello There, Guest! (LoginRegister)


Post Reply 
Remote useradd mod
Author Message
robmorin Offline
Junior Member
*

Posts: 208
Joined: Apr 2007
Reputation: 0
Post: #8
RE: Remote useradd mod
Cool.. ok so i added the -u and my test worked , however when i addded back all the other arguments it did not work, and this was in the log

joe:/var/www/ispcp/engine# cat /tmp/my-test.log
useradd: unknown group vu2013

weird how it does not get the group, unless the group needs to be added firstly?

the whole line is...
my $cmdR = "ssh -l root peter.domain.com /usr/sbin/useradd -c virtual-user -d $homedir -g $sys_group -s /bin/false -u $sys_uid $sys_user";

Thanks for your help!

Rob...

joximu Wrote:did you add the "-u"

useradd -u uid login

and not

useradd uid login

maybe you cann add a

> /tmp/my-test.log 2>&1

or similar - hopefully you see whats wrong...

/J
10-19-2007 11:15 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Remote useradd mod - robmorin - 10-18-2007, 04:26 AM
RE: Remote useradd mod - joximu - 10-18-2007, 06:20 AM
RE: Remote useradd mod - robmorin - 10-19-2007, 04:46 AM
RE: Remote useradd mod - robmorin - 10-19-2007, 05:36 AM
RE: Remote useradd mod - joximu - 10-19-2007, 06:09 AM
RE: Remote useradd mod - robmorin - 10-19-2007, 06:50 AM
RE: Remote useradd mod - joximu - 10-19-2007, 07:08 AM
RE: Remote useradd mod - robmorin - 10-19-2007 11:15 PM
RE: Remote useradd mod - rbtux - 10-19-2007, 11:28 PM
RE: Remote useradd mod - robmorin - 10-20-2007, 12:06 AM
RE: Remote useradd mod - joximu - 10-20-2007, 12:07 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)