Or use

sudo -u root /opt/jakarta/bin/shutdown.sh

and set the NOPASSWD in sudoers coniguration file for you/root:

you        ALL=(ALL)       NOPASSWD: ALL


No, but you can use ssh to localhost and play with keys to do this task :-)

Hi there,
I want to execute these command without the need for a password input.
su - root -c /opt/jakarta/bin/shutdown.sh
I am the superuser of the machine. Is there a possibility to put
something like a -p password in that argument?



--
Lep pozdrav,
     Gregor Jeromen

[Epilog d.o.o., Slovenija | tel: ++386-1-5838017 | fax: -5154015]

_______________________________________________
Solaris-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/solaris-users

Reply via email to