var/hda permissions

User avatar
panzer
Posts: 43
Joined: Wed Apr 09, 2014 5:17 pm

var/hda permissions

Postby panzer » Wed Apr 09, 2014 8:38 pm

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

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: var/hda permissions

Postby bigfoot65 » Thu Apr 10, 2014 3:42 am

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.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

User avatar
panzer
Posts: 43
Joined: Wed Apr 09, 2014 5:17 pm

Re: var/hda permissions

Postby panzer » Fri Apr 18, 2014 5:40 pm

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 :)

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: var/hda permissions

Postby bigfoot65 » Fri Apr 18, 2014 5:52 pm

Glad you got it sorted out.

[ Post made via Android ] Image
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 10 guests