[sudo-users] issues with sudo -i or sudo -s
Mark Janssen
maniac.nl at gmail.com
Thu Jun 10 10:09:01 EDT 2010
On Thu, Jun 10, 2010 at 3:03 PM, Sudhakar PS <Sudhakar.PS at tatatel.co.in> wrote:
> dbaadmin$ sudo -u oracle10 <some_command>, while executing this command, I would like the profile of oracle10 to be executed along with the command. It tells me command not found etc. I need to manually execute the profile file. I have multiple oracle versions installed on a single server, require the account profile to be executed along with the sudo -u <oraclex> <command>. Let me know if I have some solution / workaround.
It's probably easiest to create a wrapper-script, which sources the
profile, and then executes the command
--
Mark Janssen -- maniac(at)maniac.nl -- pgp: 0x357D2178 | ,''`. |
Unix / Linux Open-Source and Internet Consultant @ Snow.nl | : :' : |
Maniac.nl MarkJanssen.nl NerdNet.nl Unix.nl | `. `' |
Skype: markmjanssen ICQ: 129696007 irc: FooBar on undernet | `- |
More information about the sudo-users
mailing list