Re: how to mount a external harddrive without root priviledge?



On Nov 29, 1:30 pm, Dances With Crows
<danSPANceswithTRAPcr...@xxxxxxxxx> wrote:
zhengquan staggered into the Black Sun and said:

I can sudo mount /dev/sdb1 /media/usb, but without sudo, [can I do]
that?

Sure. "man fstab" and look for the "user" keyword. Like so:

/dev/sdb1 /mnt/flash2 vfat noauto,user,umask=000 0 0

Is there any way to just [mount] /dev/sdb1 [on] /media/usb and
transfer files [as an] ordinary user?

Yes. See above.

--
There was also a recipe for pina colada, in Portuguese, which the
Google translator told me needed "hand grenades". Someone had put in
a colloquial translation of 'pineapple'... --Chris Croughton
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see

that works, thanks,
I added
# allow user to
mount
/dev/sdb1 /media/usb auto user,noauto 0 0
to /etc/fstab
and after reboot, I can use "mount /dev/sdb1" to mount that.

.



Relevant Pages