You are not logged in.

#1 2009-11-11 07:12:25

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

[SOLVED] Permissions in Vifm

I have just started using Vifm: love the fact that it uses the Vim keybindings, integrates file management and editing in the console and is lightweight and fast -- however, whenever I mount a USB drive, I can't copy files to the drive, it throws a

cp: cannot create regular file 'somefilename' Permission denied

Short of launching it as root (which strikes me as a very bad idea) I am at a loss as to how to get this to work.

Anyome else experienced this -- and cracked it?

Last edited by jasonwryan (2009-11-12 00:28:13)


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#2 2009-11-11 09:19:51

Lich
Member
Registered: 2009-09-13
Posts: 437

Re: [SOLVED] Permissions in Vifm

Use this in your fstab to allow normal users to mount usb disks. This mounts /dev/sdb1 to /mnt/usb with the UID and GID of the user that's doing the mount

/dev/sdb1      /mnt/usb      auto    noauto,user,rw,exec 0 0

Archlinux | ratpoison + evilwm | urxvtc | tmux

Offline

#3 2009-11-11 21:43:11

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Permissions in Vifm

Thanks Lich - I tried the fstab entry but still get the same permissions error...

/dev/sdb      /mnt/usb      auto    rw,noauto,async,user 0 0

/edit

...and for the newbies (and the slow, like me) the key is to issue 'mount' as normal user...

Last edited by jasonwryan (2009-11-12 00:27:52)


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB