Bug 158360

Summary: Initial directory does not work when using /bin/su as command
Product: [Applications] konsole Reporter: Mike <mike>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

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).