Mounting question

Geoff Shang geoff at QuiteLikely.com
Fri Apr 15 09:54:14 UTC 2011


On Thu, 14 Apr 2011, Tom Masterson wrote:

> I have a mount problem.  I have several usb sticks and a usb external hard 
> drive and am using Ubuntu 10.10 Maverick.  When I mount any of them using 
> either mount or pmount or allowing them to automount I can't copy anything to 
> them from the console except as root (sudo to be exact).  Also things like 
> vmware or virtualbox do not have access to them.  The command I use is:
>
> sudo mount -t <type> -o rw,umask=000 <device> <dir>

You can specify the user and group that all files should have by using the 
uid and gid values to mount like so:

sudo mount -t <type> -o rw,umask=000,uid=<value>,gid=<value> <device> <dir>

The man page doesn't say, but I'd expect the required value to be a 
number, not a username.

Geoff.




More information about the Blinux-list mailing list