karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] Commented: (KARAF-132) The user name for the main console session is always "karaf"
Date Tue, 04 Jan 2011 23:12:47 GMT

    [ https://issues.apache.org/jira/browse/KARAF-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12977524#action_12977524
] 

Guillaume Nodet commented on KARAF-132:
---------------------------------------

No, KARAF-348 is about the instance name.  This one is about the user name.
The default prompt is "karaf@root" where "karaf" is the user name and "root" is the instance
name.
The attached patch changes the user name from "karaf" to the system user name (your OS user
name).
Using this value is just as arbitrary as using karaf.

My idea was more to be able to change the default user name, but it is also slightly related
to KARAF-356, but more importantly to KARAF-32.
It would make sense to use the current system user name if we could reuse the running SSH
agent to do/forward the authentication.

> The user name for the main console session is always "karaf"
> ------------------------------------------------------------
>
>                 Key: KARAF-132
>                 URL: https://issues.apache.org/jira/browse/KARAF-132
>             Project: Karaf
>          Issue Type: Bug
>            Reporter: Guillaume Nodet
>         Attachments: patchfile.txt
>
>
> See org.apache.karaf.shell.console.jline.ConsoleFactory#start
> {code}
>             CommandSession session = console.getSession();
>             session.put("USER", "karaf");
>             session.put("APPLICATION", System.getProperty("karaf.name", "root"));
>             session.put("LINES", Integer.toString(terminal.getTerminalHeight()));
>             session.put("COLUMNS", Integer.toString(terminal.getTerminalWidth()));
>             session.put(".jline.terminal", terminal);
>             new Thread(console, "Karaf Shell Console Thread").start();
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message