Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
su root as user from a script
Name: db2dev Date: June 2, 2004 at 15:01:33 Pacific OS: hp ux CPU/Ram: 2 gb
Comment:
Thanks for the response. I've another question. I was trying to connect to a remote system via ssh. When I run the script from my user account, ssh connects to remote system successfully. If I try running the same script as root, ssh asks for root password as ssh does't automatically login as root (unless I enable it in sshd2_config). I also learnt that su root can be done after logging as user. How can I achieve that in my script? Thanks
Summary: Hi, I am in root user running a script, this script need to execute some commands in oracle user, eg: #Start of script ... (commands run in root user) ... su - oracle #change to oracle user (commands ...
Summary: hi, my problem is that i have to make a web based system. in which i have to use korn shell cgi scripting. and create users and directories from web. now i don't know how i set password of new users f...
Summary: I am calling ndmcli from a script. When I run the script it gives me a syntax error for the "<<". this is a korn script... when I take the EOJ off the ndmcli is opened but the direct command p...