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
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jun 2004
Posts: 116

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: 195

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
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jun 2004
Posts: 116

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
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