Bug 158360 - Initial directory does not work when using /bin/su as command
Summary: Initial directory does not work when using /bin/su as command
Status: RESOLVED WORKSFORME
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-24 21:36 UTC by Mike
Modified: 2008-07-01 23:56 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike 2008-02-24 21:36:18 UTC
Version:            (using Devel)
Installed from:    Compiled sources
OS:                Linux

I am trying to create a replacement for the old 'Root Shell' which came with kde 3.5.  I have created a new profile called root with the command set to /bin/su and the initial directory set to /root/.

The initial directory does not work, it goes to my default user directory instead.
Comment 1 Robert Knight 2008-03-18 03:46:58 UTC
> I have created a new profile called root with the command set
> to /bin/su and the initial directory set to /root/.

Works for me using the command "sudo $SHELL".  I presume /bin/su would work as well in this context although since I used Ubuntu 'su' is not directly available to users.
Comment 2 Robert Knight 2008-03-23 01:05:36 UTC
Any updates on this?  Otherwise I will have to close as WORKSFORME.
Comment 3 Mike 2008-03-24 13:52:18 UTC
This seems to be working now, I have to use su - to get it to work.
Comment 4 Joseph Reagle 2008-07-01 23:56:28 UTC
This is a problem for me in KDE4.1 Beta2 in Kubuntu. I create a "Root" profile of `sudo $SHELL` with initial directory /root, but it puts me in "/home/user"
and in the tab it shows the user as my username rather than what whoami will show (root).