Я могу автоматически смонтировать мой флэш-накопитель на сервере Ubuntu 12.04.4 как обычный пользователь (без полномочий root). Однако после монтирования владельцем был root.
drwxr-xr-x 4 root root 2048 Jan 1 1970 PP
Как изменить владельца?
Файл autoout auto.usb был таким, как показано ниже.
#
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage
#cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom
# the following entries are samples to pique your imagination
#linux -ro,soft,intr ftp.example.org:/pub/linux
#boot -fstype=ext2 :/dev/hda1
#floppy -fstype=auto :/dev/fd0
#floppy -fstype=ext2 :/dev/fd0
#e2floppy -fstype=ext2 :/dev/fd0
#jaz -fstype=ext2 :/dev/sdc1
#removable -fstype=ext2 :/dev/hddA
P -fstype=vfat :/dev/sdi1
Пожалуйста, помогите Спасибо
Используйте дополнительный uid и/или опции ценуроза, измените число согласно Вашему идентификатору пользователя:
(..)
#removable -fstype=ext2 :/dev/hddA
P -fstype=vfat :/dev/sdi1 uid=1000,gid=1000
Посмотрите больше опций для fstab здесь:
https://, который help.ubuntu.com/community/Fstab
Видит больше, автомонтируют опции здесь:
http://linuxconfig.org/automatically-mount-usb-external-drive-with-autofs