Jan 10, 2001 #1 nadim Technical User Joined Mar 7, 2001 Messages 27 Location GB Is it possible to switch user (su) in a shell script and then run commands logged in as the user you have switched to.
Is it possible to switch user (su) in a shell script and then run commands logged in as the user you have switched to.
Jan 10, 2001 #2 ElgisRamon MIS Joined Jun 14, 1999 Messages 606 Location US The command [tt]sudo[/tt] was designed explicitely to do what you need. Try searching for it at http://www.bull.de/ I hope it works... Upvote 0 Downvote
The command [tt]sudo[/tt] was designed explicitely to do what you need. Try searching for it at http://www.bull.de/ I hope it works...
Jan 10, 2001 #3 cspilman MIS Joined Nov 17, 2000 Messages 307 Location US That is correct, sudo will do exactly what you need in this case. You can find information about what sudo is at this site: http://www.stikman.com/sudo/ Good Luck! Chuck Upvote 0 Downvote
That is correct, sudo will do exactly what you need in this case. You can find information about what sudo is at this site: http://www.stikman.com/sudo/ Good Luck! Chuck
Jan 10, 2001 #4 dabit Technical User Joined Dec 5, 2000 Messages 11 Location PH yes that is correct sudo will help you finished this script Upvote 0 Downvote