automount thumb drive próprio por raiz

1

Eu sou capaz de automount meu pen drive no Ubuntu 12.04.4 Server como usuário comum (non-root). No entanto, após a montagem, o proprietário era root.

drwxr-xr-x 4 root root 2048 Jan  1  1970 PP

Como pode mudar a propriedade?

O arquivo automout auto.usb foi como abaixo.

#
# 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

Por favor ajude Obrigado

    
por user1121055 01.03.2014 / 09:09

1 resposta

1

Use opções adicionais de uid e / ou gid, modifique o número de acordo com o seu ID de usuário:

(..)
#removable  -fstype=ext2        :/dev/hddA
P -fstype=vfat :/dev/sdi1 uid=1000,gid=1000

Veja mais opções para o fstab aqui:

link

Veja mais opções de montagem automática aqui:

link

    
por ulcha 01.03.2014 / 10:33