[Bug 251287] New: When becoming "root" from a user directory, path is switced to root "/"
https://bugzilla.novell.com/show_bug.cgi?id=251287 Summary: When becoming "root" from a user directory, path is switced to root "/" Product: openSUSE 10.3 Version: Alpha 1plus Platform: i686 OS/Version: SuSE Other Status: NEW Severity: Normal Priority: P5 - None Component: GNOME AssignedTo: bnc-team-gnome@forge.provo.novell.com ReportedBy: casualprogrammer@yahoo.com QAContact: qa@suse.de This happens in openSUSE 10.3 alpha2. Open a Terminal, usually you are now in your home directory /home/user/, becoming root with "su" usually does not change the current directory. Now the directory is changed to root "/" -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=251287 andreas.hanke@gmx-topmail.de changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andreas.hanke@gmx-topmail.de Component|GNOME |Basesystem ------- Comment #1 from andreas.hanke@gmx-topmail.de 2007-03-05 08:39 MST ------- This has nothing to do with GNOME. su is /bin/su and part of the coreutils package. I agree that the new behaviour is somewhat irritating, especially if you're not used to it. Using the /bin/su from openSUSE 10.2 gets the old behaviour back, so the issue must be inside the coreutils package. The last coreutils changelog entry is: * Fr Mär 02 2007 - lnussel@suse.de - split off and rework PAM patch for su: * run pam_open_session as root (#245706) * use separate pam configs for "su" and "su -" (RedHat #198639) * detect pam libs in configure script, add option to disable it * don't set argv[0] to "-su", use upstream behavior instead * don't use getlogin() for setting PAM_RUSER -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=251287 jpr@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Comment #2 from jpr@novell.com 2007-03-05 09:00 MST ------- Its because you aren't doing a "full" login. 'su -' will do what you want. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=251287 andreas.hanke@gmx-topmail.de changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | ------- Comment #3 from andreas.hanke@gmx-topmail.de 2007-03-05 09:14 MST ------- No, "su -" changes the pwd to "/root". In the past, "su" without "-" didn't change the pwd at all. This bug is a request to get the previous behaviour back. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=251287 andreas.hanke@gmx-topmail.de changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |security-team@suse.de |gnome@forge.provo.novell.com| Status|REOPENED |NEW Component|Basesystem |Security ------- Comment #4 from andreas.hanke@gmx-topmail.de 2007-03-05 09:15 MST ------- Guessing an assignee. Is it really intended that "su" without "-" changes the pwd to "/"? -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=251287 lnussel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Comment #5 from lnussel@novell.com 2007-03-05 09:18 MST ------- no. my bad. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=251287 ------- Comment #6 from casualprogrammer@yahoo.com 2007-03-05 09:29 MST ------- Thanks for the feedback, Andreas got me right, try the following: i.e. open a terminal cjp@WORKSTATION6L:~> cjp@WORKSTATION6L:~>cd "/windows/c/Dokumente und Einstellungen/All Users/Anwendungsdaten/Windows Genuine Advantage" cjp@WORKSTATION6L:/windows/c/Dokumente und Einstellungen/All Users/Anwendungsdaten/Windows Genuine Advantage>su Password: WORKSTATION6L:/ # WORKSTATION6L:/ #exit cjp@WORKSTATION6L:/windows/c/Dokumente und Einstellungen/All Users/Anwendungsdaten/Windows Genuine Advantage>su - Password: WORKSTATION6L:~ # While I am used to cjp@WORKSTATION6L:/windows/c/Dokumente und Einstellungen/All Users/Anwendungsdaten/Windows Genuine Advantage>su - Password: WORKSTATION6L:/windows/c/Dokumente und Einstellungen/All Users/Anwendungsdaten/Windows Genuine Advantage# Which makes quite a difference if you have to retype the whole string, or even doing it with cut and paste. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=251287 lnussel@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #7 from lnussel@novell.com 2007-03-05 09:30 MST ------- fixed -- 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, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com