Date: Thu, 09 Feb 2006 19:46:25 +0100 From: martinko <martinkov@pobox.sk> To: freebsd-stable@freebsd.org Subject: Re: Trouble with mounting USB stick as user Message-ID: <dsg2m1$ct5$1@sea.gmane.org> In-Reply-To: <200602082003.k18K3ZQJ077077@lurza.secnetix.de> References: <dsdfe8$1sd$1@sea.gmane.org> <200602082003.k18K3ZQJ077077@lurza.secnetix.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Oliver Fromme wrote: > martinko <martinkov@pobox.sk> wrote: > > Oliver Fromme wrote: > > > martinko wrote: > > > > Oliver Fromme wrote: > > > > > To enable user mounts, there are three conditions: > > > > > 1. sysctl vfs.usermount=1 > > > > > 2. The user must have read+write permission on the device > > > > > which is to be mounted. This is usually accomplished > > > > > by creating a special group for this device. > > > > > 3. The user must _own_ the mountpoint (r/w permission is > > > > > not sufficient). > > > > > > > > [...] > > > > $ ll /dev/ad0 > > > > crw-r----- 1 root operator 0, 96 Feb 8 18:27 /dev/ad0 > > > > > > Condition #2 isn't met: The device must be "rw" for for > > > the user (in this case for the operator group). Note > > > that "r" is not sufficient, even for read-only mounts. > > > > sure. but why did it mount /usr/home/mato/mnt/dos then ?? > > Maybe /dev/ad0s1 had different permissions? > > Best regards > Oliver > oliver, i don't know how or why but it works here even w/o "w"-permission for the user (group) : [mb-aw1n-bsd][mato][~] $ id uid=1001(mato) gid=1001(mato) groups=1001(mato), 0(wheel), 5(operator) [mb-aw1n-bsd][mato][~] $ ll /dev/ad0* crw-r----- 1 root operator 0, 96 Feb 9 19:32 /dev/ad0 crw-r----- 1 root operator 0, 97 Feb 9 19:32 /dev/ad0s1 crw-r----- 1 root operator 0, 98 Feb 9 19:32 /dev/ad0s2 crw-r----- 1 root operator 0, 99 Feb 9 19:32 /dev/ad0s3 crw-r----- 1 root operator 0, 101 Feb 9 20:32 /dev/ad0s3a crw-r----- 1 root operator 0, 102 Feb 9 20:32 /dev/ad0s3b crw-r----- 1 root operator 0, 103 Feb 9 19:32 /dev/ad0s3c crw-r----- 1 root operator 0, 104 Feb 9 20:32 /dev/ad0s3d crw-r----- 1 root operator 0, 105 Feb 9 20:32 /dev/ad0s3e crw-r----- 1 root operator 0, 106 Feb 9 20:32 /dev/ad0s3f crw-r----- 1 root operator 0, 100 Feb 9 19:32 /dev/ad0s4 crw-r----- 1 root operator 0, 107 Feb 9 19:32 /dev/ad0s5 crw-r----- 1 root operator 0, 108 Feb 9 19:32 /dev/ad0s6 crw-r----- 1 root operator 0, 109 Feb 9 19:32 /dev/ad0s7 crw-r----- 1 root operator 0, 110 Feb 9 19:32 /dev/ad0s8 [mb-aw1n-bsd][mato][~] $ mount /usr/home/mato/mnt/win/ [mb-aw1n-bsd][mato][~] $ mount /usr/home/mato/mnt/lin/ [mb-aw1n-bsd][mato][~] $ mount /usr/home/mato/mnt/fat/ mount_msdosfs: msdosfs_iconv: Operation not permitted [mb-aw1n-bsd][mato][~] $ mount /usr/home/mato/mnt/dos/ [mb-aw1n-bsd][mato][~] $ ll mnt/ total 40 drwxr-x--- 2 mato mato 512 Dec 11 20:44 cdrom drwxr-x--- 1 mato mato 16384 Jan 1 1980 dos drwxr-x--- 2 mato mato 512 Dec 11 20:44 fat drwxr-xr-x 19 root wheel 4096 Feb 4 21:32 lin drwxr-x--- 1 mato mato 0 Apr 22 2009 win [mb-aw1n-bsd][mato][~] $ pls note that the one that failed also fails with "w" set, as shown in other thread. (?) m.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?dsg2m1$ct5$1>