Current time: 11-16-2024, 12:42 PM Hello There, Guest! (LoginRegister)


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

Posts: 208
Joined: Apr 2007
Reputation: 0
Post: #6
RE: Remote useradd mod
Yes i tried the actuall whole line but no go, thats why i tried a simple static entry like fred as the username, and it worked, so it does connect to the machine and does stuff , but i think the useradd fails because of a syntax error, with respect to the variables.....

Nothing on the remote machine in the logs pertaining to a bad useradd command..

Anything else i should check?

Thanks
Rob..



joximu Wrote:Is there anything in the logfile on the remote machine?

I'd try:
Code:
my $cmdR = "ssh -l root peter.domain.com /usr/sbin/useradd -u $sys_uid $sys_user";

maybe also an "-m" to create the home, and maybe also the homedir ( -d home ) - it depends on what you want to do...

/J
10-19-2007 06:50 AM
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)