Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kein su unter kde
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
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1776
Location: PB, Germany

PostPosted: Sun Apr 17, 2005 9:46 am    Post subject: kein su unter kde Reply with quote

Hallo.

Unter KDE fuehre ich konsole aus.
Wenn ich nun su eingebe, passwort, bekomme ich ein "permission denied".
Auch su root hilft nicht.

Paolo
Back to top
View user's profile Send private message
schachti
Advocate
Advocate


Joined: 28 Jul 2003
Posts: 3765
Location: Gifhorn, Germany

PostPosted: Sun Apr 17, 2005 9:50 am    Post subject: Reply with quote

Der user, mit dem Du es probierst, ist Mitglied der Gruppe wheel?
_________________
Never argue with an idiot. He brings you down to his level, then beats you with experience.

How-To: Daten verschlüsselt auf DVD speichern.
Back to top
View user's profile Send private message
Mac Fly
Guru
Guru


Joined: 30 Nov 2003
Posts: 330
Location: nähe Stuttgart

PostPosted: Sun Apr 17, 2005 9:50 am    Post subject: Reply with quote

Ist dein User in der gruppe "wheel"? (Herauszufinden mittels "id $USER")
Nur User in der Gruppe dürfen "su" ausführen.
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1776
Location: PB, Germany

PostPosted: Sun Apr 17, 2005 11:16 am    Post subject: Reply with quote

danke.
gibt noch viel zu lernen nach dem Wechsel von Mandrake.

Noch eine kleine Frage: Die Prompt sieht hier anders aus, als in den Konsolen, nämlich der standard "bash-2.05b#".
Normalerweise steht das ja in der .bash_profile. Diese gibt es unter /root nicht.
Aber welcher Interpreter läuft dann in den Konsolen? Dort hab ich farbig das Verzeichnis angezeigt.

Sorry für die Anfängerfragen,
und danke, daß ihr so flinkt hier antwortet.

Paolo
Back to top
View user's profile Send private message
AbsturZ
Tux's lil' helper
Tux's lil' helper


Joined: 16 Sep 2003
Posts: 90

PostPosted: Sun Apr 17, 2005 11:26 am    Post subject: Reply with quote

Schau mal in der /etc/skel/.bashrc oder auch in der /etc/profile nach. Da sind auch
noch Verweise zu anderen Configs zu finden. Ich hoffe, dass hilft weiter.
_________________
Es steht niemandem frei, Christ zu werden: man wird zum Christentum nicht "bekehrt" - man muss krank genug dazu sein ...
[F.W. Nietzsche: "Der Antichrist"]
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1776
Location: PB, Germany

PostPosted: Sun Apr 17, 2005 12:03 pm    Post subject: Reply with quote

Hab die .bashrc und .bash_profile aus /etc/skel nach /root kopiert.
Nun hab ich immerhin bunte syntax und konnte bash-completion einschalten.
Die Prompt ist noch immer "bash.."
Frage ist ja nur, woher die Textkonsolen die Prompt hernehmen, oder läuft dort keine bash?
paolo
Back to top
View user's profile Send private message
AbsturZ
Tux's lil' helper
Tux's lil' helper


Joined: 16 Sep 2003
Posts: 90

PostPosted: Sun Apr 17, 2005 12:11 pm    Post subject: Reply with quote

/etc/profile:
Code:
if [ `/usr/bin/whoami` = 'root' ]
then
        # Do not set PS1 for dumb terminals
        if [ "$TERM" != 'dumb'  ] && [ -n "$BASH" ]
        then
                export PS1='\[\033[01;31m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]'
        fi
        export PATH="/bin:/sbin:/usr/bin:/usr/sbin:${ROOTPATH}"
else
        # Do not set PS1 for dumb terminals
        if [ "$TERM" != 'dumb'  ] && [ -n "$BASH" ]
        then
                export PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]'
        fi
        export PATH="/bin:/usr/bin:${PATH}"
fi

gibt die ausgabe: user@host Pfad $/#
kannst ja an den farben beliebig rumspielen.
_________________
Es steht niemandem frei, Christ zu werden: man wird zum Christentum nicht "bekehrt" - man muss krank genug dazu sein ...
[F.W. Nietzsche: "Der Antichrist"]
Back to top
View user's profile Send private message
dek
l33t
l33t


Joined: 16 May 2002
Posts: 657
Location: Germany

PostPosted: Sun Apr 17, 2005 12:26 pm    Post subject: Reply with quote

Mach einfach ein
Code:
source /etc/profile
in deiner ~/.bashrc.
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1776
Location: PB, Germany

PostPosted: Sun Apr 17, 2005 12:41 pm    Post subject: Reply with quote

Ich weiß nicht was ich falsch mache.
Genau die /etc/profile habe ich.
Wenn ich "konsole" starte, bleibt die prompt: bash-2.05b$
Wenn ich allerdings aus KDE-Menu direkt die konsole im superusermode starte, stimmt die prompt. Auch nach einem su meinuser stimmt dann die prompt.
/etc/profile ist füralle lesbar: rw-r--r--
Muß ich "adduser meinuser" mit einer anderen Option anlegen?
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1776
Location: PB, Germany

PostPosted: Sun Apr 17, 2005 12:47 pm    Post subject: Reply with quote

dek wrote:
Code:
source /etc/profile
in deiner ~/.bashrc.

Geht. Danke.
Was habe ich hiermit gemacht?
Back to top
View user's profile Send private message
dek
l33t
l33t


Joined: 16 May 2002
Posts: 657
Location: Germany

PostPosted: Sun Apr 17, 2005 12:53 pm    Post subject: Reply with quote

Damit wird beim Start einer beliebigen bash (nicht nur login-shell) die Datei /etc/profile ausgewertet.
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