Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.3.0, 3.0.0-alpha1
-
None
-
None
Description
The chown and chgrp shell commands enforce a valid set of characters for user names and group names. The validation rules for user names and group names vary across different OSes, so this is a portability problem and a maintenance burden. It requires us to change the code every time we discover a difference in the rules. I propose that we remove this validation logic and instead pass through input user names and group names to the OS. We can handle error reporting by catching errors returned from the OS.
Attachments
Issue Links
- relates to
-
HADOOP-9851 dfs -chown does not like "+" plus sign in user name
- Resolved
-
HADOOP-9768 chown and chgrp reject users and groups with spaces on platforms where spaces are otherwise acceptable
- Closed