Todd C. Miller
Todd.Miller at courtesan.com
Thu Mar 21 19:30:20 EST 2002
In message <OF0B6727D1.CA668B4C-ONC1256B83.003608A8 at arz.co.at>
so spake "Philipp =?iso-8859-1?Q?Achm=FCller?=" (Philipp_Achmueller):
> for some commands i need the root environment, to execute the command
> for testing i tried it with the following command:
> sudo -s find / -name xxx -> i get the following message: /usr/bin/ksh:
> find: Execute permission denied
"sudo -s find / -name xxx" is not what you want to do, it will pass
"find / -name xxx" as an arguement to the shell. The shell will then
try to execute 'find' as a shell script.
Starting with sudo 1.6.4 you can specify that the environment be
cleared for commands. Perhaps that, along with the "always_set_home"
option will do what you want.
More information about the sudo-users