Re: Pivot user for launching sqlplus
"Todd C. Miller" <[email protected]>
| Newsgroups | gmane.comp.tools.sudo.user |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 25 Jun 2019 16:57:28 -0300, Gabriel Menini wrote: > OTOH, the alias I set in the /home/superora/.profile: > > alias sqlplus='/path/to/bin/sqlplus' > > is not being loaded as the enviroment variables did: From "Troubleshooting tips and FAQ for Sudo": Q) When I run "sudo -i shell_alias" I get "command not found" even though the alias is defined in my shell startup files. A) Commands run via "sudo -i" are executed by the shell in non-interactive mode. The bash shell will only parse aliases in interactive mode unless the "expand_aliases" shell option is set. If you add "shopt -s expand_aliases" to your .bash_profile (or .profile if using that instead) the aliases should now be available to "sudo -i". ____________________________________________________________ sudo-users mailing list <[email protected]> For list information, options, or to unsubscribe, visit: https://www.sudo.ws/mailman/listinfo/sudo-users