[
https://issues.apache.org/jira/browse/HADOOP-3098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582663#action_12582663
]
Allen Wittenauer commented on HADOOP-3098:
------------------------------------------
If we're going to fix this, why don't we just go ahead and do / and @ for
Kerberos now rather than require another patch later?
As to i18n, AFAIK, POSIX doesn't dictate what characters are allowed in the
pw_name field of the passwd struct. Depending upon the age of the source, it
may or may not be limited to 8 chars.
A brief search that no one other than Sun in recent releases of Solaris seem to
document just what the allowed characters are on the passwd username field,
despite the fact that pwck is in quite a few OSes, mainly SysV variants. The
vast majority list just restrictions. (first char needs to be a letter, don't
use : are the two most common).
This likely means that the above range will break for i18n. It may be
worthwhile to peruse some login code (login itself, ssh, rsh, telnet, etc,) to
see how they handle it.
That said, the above range should be 'good enough' to cover a very large
percentage of the cases.
> dfs -chown does not like "_" underscore in user name
> ----------------------------------------------------
>
> Key: HADOOP-3098
> URL: https://issues.apache.org/jira/browse/HADOOP-3098
> Project: Hadoop Core
> Issue Type: Bug
> Components: fs
> Affects Versions: 0.16.0, 0.16.1
> Reporter: Koji Noguchi
> Assignee: Raghu Angadi
> Priority: Blocker
> Fix For: 0.16.2
>
> Attachments: HADOOP-3098.patch
>
>
> :~$ hadoop dfs -chown aaa_bbb /user/knoguchi/test.txt
> chown: 'aaa_bbb' does not match expected pattern for [owner][:group].
> in 0.16.1, only alphabets and numbers are allowed. Shouldn't '_' be allowed?
> I couldn't find any standard, but in Solaris10, it's defined as
> http://docs.sun.com/app/docs/doc/816-5174/6mbb98uhg?a=view
> bq. The login (login) and role (role) fields accept a string of no more than
> eight bytes consisting of characters from the set of alphabetic characters,
> numeric characters, period (.), underscore (_), and hyphen (-). The first
> character should be alphabetic and the field should contain at least one
> lower case alphabetic character. A warning message is displayed if these
> restrictions are not met.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.