automount thumb drive由root拥有

我可以在Ubuntu 12.04.4服务器上以普通用户(非root用户)自动挂载我的拇指驱动器。 然而,在安装后所有者是root。

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

如何改变所有权?

automout文件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和/或gid选项,根据您的用户ID修改数字:

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

在这里查看fstab的更多选项:

https://help.ubuntu.com/community/Fstab

在此处查看更多automount选项:

http://linuxconfig.org/automatically-mount-usb-external-drive-with-autofs