Bug 18290
| Summary: | User path missing /sbin and /usr/sbin | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Need Real Name <danyj> |
| Component: | kdebase | Assignee: | Bernhard Rosenkraenzer <bero> |
| Status: | CLOSED RAWHIDE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.0 | CC: | dr |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2000-10-04 13:24:57 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
Need Real Name
2000-10-04 04:34:39 UTC
Oooopps Sorry, ... it does NOT have /bin twice at the beginning ... but "~/bin" and "/bin"! but still no /sbin and /usr/sbin. This is not a bug - the user path is not supposed to include */sbin. It's supposed to be in root's path only (try it on the console and you'll get the exact same behavior). If you don't like it, modify the startup scripts /usr/bin/startkde and/or /usr/share/apps/switchdesk/Xclients.kde Hi again, Unfortunately the suggested solution does not work. There is no /sbin in root's path neither. In fact the path shown above is root's! : ~/bin:/bin:/usr/bin:/usr/X11R6/bin:/opt/kde2/bin:/usr/lib/kde2/bin:/usr/local/bin In fact, now that I think about it, should it not be : root/bin:/bin .... instead of ~/bin:/bin ...???? (using echo $PATH) Also, If I start in runlevel 3 and start X manually with startx, the path is /usr/local/sbin:/usr/sbin:/sbin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/sbin:/usr/X11R6/bin:/root/bin But if I start in runlevel 5 into X and login in X, the path is (exactly as shown) ~/bin:/bin:/usr/bin:/usr/X11R6/bin:/opt/kde2/bin:/usr/lib/kde2/bin:/usr/local/bin Fixed in 2.0-3 I also noticed this problem! The PATH is OK when the root is logged on text console (by <Ctrl><Alt><F2> or so). The /sbin and /usr/sbin directories (and even /usr/local/sbin) are added to the PATH by script in /root/.bash_profile but it seems that it is never invoked. The above directories could be added in .bashrc but as new value since this script is invoked everytime shell starts. |