PDA

View Full Version : ubuntu permissions with external usb drive



kenbaldwin
2007-07-25, 13:29
I'm trying to setup SlimServer on Ubuntu 7.04, but I can't get the server to read my music directory, which is located on an external USB drive.

After installing using apt-get, SlimServer seems to run as user "slimserver", but no group:

$ id slimserver
uid=113(slimserver) gid=65534(nogroup) groups=65534(nogroup)

$ ps -e | grep slimserver
17149 ? 00:00:00 slimserver_safe
17151 ? 00:00:13 slimserver

$ ps -p 17151 -o pid,egroup,rgroup,sgroup,fgroup,command
PID EGROUP RGROUP SGROUP FGROUP COMMAND
17151 nogroup nogroup nogroup nogroup /usr/bin/perl -w /usr/sbin/slimserver

My music drive automounts as /media/data2. The filesystem is ext3. Everything is owned by user "ken", group "ken, and is world readable: -rwxrwxr--

So why can't SlimServer find it?

New value for Music Folder rejected:
Oops - "/media/data2/music/library/" doesn't seem to be a valid directory. Try again.

Thanks
Ken

myrrh
2007-07-26, 01:18
are you sure the mount point itself is readable by all?

i.e. what does

ls -ld /media/data2

show? Maybe try

chmod a+rx /media/data2

Craig

egd
2007-07-26, 02:46
Assuming your FAT32 USB HDD shows up as /dev/sdd1 and you want to mount it as /media/sdd1, the following fstab entry will mount the drive with read/write permission on insertion:

/dev/sdd1 /media/sdd1 vfat rw,user,iocharset=utf8,umask=000 0 0

daveaphillips
2007-07-30, 14:33
Hi there,

http://wiki.slimdevices.com/index.cgi?MusicOnLinuxUSBHardDrives

Might be worth checking this out, it got me up and running!

Dave

snarlydwarf
2007-07-30, 14:41
My music drive automounts as /media/data2. The filesystem is ext3. Everything is owned by user "ken", group "ken, and is world readable: -rwxrwxr--

Directories should be rwxrwxr-x: the execute permission on directories in Unix systems means "you can search this", ie you can stat() files in the directory which is needed if you want to open them.