From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SHKmC-000726-O9 for garchives@archives.gentoo.org; Mon, 09 Apr 2012 20:01:24 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 87795E0BA2; Mon, 9 Apr 2012 20:01:00 +0000 (UTC) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 8E033E0ADC for ; Mon, 9 Apr 2012 19:59:32 +0000 (UTC) Received: by wibhr17 with SMTP id hr17so2419373wib.10 for ; Mon, 09 Apr 2012 12:59:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=kq7LhsbN4r5tsG3ihoq37lQ1OnO+AMfzP34MHZryExk=; b=IuczPx3X5BhSnnLIhOl70Ilvcyk8Cx+WC3AGZhtIIK2eFNGulDHUuT5p2uPgzDWAyh dCMqDWG8vsKBF7F9hGei3PCQI3TlD/EsiT2fOAFp6ucpw6Ge5Hg3Cw63fzpeyQZ38+bo 7kOuryvTvkJOAV+4yn3u6ScPgahyTi9OWBQZ3ZbQ/TC/3nGmKMoEYHVbk1EsJIGbILxa c/wUk0tuAMwdL6FcGogHgzj49hHTrjYr+YkbEUMANFBySc2V37Jh5vwUXkyvSQW7E/XY GXjYZ07arLJqxthP4+tZItkeLzCvOpXprSWZMaalff8PKNzOzIfEx8YoIRVQAEONo1Ez MsaA== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.180.102.3 with SMTP id fk3mr665295wib.9.1334001571666; Mon, 09 Apr 2012 12:59:31 -0700 (PDT) Received: by 10.223.8.68 with HTTP; Mon, 9 Apr 2012 12:59:31 -0700 (PDT) Date: Mon, 9 Apr 2012 12:59:31 -0700 Message-ID: Subject: [gentoo-user] User can mount/umount but not write to top the new drive From: Mark Knecht To: Gentoo User Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: 74ff8ff5-ea28-4e61-88b2-8ec238ab46e9 X-Archives-Hash: 8305542a3ff9a59d3a0911f0083ec7af Hi, This has long been a sort of hack area of me in terms of sys admin at home - giving a user account access to the top of a new external drive. I'd like to learn to do this right. Maybe someone can set me straight about what root needs to do to make this work. OK, so as root I partition & format the USB drive to get it ready, and then I modify fstab with the following addition: c2stable ~ # cat /etc/fstab | grep VideoLib LABEL=VideoLib /mnt/VideoLib ext3 auto,rw,users 0 0 c2stable ~ # Having done that, as well as making the /mnt/VideoLib mount point, my user account can now mount & umount the drive: mark@c2stable ~ $ mount /mnt/VideoLib/ mark@c2stable ~ $ df -h | grep VideoLib /dev/sdf1 458G 199M 435G 1% /mnt/VideoLib mark@c2stable ~ $ umount /mnt/VideoLib/ mark@c2stable ~ $ df -h | grep VideoLib mark@c2stable ~ $ The problem is that at this point my user account cannot create a new directory on that drive: mark@c2stable ~ $ mount /mnt/VideoLib/ mark@c2stable ~ $ df -h | grep VideoLib /dev/sdf1 458G 199M 435G 1% /mnt/VideoLib mark@c2stable ~ $ mkdir /mnt/VideoLib/Video mkdir: cannot create directory `/mnt/VideoLib/Video': Permission denied mark@c2stable ~ $ In the past I've gotten around this by having root mount the drive and then change ownership to mark:users once it's mounted. Linux remembers I've done that once and no longer requires me to do anything else as root. Is that truly required or is there a way to give the user access to the top of the new mount point without roots' involvement? Thanks, Mark