Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A12C2D2B7 for ; Wed, 19 Dec 2012 06:11:20 +0000 (UTC) Received: (qmail 23141 invoked by uid 500); 19 Dec 2012 06:11:20 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 22955 invoked by uid 500); 19 Dec 2012 06:11:19 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 22824 invoked by uid 99); 19 Dec 2012 06:11:18 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Dec 2012 06:11:18 +0000 Date: Wed, 19 Dec 2012 06:11:18 +0000 (UTC) From: "Colin Patrick McCabe (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-9155) FsPermission should have different default value, 777 for directory and 666 for file MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-9155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13535697#comment-13535697 ] Colin Patrick McCabe commented on HADOOP-9155: ---------------------------------------------- I think you're right. The problem is that the default permission for {{FileSystem#create}} is the same default as for {{FileSystem#mkdirs}}, namely {{0777}}. It would make more sense for the default to be {{0666}} for files and {{0777}} for directories. I was confused by your earlier statement that "Currently umask works differently as linux convention"-- but as you later said, it's not umask that's working incorrectly here. I'm going to update the description and link this to HDFS-4319; feel free to change it later. > FsPermission should have different default value, 777 for directory and 666 for file > ------------------------------------------------------------------------------------ > > Key: HADOOP-9155 > URL: https://issues.apache.org/jira/browse/HADOOP-9155 > Project: Hadoop Common > Issue Type: Bug > Reporter: Binglin Chang > Priority: Minor > > Currently umask works differently as linux convention, which is: > The default umask 0002 is used for regular users. > The default umask for the root user is 0022. > For directories, the base permissions are 0777 and for files 0666. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira