Skip site navigation (1)Skip section navigation (2)
Date:       Thu, 14 Nov 2002 17:56:37 +1300
From:      Andrew Thompson <andy@fud.org.nz>
To:        freebsd-isp@FreeBSD.ORG
Subject:   Re: su and root password
Message-ID:  <02Nov14.175625nzdt.119053@homer.fire.org.nz>
References:  <002701c28b94$c378f4e0$a977ca41@yogi>

next in thread | previous in thread | raw e-mail | index | archive | help
Lewis Watson wrote:

>I have a program that ssh's to my machine and needs to do a script that
>calls pw useradd. I do not want to give root ssh ability so how can I make a
>regular user ssh in and utilize pw useradd as root? I have the script and it
>works great as root... I just can't figure out how to get around the
>password prompt for su....
>Please pass me some suggestions.
>Thanks.
>Lewis
>  
>
If you have "PermitRootLogin no" in the config root is still able to log 
in using publickey.  Then put command="pw useradd..." before the key in 
the authorized_keys file.


Andy


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?02Nov14.175625nzdt.119053>