Thra3h
Posts: 4
Joined: Thu Jul 09, 2015 8:13 am

Letting Owncloud Access A USB

Thu Jul 09, 2015 9:09 am

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

Thra3h
Posts: 4
Joined: Thu Jul 09, 2015 8:13 am

Re: Letting Owncloud Access A USB

Sat Jul 11, 2015 9:43 pm

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...

Thra3h
Posts: 4
Joined: Thu Jul 09, 2015 8:13 am

Re: Letting Owncloud Access A USB

Sat Jul 11, 2015 11:08 pm

Still not working...

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

Thra3h

tpylkko
Posts: 409
Joined: Tue Oct 14, 2014 5:21 pm

Re: Letting Owncloud Access A USB

Sun Jul 12, 2015 10:48 am

try mounting it somewhere where you are sure it has permissions to see whether that might be the reason?

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Letting Owncloud Access A USB

Sun Jul 12, 2015 4:40 pm

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.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Thra3h
Posts: 4
Joined: Thu Jul 09, 2015 8:13 am

Re: Letting Owncloud Access A USB

Sun Jul 19, 2015 9:43 am

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

Return to “Raspberry Pi OS”