[Bug 657032] New: $HOSTNAME differs when logged in as root
https://bugzilla.novell.com/show_bug.cgi?id=657032 https://bugzilla.novell.com/show_bug.cgi?id=657032#c0 Summary: $HOSTNAME differs when logged in as root Classification: openSUSE Product: openSUSE 11.4 Version: Factory Platform: x86 OS/Version: SuSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: propstmatthias@googlemail.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.12) Gecko/20101026 SUSE/3.6.12-0.7.1 FireDownload/2.0.1 Firefox/3.6.12 When i am logged in as normal user on the commandline and type echo $HOSTNAME or echo $HOST it will return Marvin, which is my Hostname. However if i log in as root and use the $HOST or the $HOSTNAME variable i get "localhost" Reproducible: Always Steps to Reproduce: 1.echo $HOST 2.login as root 3.echo $HOST Actual Results: logged in as User: echo $HOST Result: Marvin logged in as Root: echo $HOST Result: localhost Expected Results: Should display The given hostname as root and as as user. in my case this is Marvin. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=657032
https://bugzilla.novell.com/show_bug.cgi?id=657032#c
Philipp Thomas
https://bugzilla.novell.com/show_bug.cgi?id=657032
https://bugzilla.novell.com/show_bug.cgi?id=657032#c2
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=657032
https://bugzilla.novell.com/show_bug.cgi?id=657032#c3
--- Comment #3 from matthias propst
https://bugzilla.novell.com/show_bug.cgi?id=657032
https://bugzilla.novell.com/show_bug.cgi?id=657032#c4
--- Comment #4 from matthias propst
did you try using: su -
instead of just su
This is not resolved and this is still reproducible. I can now tell more specific that this only happens if you use the command "su -" which is the only correct command logging in as root by the way. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=657032
https://bugzilla.novell.com/show_bug.cgi?id=657032#c5
matthias propst
https://bugzilla.novell.com/show_bug.cgi?id=657032
https://bugzilla.novell.com/show_bug.cgi?id=657032#c6
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=657032
https://bugzilla.novell.com/show_bug.cgi?id=657032#c7
matthias propst
https://bugzilla.novell.com/show_bug.cgi?id=657032
https://bugzilla.novell.com/show_bug.cgi?id=657032#c8
Dr. Werner Fink
participants (1)
-
bugzilla_noreply@novell.com