Permissions for /var/hda/files

richgrech
Posts: 48
Joined: Sun Jan 09, 2011 6:11 am

Re: Permissions for /var/hda/files

Postby richgrech » Sun Sep 30, 2012 7:30 am

I'm having an issue where every new file I transfer via samba (using windows snyc toy) are root:root. So in order for them to be picked up by minidlna i have to ssh in and chown stuff.

Permissions are totally fine, it's just an ownership issue for me.

apastor
Posts: 175
Joined: Fri Jan 14, 2011 6:58 am

Re: Permissions for /var/hda/files

Postby apastor » Sun Sep 30, 2012 7:45 am

You are having the same issue I am, but mine is happening with SabNZB/Sickbeard

I have not tried to copy files over samba yet. I will try that later tonight and see what happens
Proxmox Server: Currently Not Running Amahi
CPU: AMD FX 6100 Six Core
RAM: 8GB DDR3
HDD: 4x1TB RAID10 (Adaptec)

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

Re: Permissions for /var/hda/files

Postby bigfoot65 » Sun Sep 30, 2012 7:47 am

May be a bug. I am not having that issue so far.
ßîgƒσστ65
Applications Manager

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

robjective
Posts: 9
Joined: Sun Sep 19, 2010 1:44 pm

Re: Permissions for /var/hda/files

Postby robjective » Sun Oct 28, 2012 7:18 pm

I will add it to the wikki. I've also amended it so it is faster by testing the file perms and only changing those files that need changing.

As for the why 666 as there are no files that require the execute perms in the files/hda directory I just don't bother to set it.

666 -rw-rw-rw- 1 jiml jiml 0 Sep 12 17:59 test # File are rw for everbody and not set as executable

775 -rwxrwxr-x 1 jiml jiml 0 Sep 12 17:59 test # Files are rw only for user and group, ro for everybody else. Set as executable.
Did jiml's revised script ever get posted to the wiki? I tried searching and couldn't find it.

I borked the permissions for all folders/files in Music by copying from a USB drive in file manager (I know, but I forgot) and I'd like to put them the way they are supposed to be.

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

Re: Permissions for /var/hda/files

Postby bigfoot65 » Sun Oct 28, 2012 7:22 pm

File permissions for /var/hda/files is owned by firstadminuser:users and read/write by all for the most part.

Code: Select all

sudo chown -R firstadminuser:users /var/hda/files

Code: Select all

sudo chmod -R 775 /var/hda/files
Of course replace firstadminuser with the user you created on install of the OS.
ßîgƒσστ65
Applications Manager

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

VAmoroso
Posts: 6
Joined: Wed Apr 13, 2011 9:58 pm

Re: Permissions for /var/hda/files

Postby VAmoroso » Mon Nov 26, 2012 11:09 pm

I'm having an issue where every new file I transfer via samba (using windows snyc toy) are root:root. So in order for them to be picked up by minidlna i have to ssh in and chown stuff.

Permissions are totally fine, it's just an ownership issue for me.
I think this is the same issue I tried to explain here

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

Re: Permissions for /var/hda/files

Postby bigfoot65 » Tue Nov 27, 2012 5:44 am

Seems as if there is something amiss with permissions on your HDA. I have not heard of anyone, myself included, having problems with Ubuntu recently.

Have you checked ownership permissions of all folders in /var/hda/files to include that directory? Is there any other info you can provide, logs, etc that might help us diagnose?
ßîgƒσστ65
Applications Manager

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

richgrech
Posts: 48
Joined: Sun Jan 09, 2011 6:11 am

Re: Permissions for /var/hda/files

Postby richgrech » Sat Dec 01, 2012 7:07 am

What logs can help diagnose this problem?

Created directories under /var/hda/files/drives/xxxx have the correct ownership, but files copied to those directories don't.

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

Re: Permissions for /var/hda/files

Postby bigfoot65 » Sat Dec 01, 2012 7:39 am

Sounds like it could be an install issue. I had problems once and a reinstall was needed. You can check /var/log directory for log files. There are many there that might help, i.e. syslog and others.
ßîgƒσστ65
Applications Manager

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

richgrech
Posts: 48
Joined: Sun Jan 09, 2011 6:11 am

Re: Permissions for /var/hda/files

Postby richgrech » Tue Dec 11, 2012 11:20 am

I didn't see anything odd in the logs.

A reinstall would be unfortunate at this point. It's almost impossible to reinstall without having to totally re-upload my backups to crashplan (it never quite works to initialize and diff my old backup files) each time. I just re-started this after switching from redhat to ubuntu and I don't really want to start again with reinstalling for a third time due to this file permissions error. Frustrating.

Who is online

Users browsing this forum: No registered users and 48 guests