From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1E3cII-0004sN-Or for garchives@archives.gentoo.org; Fri, 12 Aug 2005 16:22:07 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j7CGJTAZ024093; Fri, 12 Aug 2005 16:19:29 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j7CGB7Ks017249 for ; Fri, 12 Aug 2005 16:11:08 GMT Received: from smtp2.iway.na ([196.44.136.4]) by smtp.gentoo.org with esmtp (Exim 4.43) id 1E3c8e-0002iL-Iw for gentoo-user@lists.gentoo.org; Fri, 12 Aug 2005 16:12:09 +0000 Received: from vscan.iway.na ([196.44.136.13]) by smtp2.iway.na (Netscape Messaging Server 4.15) with ESMTP id IL4D2Q01.T04 for ; Fri, 12 Aug 2005 17:11:14 +0000 Received: from mx2.iway.na ([196.44.136.13]) by vscan.iway.na (Netscape Messaging Server 4.15) with ESMTP id IL4AC500.U0Y for ; Fri, 12 Aug 2005 17:12:05 +0100 Received: from uwix.alt.na ([196.44.130.150]) by mx2.iway.na (Netscape Messaging Server 4.15) with ESMTP id IL4AC601.Z06 for ; Fri, 12 Aug 2005 17:12:06 +0100 Received: from uwe by uwix.alt.na with local (Exim 4.50) id 1E3c4C-0004Mw-ND for gentoo-user@gentoo.org; Fri, 12 Aug 2005 17:07:32 +0100 From: Uwe Thiem Organization: SysEx (Pty) Ltd. To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] how to access mounted dir with non-root? Date: Fri, 12 Aug 2005 17:07:32 +0100 User-Agent: KMail/1.8.1 References: <20050812153345.GA7635@daniel> In-Reply-To: <20050812153345.GA7635@daniel> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200508121707.32357.uwix@iway.na> Sender: Uwe Thiem X-Archives-Salt: ab3c0dd2-f2da-4ca4-a1a2-9d8b0f1fe77f X-Archives-Hash: 3814ffe68ab8d236f99a69685204449d On 12 August 2005 16:33, danielhf@21cn.com wrote: > i've found that i could not access the mounted > directory with non-root users. > 1. i "chown" directories under "/mnt" to the user, > but so long as i mount, the permission of the > specific dir will be changed to "drwx------" and > owner changed to root automatically. > 2. i try to use a mount option "users", > $> mount /dev/hda6 /mnt/win -o rw,users > no luck somehow as well. > 3. i would not use "sudo" to do this, i believe there is > a way to solve the problem. and not sure "sudo" will work. What filesystem is on hda6? Does it know anything about ownership and permissions? If not (like FAT) you need something like "mount -o uid=youruser,gid=users,umask=0777" Uwe -- 95% of all programmers rate themselves among the top 5% of all software developers. - Linus Torvalds http://www.uwix.iway.na (last updated: 20.06.2004) -- gentoo-user@gentoo.org mailing list