Re: paths and su
On Fri, Jan 02, 1998 at 03:12:37PM -0600, Alex Romosan wrote: however when I su to root I get a path like this... /sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin I am not modifying the path in any environment files such as ...bash_profile -- what is resetting my path?? i had the same problem on some of the machines here until i removed secure-su (970616-1). in my case it was even worse, /sbin, /usr/sbin where not even in the path and the default shell was tcsh instead of bash. i think this is a bug in that particular package, but i couldn't be bothered to investigate further. I've got the same problem, but I'm using GNU su! Adam Klein -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: paths and su
however when I su to root I get a path like this... /sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin I am not modifying the path in any environment files such as ...bash_profile -- what is resetting my path?? i had the same problem on some of the machines here until i removed secure-su (970616-1). in my case it was even worse, /sbin, /usr/sbin where not even in the path and the default shell was tcsh instead of bash. i think this is a bug in that particular package, but i couldn't be bothered to investigate further. --alex-- -- | I believe the moment is at hand when, by a paranoiac and active | | advance of the mind, it will be possible (simultaneously with | | automatism and other passive states) to systematize confusion | | and thus to help to discredit completely the world of reality. | -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: paths and su
On Tue, 23 Dec 1997, Tim Ferrell wrote: Nope, I double checked this to be sure. I have only aliases in my bashrc files (global, user, and root). I am inclined to think that this is being set by a default config file somewhere though, because of the inclusion of /usr/bin/X11 - I always refer to this dir as /usr/X11r6/bin. Any other thoughts? How about the hard way ? find /etc /home -type f | xargs grep /usr/bin/X11 /tmp/find.x11 Ciao, Martin -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: paths and su
On Mon, 22 Dec 1997, Tim Ferrell wrote: As a recent Debian convert (from Red Hat) I am finding myself a bit disoriented at times... my latest question concerns su and paths. When I su to root my path does not end up being what I expect it too and I can't figure out exactly what is setting it. I have edited /etc/login.defs to be certain that _that_ is not what is doing it. Here are the details: su to root path in login.defs: /sbin:/bin:/usr/sbin:/usr/bin:~/bin: however when I su to root I get a path like this... /sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin I am not modifying the path in any environment files such as ...bash_profile -- what is resetting my path?? Of course, when I use su - or su -l the path is fine (actually, it is the normal full path I set for root) but then the shell has no knowledge of the value of DISPLAY. It is a pain to have to set the DISPLAY variable each time I want to run an X program... Could it possibly be that the environment when you su is set by /root/.bashrc rather than /root/bash_profile? Bob Bob Nielsen Internet: [EMAIL PROTECTED] Tucson, AZ AMPRnet: [EMAIL PROTECTED] http://www.primenet.com/~nielsen -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: paths and su
On 22 Dec, Bob Nielsen let loose with: -- Could it possibly be that the environment when you su is set by -- /root/.bashrc rather than /root/bash_profile? -- -- Bob Nope, I double checked this to be sure. I have only aliases in my bashrc files (global, user, and root). I am inclined to think that this is being set by a default config file somewhere though, because of the inclusion of /usr/bin/X11 - I always refer to this dir as /usr/X11r6/bin. Any other thoughts? Tim -- ## # # # # # # ## ## # # # # # Debian GNU Linux ## # # # # # # ## # ## # # # # Power to the people... # # # ## # # E-Mail: Tim Ferrell [EMAIL PROTECTED] -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .