Why does this not work any longer? bash-3.2-30.fc10.i386 [harry@nb-rhsoft:~]$ sudo update.sh [sudo] password for harry: sudo: update.sh: command not found [harry@nb-rhsoft:~]$ which update.sh /scripts/update.sh
Do you have /scripts in your PATH?
Sorry, I missed the output of your `which update.sh'. You have reported this bug against bash in F-8 and you are using F-10 bash? Or F-8 is just mistake?
Sorry, F8 seems to be default in bugzilla for me, i mean F10 Yes, i have /scripts in my path, also if a look with sudo I can not say since which exactly update this problem exists, but the locations, symlinks and path is not changed since october 2006 and worked well a long time [harry@nb-rhsoft:~]$ echo $PATH /usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/NX/bin:/home/harry/bin:/sbin:/usr/sbin:/scripts:/scripts/build-scripts:/usr/NX/bin [harry@nb-rhsoft:~]$ stat /scripts File: „/scripts“ -> „/mnt/data/scripts/“ Size: 18 Blocks: 8 IO Block: 4096 symbolische Verknüpfung Device: 801h/2049d Inode: 97832 Links: 1 Access: (0777/lrwxrwxrwx) Uid: ( 0/ root) Gid: ( 501/verwaltung) Access: 2008-08-30 15:01:57.000000000 +0200 Modify: 2006-09-09 18:43:11.000000000 +0200 Change: 2007-12-23 16:35:44.000000000 +0100 [harry@nb-rhsoft:~]$ sudo echo $PATH /usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/NX/bin:/home/harry/bin:/sbin:/usr/sbin:/scripts:/scripts/build-scripts:/usr/NX/bin
It's because sudo is compiled with `--with-secure-path="/sbin:/bin:/usr/sbin:/usr/bin"'. And if you want to know PATH env in your sudoed env you must invoke PATH variable expansion in that env. Change your: sudo echo $PATH to: sudo bash -c 'echo $PATH'
And this is dupicate of bug 471603. *** This bug has been marked as a duplicate of bug 471603 ***