View previous topic :: View next topic |
Author |
Message |
Linubie Guru
Joined: 11 Jun 2004 Posts: 365
|
Posted: Mon Mar 03, 2014 6:40 pm Post subject: PATH Variable in der KDE-Konsole [solved] |
|
|
Hallo.
lt, /etc/profile sind für root und normaler User die Standardpfade gesetzt:
Code: |
if [ "$EUID" = "0" ] || [ "$USER" = "root" ] ; then
<------>PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:${ROOTPATH}"
else
<------>PATH="/usr/local/bin:/usr/bin:/bin:${PATH}"
fi
export PATH
unset ROOTPATH |
wenn ich allerdings z.B. als root in der Konsole echo $PATH eingebe:
Code: | /sbin:/bin:/usr/sbin:/usr/bin |
werden mir diese Pfade nicht angezeigt, muss ich dafür /etc/bash/bashrc ändern, oder mir im Home Verzeichniss .bashrc anlegen um auf diese Pfade zugreifen zu können?
Danke _________________ Mircosoft software is like having sex with a stranger, you always have to be careful not to get infected with something...
Last edited by Linubie on Mon Mar 03, 2014 7:21 pm; edited 1 time in total |
|
Back to top |
|
|
Jean-Paul Guru
Joined: 13 Apr 2009 Posts: 307
|
Posted: Mon Mar 03, 2014 7:14 pm Post subject: |
|
|
Was ergibt echo $PATH nach einem Quote: | env-update && source /etc/profile |
_________________ ”Everything should be made as simple as possible, but no simpler.” – Albert Einstein |
|
Back to top |
|
|
Linubie Guru
Joined: 11 Jun 2004 Posts: 365
|
Posted: Mon Mar 03, 2014 7:22 pm Post subject: |
|
|
Vielen Dank, das war's! _________________ Mircosoft software is like having sex with a stranger, you always have to be careful not to get infected with something... |
|
Back to top |
|
|
Linubie Guru
Joined: 11 Jun 2004 Posts: 365
|
Posted: Thu Sep 29, 2016 6:18 pm Post subject: |
|
|
Sorry ich muss das hier leider nochmal aus der Mottenkiste holen.
Ich habe mein System komplett neu installiert, nun habe ich wieder das Problem und ich weiß leider nicht mehr wie ich das damals gelößt habe.
Unter KDE in der Konsole mit su als root angemeldet:
Code: | echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin
env-update && source /etc/profile
>>> Regenerating /etc/ld.so.cache...
echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.3 |
sobald ich das System neu starte muß ich das Prozedere wiederholen. _________________ Mircosoft software is like having sex with a stranger, you always have to be careful not to get infected with something... |
|
Back to top |
|
|
Josef.95 Advocate
Joined: 03 Sep 2007 Posts: 4536 Location: Germany
|
Posted: Fri Sep 30, 2016 2:24 am Post subject: |
|
|
Hi,
du suchst vermutlich eine Login-Shell
Die bekommst du zb mit |
|
Back to top |
|
|
Linubie Guru
Joined: 11 Jun 2004 Posts: 365
|
Posted: Sat Oct 01, 2016 12:26 pm Post subject: |
|
|
Danke für den Tip, ich habe nun
in der /etc/bashrc
mit aufgenommen. _________________ Mircosoft software is like having sex with a stranger, you always have to be careful not to get infected with something... |
|
Back to top |
|
|
|