You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2007/09/26 20:23:50 UTC
[jira] Commented: (SOLR-365) improper handling of user login
greater than 8 characters
[ https://issues.apache.org/jira/browse/SOLR-365?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12530510 ]
Hoss Man commented on SOLR-365:
-------------------------------
This is ... odd. Solr isn't making any assumptions about the length of the user name.
Paul: what does the output of "who | grep psund " on your system print?
> improper handling of user login greater than 8 characters
> ---------------------------------------------------------
>
> Key: SOLR-365
> URL: https://issues.apache.org/jira/browse/SOLR-365
> Project: Solr
> Issue Type: Bug
> Components: replication
> Environment: linux and probably other unix operating systems
> Reporter: Paul Sundling
> Priority: Minor
>
> to reproduce, create a user account that is more than 8 characters long. Then try to do a command like snappuller and even though the config is setup properly, it attempts to do a sudo. The reason is that 2 different methods are used to calculate the user, one of which truncates accounts to 8 characters.
> While user logins used to be limited to 8 characters, this may not be the case on modern UNIX.
> Here is a snippet I get by adding the -x debug flag to bash. Note how oldwhoami is a truncated version (psundlin) of the full login (psundling).
> + fixUser
> + [[ -z psundling ]]
> ++ whoami
> + [[ psundling != psundling ]]
> ++ who -m
> ++ cut '-d ' -f1
> ++ sed '-es/^.*!//'
> + oldwhoami=psundlin
> + [[ psundlin == '' ]]
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.