Page 1 of 1

var/hda permissions

Posted: Wed Apr 09, 2014 8:38 pm
by panzer
Hi

The " var/hda" folder has changed ownership to "www-data" in the " apache" group.

This is preventing my apps creating files and folders in the HDA folder.

I have tried to chmod the folder "var/hda/files" to " myusername:users" and that works for a moment only to be reverted back to " www-data" and " apache" .

So my question is

*why has this happened ?
*how can i changed the owner and group and keep it that way without reverting?

Your help is greatly appreciated on this matter!
Thank you

Re: var/hda permissions

Posted: Thu Apr 10, 2014 3:42 am
by bigfoot65
Not sure what you have going on, but the permissions should be as follows:

/var/hda/: www-data:users

/var/hda/web-apps/: www-data:users

/var/hda/files/: myusername:users

Best way to execute the command is:

Code: Select all

sudo chown -R www-data:users /var/hda sudo chown -R myusername:users /var/hda/files/*
If this does now help, please let us know.

The only way file permissions get changed this drastically is by the user. Not sure why you thought they were wrong, but changing them as you have has made things worse.

Re: var/hda permissions

Posted: Fri Apr 18, 2014 5:40 pm
by panzer
Not sure what you have going on, but the permissions should be as follows:

/var/hda/: www-data:users

/var/hda/web-apps/: www-data:users

/var/hda/files/: myusername:users

Best way to execute the command is:

Code: Select all

sudo chown -R www-data:users /var/hda sudo chown -R myusername:users /var/hda/files/*
If this does now help, please let us know.

The only way file permissions get changed this drastically is by the user. Not sure why you thought they were wrong, but changing them as you have has made things worse.

Hi

I found out after 3 hours of investigation that the issue was caused by a failed update of HDA using " sudo apt-get update" the issue was HDA was trying to write to the directory without permissions to change certain folders within the " files" directory.

The file permissions located in the directory are mounted folders from a separate drive by fstab with separate permissions assigned.

The solution was to un-mount the drive with the " restricted permissions", then run the update so the install completes successfully.
Remount the drive OR reboot.

So far everything seems to be working as it should :)

Re: var/hda permissions

Posted: Fri Apr 18, 2014 5:52 pm
by bigfoot65
Glad you got it sorted out.

[ Post made via Android ] Image