Return-Path: Delivered-To: apmail-hadoop-core-user-archive@www.apache.org Received: (qmail 70676 invoked from network); 12 Jun 2008 04:16:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jun 2008 04:16:25 -0000 Received: (qmail 14093 invoked by uid 500); 12 Jun 2008 04:16:25 -0000 Delivered-To: apmail-hadoop-core-user-archive@hadoop.apache.org Received: (qmail 14059 invoked by uid 500); 12 Jun 2008 04:16:25 -0000 Mailing-List: contact core-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-user@hadoop.apache.org Delivered-To: mailing list core-user@hadoop.apache.org Received: (qmail 14045 invoked by uid 99); 12 Jun 2008 04:16:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jun 2008 21:16:25 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cutting@gmail.com designates 209.85.200.171 as permitted sender) Received: from [209.85.200.171] (HELO wf-out-1314.google.com) (209.85.200.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jun 2008 04:15:34 +0000 Received: by wf-out-1314.google.com with SMTP id 24so3582110wfg.2 for ; Wed, 11 Jun 2008 21:15:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding:sender; bh=1zNNmwdB6nU7bT1empzQccwHYRMPIabT8/9O7+M+k5g=; b=wVt5aI9tORcXsRv/qpnvnB9F54pe+MUmDRTbc0tm5DgCzXvx9R7P+MsqyAArtXf5Ko Vzf7BLfsqNyQSShBbZln/QOY8rSx95hRqs+6+t3judg8hEaVmR9YJad7nDy7NfSNa9pn QTJ8I4JMOv3hKpQ7j0CIyPBo0CnMEiSR+fJHY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding:sender; b=fTE7fcIQFveFhmzzcwssLAKFGzmRDohGjEXdmmeAvBQ2/qoLqCCBrtzj2IYXOoOifo ZOwziPdws1OG5nyQZLkwKjctTLdqDDQxQt3TIqP6dpQWZ1QqZ8/u2e/Qw2cyLMDlmIb1 FrQLt6eMPrBoj54+lt4iQJmKP7wibQ+EvtEdI= Received: by 10.142.157.15 with SMTP id f15mr281249wfe.96.1213244151313; Wed, 11 Jun 2008 21:15:51 -0700 (PDT) Received: from ?192.168.168.105? ( [76.103.181.218]) by mx.google.com with ESMTPS id 24sm1332741wfc.3.2008.06.11.21.15.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 11 Jun 2008 21:15:50 -0700 (PDT) Message-ID: <4850A2F5.6090708@apache.org> Date: Wed, 11 Jun 2008 21:15:49 -0700 From: Doug Cutting User-Agent: Thunderbird 2.0.0.14 (X11/20080505) MIME-Version: 1.0 To: core-user@hadoop.apache.org Subject: Re: client connect as different username? References: <6F65E0C1-6162-4E6B-9595-33F9024C4EF7@scoutlabs.com> In-Reply-To: <6F65E0C1-6162-4E6B-9595-33F9024C4EF7@scoutlabs.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: Doug Cutting X-Virus-Checked: Checked by ClamAV on apache.org Chris Collins wrote: > You are referring to creating a directory in hdfs? Because if I am user > chris and the hdfs only has user foo, then I cant create a directory > because I dont have perms, infact I cant even connect. Today, users and groups are declared by the client. The namenode only records and checks against user and group names provided by the client. So if someone named "foo" writes a file, then that file is owned by someone named "foo" and anyone named "foo" is the owner of that file. No "foo" account need exist on the namenode. The one (important) exception is the "superuser". Whatever user name starts the namenode is the superuser for that filesystem. And if "/" is not world writable, a new filesystem will not contain a home directory (or anywhere else) writable by other users. So, in a multiuser Hadoop installation, the superuser needs to create home directories and project directories for other users and set their protections accordingly before other users can do anything. Perhaps this is what you've run into? Doug