Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

In fluxbox I manually mount my iPod, then run GtkPod as a normal user, unfortunately this doesn't give me write permissions as a normal user. (I can paste the error message in later when I am home if needs be, but it's a generic "Unable to write to /drive, permission denied") In GNOME however the iPod is automatically mounted and the normal user has write permissions.

Please can someone explain how GNOME is mounting it so that write permission is enabled for normal user?

share|improve this question
    
Have you tried running it with sudo just to see if it works? –  maxmackie Dec 8 '11 at 21:02
    
What is the command you use to mount? –  enzotib Dec 8 '11 at 21:46
    
@MaxMackie I do not wish to add myself to sudo'ers. However I did try as root, and as root GtkPod does not even recognize that there is an iPod device connected –  user13070 Dec 14 '11 at 14:57
    
@enzotib mount /dev/sdb2 /media/ipod –  user13070 Dec 14 '11 at 14:58

1 Answer 1

Examine the permissions of the drive after mounting it using ls -ld /drive (or better yet, stat /drive). When you mount as root, it's probably getting mounted with root ownership (maybe with reading privileges for other users). You might want to mount with -o uid=[[your UID]].

The way GNOME mounts is (nowadays) using gvfs-mount - this uses an assortment of Unix tricks to have everything work without using sudo, and - among other things - gives you write-permissions to the files. (This used to be done with gnome-mount or pmount, but it seems that gvfs-mount is the latest incarnation).

share|improve this answer
    
Thank you, I was unaware of the -o switch and hadn't thought that such a thing might exist, which seems very stupid now. This will no doubt be the solution to my problem, can't be sure though until I am home to test. Will update. –  user13070 Dec 14 '11 at 15:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.