changing permission of folder in usb

Posted by vrdvaibhav 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
changing permission of folder in usb
May 29, 2015 02:57PM
I am trying to install owncloud on USB
I moved the installation on /mnt/usb/PirateBox/ and tried to install it,
but it gives error as
Language: PHP
Data directory (/mnt/usb/PirateBox/owncloud/data) is readable for other users Please change the permissions to 0770 so that the directory cannot be listed by other users.

it require changing permission to 770 but its not working in openwrt,

there is no permission to change the directory permission, I searched for the issue and ca,e to know that external drive is needed to be mounted with option
Language: PHP
-o permission

but there is no option in mount command like permission,
how to do that ?
rid
Re: changing permission of folder in usb
May 31, 2015 12:53PM
Hi,

did you try this command?
sudo chmod -R /mnt/usb/PirateBox/owncloud/data
Re: changing permission of folder in usb
June 01, 2015 06:12AM
I used this but there is no change in permissions,

root@piratebox:~# chmod -R 770 /mnt/usb/PirateBox/owncloud/data

drwxrwxrwx    2 0        0            16384 May 29  2015 data



Edited 1 time(s). Last edit at 06/01/2015 06:12AM by vrdvaibhav.
rid
Re: changing permission of folder in usb
June 01, 2015 05:50PM
Hi, Matthias thinks you should change /etc/fstab, and modify /dev/sda1 mount options with:
uid=nobody,gid=nogroup,umask=007,dir_mode=0770,file_mode=0770

For more informations:
[linux.die.net]
[serverfault.com]