[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Ownership of pluggable devices.



On 9/6/13, peasthope@shaw.ca <peasthope@shaw.ca> wrote:
> Given two USB pluggable devices, a Sony Mylo,
> http://en.wikipedia.org/wiki/Mylo_(Sony) ,
> and a Kingston flash store.
>
> # These lines for udev.
>
> root@dalton:/home/peter# tail -n 8 /etc/udev/rules.d/10-local.rules
> # Persistent device names.
> # The Sony mylo.
> KERNEL=="sd?1", ATTR{size}=="1752512", SYMLINK+="mylo", \
>  OWNER="peter", GROUP="floppy"
> # The KingstonUSB.
> KERNEL=="sd?1", ATTR{size}=="499712", SYMLINK+="KingstonUSB", \
>  OWNER="peter", GROUP="users"
>
> # And for mount.
>
> root@dalton:/home/peter# tail -n 3 /etc/fstab
> /dev/KingstonUSB  /home/peter/MY   ext2  defaults,noauto,user  0       0
> /dev/mylo        /home/peter/mylo  vfat  defaults,noauto,user  0       0

When plugging in a device, it is perhaps root that does the mount.

May be you want to use filesystem options "users" instead of option "user"?

Alternatively, for the vfat filesystem, perhaps add mount option
uid=1000 (check your uid to make sure, first user account is normally
1000 on Debian).

Good luck
Zenaan


Reply to: