From: uel a. <ue...@gm...> - 2006-04-21 20:46:16
|
I guess what I dont understand is 1) who's path gets loaded when I use "su"?? 2) how do I add something to that path permenantly? [uel@vector~]$ echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/opt/bin:/usr/local/games:/opt/= java/bin:/opt/java/jre/bin:/opt/kde/bin:/opt/xfce4/bin:.:/usr/X11R6/bin:/op= t/xfce4/bin [uel@vector~]$ su - Password: [root@vector~]# echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/opt/bin:/usr/local/games:/usr/= local/sbin:/usr/sbin:/sbin:/opt/java/bin:/opt/java/jre/bin:/opt/kde/bin:/op= t/xfce4/bin:/usr/X11R6/bin:/opt/xfce4/bin [root@vector~]# exit logout [uel@vector~]$ su Password: [root@vector/home/uel]# echo $PATH /usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin= :/opt/xfce4/bin I thought I better look for the answer myself before I posted this, and after I found it I thought I would pass it along just incase anyone else needs it The current environment is passed to the new shell. The value of $PATH is reset to /bin:/usr/bin for normal users, or /sbin:/bin:/usr/sbin:/usr/bin for the super user. This may be changed with the ENV_PATH and ENV_SUPATH defini=AD tions in /etc/login.defs. Thanks Uel On 4/21/06, Jose J. Rodriguez <jo...@gm...> wrote: > > On 4/21/06, uel archuletta <ue...@gm...> wrote: > > I think its a good Idea, But I have that in my .bashrc and it doesnt > help me > > :( > > I even get this in a new terminal > > non-network local connections being added to access control list > > [uel@vector~]$ su - > > Password: > > [root@vector~]# firefox > > > > (firefox-bin:18773): Gtk-WARNING **: cannot open display: > > [root@vector~]# exit > > logout > > > > firefox works if i just use "su" but kate and kwrite don't. weird > > I know I dont get roots path without the - but I thouht I had the users= ? > > > > > > [uel@vector~]$ su > > Password: > > [root@vector/home/uel]# firefox > > [root@vector/home/uel]# kate > > bash: kate: command not found > > [root@vector/home/uel]# kwrite > > bash: kwrite: command not found > > [root@vector /home/uel]# > > > > > > > > > > This fix has worked well for me too, since it was posted. Uel, your > problem with kate, kedit and company is another little "bug". The > environment path is different for root and users. Add /opt/kde/bin to > the root path. Your other problem with "su -" is funny, as it's > probably because this variation of su works like this: > > "The optional argument - may be used to provide an environment > similiar to what the user would expect had the user logged in > directly" > > so maybe as the fix is not in the root user's environment....... > > Regards, > Joe1962 > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmdlnk&kid=120709&bid&3057&dat=121642 > _______________________________________________ > Vectorlinux-devel mailing list > Vec...@li... > https://lists.sourceforge.net/lists/listinfo/vectorlinux-devel > |