Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PATH Variable in der KDE-Konsole [solved]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Linubie
Apprentice
Apprentice


Joined: 11 Jun 2004
Posts: 192

PostPosted: Mon Mar 03, 2014 6:40 pm    Post subject: PATH Variable in der KDE-Konsole [solved] Reply with quote

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
View user's profile Send private message
Jean-Paul
Apprentice
Apprentice


Joined: 13 Apr 2009
Posts: 265

PostPosted: Mon Mar 03, 2014 7:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Linubie
Apprentice
Apprentice


Joined: 11 Jun 2004
Posts: 192

PostPosted: Mon Mar 03, 2014 7:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Linubie
Apprentice
Apprentice


Joined: 11 Jun 2004
Posts: 192

PostPosted: Thu Sep 29, 2016 6:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 2892
Location: Germany

PostPosted: Fri Sep 30, 2016 2:24 am    Post subject: Reply with quote

Hi,
du suchst vermutlich eine Login-Shell
Die bekommst du zb mit
Code:
su -l
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum