Page 1 of 1

Letting Owncloud Access A USB

Posted: Thu Jul 09, 2015 9:09 am
by Thra3h
Hello,

I'm trying to setup owncloud 8 on my RPi2 and when I enter my local IP this is where I get - normal.
Image

I've mounted my USB to /media/owncloud and I can store files there, and then view them on my computer - so the USB is working.

I believe I have given owncloud the correct permissions to view and write to the USB drive:

Code: Select all

sudo chown -R www-data:www-data /media/owndrive
Then I configure the Storage And Database setting and set it to /media/owndrive, but when I click Finish Setup, it displays this:
Image

Any help would be appreciated greatly! I've probably done something simple that's causing the problem, so...

Thanks,

Stephen

Re: Letting Owncloud Access A USB

Posted: Sat Jul 11, 2015 9:43 pm
by Thra3h
Just noticed something...

I mentioned /media/owncloud but in the code I wrote:

Code: Select all

sudo chown -R www-data:www-data /media/owndrive
Will look into it some more today...

Re: Letting Owncloud Access A USB

Posted: Sat Jul 11, 2015 11:08 pm
by Thra3h
Still not working...

I'm probably missing something fairly simple. Help would be appreciated greatly!

Thra3h

Re: Letting Owncloud Access A USB

Posted: Sun Jul 12, 2015 10:48 am
by tpylkko
try mounting it somewhere where you are sure it has permissions to see whether that might be the reason?

Re: Letting Owncloud Access A USB

Posted: Sun Jul 12, 2015 4:40 pm
by DougieLawson
If your USB stick is formatted as FAT, vFAT, exFAT or NTFS then ALL security is done on the mount command. You can't use chown and chmod, it simply does not work.

Re: Letting Owncloud Access A USB

Posted: Sun Jul 19, 2015 9:43 am
by Thra3h
DougieLawson wrote:If your USB stick is formatted as FAT, vFAT, exFAT or NTFS then ALL security is done on the mount command. You can't use chown and chmod, it simply does not work.
That worked for me! Thanks so much! Ended up changing the auto-mount line to give permissions to 'www-data'. :D