On 6 August 2010 12:56, Dinesh Kumar Rajagopal <[email protected]> wrote:
> Dear ilug-c,
>              I am writing shell script which control services (i.e
> start/stop/restart ) in production environment, for remote command execution
> i am using ssh with RSH Key for non root user. because root account should
> have password. so need to run the service in non root user. is this right
> way to do ?

* Check out sudo. Sudo can also be configured to read password from stdin.
* Second option is to see if you can run the daemon itself which you
are trying to restart as a non-root user. In that case you dont need
root privileges for restart.

HTH
--b


-- 
http://balajin.net/blog
http://flic.kr/balajijegan
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to