[ https://issues.apache.org/jira/browse/HADOOP-2336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12550731 ]
Raghu Angadi commented on HADOOP-2336: -------------------------------------- Proposed help for these commands (pretty much serves as specification) : *chmod* {noformat} $ bin/hadoop fs -help chmod -chmod [-R] <MODE[,MODE]... | OCTALMODE> PATH... Changes permissions of a file. This works similar to shell's chmod with a few exceptions. -R modifies the files recursively. This is the only option currently supported. MODE Mode is same as mode used for chmod shell command. Only letters recognized are 'rwx'. E.g.: a+r,g-w,+rwx,o=r OCTALMODE Mode specifed in 3 digits. Unlike shell command, this requires all three digits. E.g.: 754 is same as u=rwx,g=rw,o=r {noformat} *chown* {noformat} $ bin/hadoop fs -help chown -chown [-R] [OWNER][:[GROUP]] PATH... Changes owner and group of a file. This is similar to shell's chown with a few exceptions. -R modifies the files recursively. This is the only option currently supported. If only owner or group is specified then only owner or group is modified. The owner and group names can only contain digits and alphabet. These names are case sensitive. {noformat} *chgrp* {noformat} bin/hadoop fs -help chgrp -chown [-R] GROUP PATH... This is equivalent to -chown ... :GROUP ... {noformat} > Shell commands to access and modify file permissions > ---------------------------------------------------- > > Key: HADOOP-2336 > URL: https://issues.apache.org/jira/browse/HADOOP-2336 > Project: Hadoop > Issue Type: New Feature > Components: fs > Reporter: Raghu Angadi > Assignee: Raghu Angadi > Fix For: 0.16.0 > > > Hadoop 0.16 includes file permissions in DFS and we need FsShell to support > common file permissions related commands : > - chown > - chgrp > - chmod > Also output from some of the commands like {{ls -l}} will change to reflect > new file properties. Aim is to make the above commands look like its > Unix/Linux couterparts. They will of course support only the subset of the > options. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.