Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Root Loginshell uebernimmt nicht Ps1 aus /etc/profile
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
razor
n00b
n00b


Joined: 23 Jan 2003
Posts: 28

PostPosted: Thu Jan 23, 2003 2:13 pm    Post subject: Root Loginshell uebernimmt nicht Ps1 aus /etc/profile Reply with quote

Guten Tag.

Am Ende meiner /etc/profile steht folgende Zeile:
Code:

PS1="\u@\h:\w$"


Wenn ich mich als User einlogge wird die oben genannte $PS1 auch uebernommen, wenn ich mich jedoch per 'su', also als Loginshell, als Root anmelde habe ich andere Settings naemlich genau die, die ich hatte nachdem ich Gentoo frisch aufgesetzt hatte.
Back to top
View user's profile Send private message
Alex_K
n00b
n00b


Joined: 12 Aug 2002
Posts: 57

PostPosted: Thu Jan 23, 2003 2:45 pm    Post subject: Reply with quote

also soviel ich weiß stehen in der /etc/profile 2 PS1 variablen, eine für alle user und eine für root, d.h. du musst auch die für root dementsprechend anpassen ...
Back to top
View user's profile Send private message
Beforegod
Bodhisattva
Bodhisattva


Joined: 10 Apr 2002
Posts: 1494
Location: Frankfurt/Main

PostPosted: Thu Jan 23, 2003 3:58 pm    Post subject: Reply with quote

Wirkungsvoller ist su mit --login zu verbinden.

Code:

su --login


Einfacher wäre es auch ein alias zu setzen

in /etc/conf.d/local.start

Code:

alias su = 'su --login'


BG
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