mount usb: same username different uid: problem

Basil Chupin blchupin at iinet.net.au
Sat Jun 16 09:19:42 UTC 2012


On 16/06/12 00:00, Uwe Brauer wrote:
> Hello
>
>
> Under Ubuntu 12.04:
> On laptop 1, I am user oub (uid=1000) and in the sudo list.
> I connect an USB drive (jfs file system), its get automatically
> mounted with the correct uid.
> I copy files with rsync from laptop 1 to the USB.
>
> On laptop 2, I am user oub (uid=1002) and in the sudo list.
> Now when I connect the USB (jfs file system) its get automatically
> mounted however as uid=1000 which is another user.
>
> So I either have change manually each time the uid and group
> of the usb drive before copying.
>
> This is very annoying. Is there any easy solution?
>
>
> Thanks
>
> Uwe Brauer

You don't say which desktop environment you are using.

Nevertheless, I don't think that it is a matter of uid being 1000 or 
1002 but PERMISSIONS, and who owns the USB device.

Mount the device and in a terminal as root - oops, Ubuntu doesn't have 
'root' - that is, using "sudo" issue these 2 commands in sequence:

sudo chown -R oub.users /dev/<USB-device> [ENTER]

then

sudo chmod -R u=rwx,g=rwm o= /dev/<USB-device> [ENTER]

where "uob" is your (owner) name as you mention above, and <USB-device> 
is something like "sdc" or whatever.

BC

-- 
Using openSUSE 12.1 x86_64 KDE 4.8.3 and kernel 3.4.2 on a system with-
AMD FX 8-core 3.6/4.2GHz processor
16GB PC14900/1866MHz Quad Channel Corsair "Vengeance" RAM
Gigabyte AMD3+ m/board; Gigabyte nVidia GTX550Ti 1GB DDR5 GPU





More information about the ubuntu-users mailing list