hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wei-Chiu Chuang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-14075) chown doesn't work with usernames containing '\' character
Date Mon, 13 Feb 2017 21:38:41 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-14075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15864493#comment-15864493
] 

Wei-Chiu Chuang commented on HADOOP-14075:
------------------------------------------

While this patch itself looks good, I have been thinking if there are better way to address
this issue.

The way I look at the issue of allowed character set in user name, is that there is no single
enforcement rule applied to all interfaces. For example, SETOWNER operation in WebHDFS/Httpfs
has different rule than the command line chown. I am sure chown via fuse-dfs has another set
of allowed characters too.

> chown doesn't work with usernames containing '\' character
> ----------------------------------------------------------
>
>                 Key: HADOOP-14075
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14075
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 2.6.0
>            Reporter: Attila Bukor
>            Assignee: Attila Bukor
>         Attachments: HADOOP-14075.001.patch, HADOOP-14075.002.patch
>
>
> Usernames containing backslash (e.g. down-level logon names) seem to work fine with Hadoop,
except for chown.
> {code}
> $ HADOOP_USER_NAME="FOOBAR\\testuser" hdfs dfs -mkdir /test/testfile1
> $ hdfs dfs -ls /test
> Found 1 items
> drwxrwxr-x   - FOOBAR\testuser supergroup          0 2017-02-10 12:49 /test/testfile1
> $ HADOOP_USER_NAME="testuser" hdfs dfs -mkdir /test/testfile2
> $ HADOOP_USER_NAME="hdfs" hdfs dfs -chown "FOOBAR\\testuser" /test/testfile2
> -chown: 'FOOBAR\testuser' does not match expected pattern for [owner][:group].
> Usage: hadoop fs [generic options] -chown [-R] [OWNER][:[GROUP]] PATH...
> $
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message