I'm trying to give rwx permissions to www-data in /media/bblab/Database/data to install OwnCloud.
bblab is my user name and Database is my disk label. The step I mount the drive is:
login as bblab (the user created when I installed Ubuntu)
open disk application and find an empty drive /dev/dm-2 (hard drive 2T*2 installed on motherboard with hardware RAID 1 (Gigabyte X79-UP4))
create a new partition on drive /dev/dm-2 and the partition is named /dev/dm-3
mount the partition /dev/dm-3 at /media/bblab
use terminal to change the permission of the media to 750
add group www-data to /media/bblab/Database
sudo chown -R www-data:www-data /media/bblab/Database/data
and now when use command ls -al /mdeia/bblab/Database
, the result is
drwxr-x--- bblab www-data .
drwxr-x--- root root ..
drwxrwx--- www-data www-data data
drwx------ root root lost+found
But OwnCloud still gives the following messages:
Can't create data directory (/media/bblab/Database/data/data)
This can usually be fixed by giving the webserver write access to the root directory.
Is there any step I'm doing wrong or have forgotten to do? Thanks!