Bug 479115
Summary: | sudo with shell-scripts no longer possible? | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Reindl Harald <spam2> |
Component: | bash | Assignee: | Roman Rakus <rrakus> |
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 8 | CC: | rrakus, tsmetana, twaugh |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-01-08 12:22:13 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Reindl Harald
2009-01-07 11:19:03 UTC
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 *** |