SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Linux > SageTV for unRAID/Docker
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV for unRAID/Docker Discussion related to SageTV for unRAID/Docker. Questions, issues, problems, suggestions, etc. relating to SageTV for unRAID/Docker should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-23-2017, 08:07 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Permissioning for Sage server folder

What is the recommended permissioning for the sage folder structure in appdata?

Presumably some of the folders, like /appdata/sage/server/userdata should be 777 so that you can transfer files like Fanart and Gemstone import/export files from other users/PCs into these folders. Is that true or is this asking for trouble?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #2  
Old 01-23-2017, 08:59 PM
alfi33 alfi33 is offline
Sage Aficionado
 
Join Date: Jun 2008
Posts: 311
Quote:
Originally Posted by wayner View Post
What is the recommended permissioning for the sage folder structure in appdata?

Presumably some of the folders, like /appdata/sage/server/userdata should be 777 so that you can transfer files like Fanart and Gemstone import/export files from other users/PCs into these folders. Is that true or is this asking for trouble?
I spent a little time awhile back trying find the best way to get the permissions set on the Sage appdata directories so that I could transfer and edit files from Windows. The problem is every time the SageTV Docker is updated (or restarted?), the permissions are reset back to their original values.

I've found it much easier to just use WinSCP and connect as root.
__________________
Server: SageTV v9 on unRAID Docker; i5-2400; 16GB RAM; 9TB storage array; SiliconDust HDHR3
Client: Windows10; Intel Core2Duo; 4GB RAM; NVIDIA GeForce GT 1030
Client: NVIDIA ShieldTV
Client: Fire TV Stick 4K
Reply With Quote
  #3  
Old 01-23-2017, 09:19 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
The permissions set by the docker container should allow manipulation from in Windows no problem. That's how i do everything.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #4  
Old 01-23-2017, 09:40 PM
alfi33 alfi33 is offline
Sage Aficionado
 
Join Date: Jun 2008
Posts: 311
Quote:
Originally Posted by Fuzzy View Post
The permissions set by the docker container should allow manipulation from in Windows no problem. That's how i do everything.
Hmm...not me. Maybe I messed something up.

For example, I can't do things like save edits to the sage.properties file.
__________________
Server: SageTV v9 on unRAID Docker; i5-2400; 16GB RAM; 9TB storage array; SiliconDust HDHR3
Client: Windows10; Intel Core2Duo; 4GB RAM; NVIDIA GeForce GT 1030
Client: NVIDIA ShieldTV
Client: Fire TV Stick 4K
Reply With Quote
  #5  
Old 01-23-2017, 09:42 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
What error are you getting when trying to edit sage.properties?
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #6  
Old 01-23-2017, 10:00 PM
alfi33 alfi33 is offline
Sage Aficionado
 
Join Date: Jun 2008
Posts: 311
I get an "Access Denied" error.

I also get an "Access Denied" if I try to create a new file or folder in \\tower\appdata\sagetv\server\userdata\Phoenix\Fanart\TV (and many directories).

However, I am able to write to \\tower\appdata\sagetv\server\ChannelLogos and I can also save changes to the .SAGE_CUR_VERSION file.

But, like I said, this really hasn't been a big deal to me since I can just connect with root using WinSCP and do whatever I need.
__________________
Server: SageTV v9 on unRAID Docker; i5-2400; 16GB RAM; 9TB storage array; SiliconDust HDHR3
Client: Windows10; Intel Core2Duo; 4GB RAM; NVIDIA GeForce GT 1030
Client: NVIDIA ShieldTV
Client: Fire TV Stick 4K
Reply With Quote
  #7  
Old 01-24-2017, 03:13 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
In the docker log (clicking no the log option in the unRAID docker screen) do you see a lot of permissions/ownership changes failing? The docker container creates a sagetv:sagetv user:group (99:100) and then sets the entire sagetv folder to that owner.

What this does, is the 99:100 sagetv:sagetv inside the sage container maps directly to 99:100 nobody:users outside the container. This should leave the permissions wide open. What permissions are you seeing if you do an ls -l of the sagetv folder from the unraid shell?
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #8  
Old 01-24-2017, 06:34 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
I could likely add an option to NOT change the onwership, but the whole point of it was to allow remote access via windows shares to be able to edit anything under the sagetv media and appdata areas. As Fuzzy said, things get set to 99:100 (user:group) and that should be accessible over smb.
Reply With Quote
  #9  
Old 01-24-2017, 08:21 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Quote:
Originally Posted by Fuzzy View Post
What permissions are you seeing if you do an ls -l of the sagetv folder from the unraid shell?
When I telnet or ssh into my unraid server and go to /mnt/cache/appdata and look at permissions for the sagetv folder I see 777 but I think I changed it from 775. When I go into sagetv most of the folders, other than the ones that I changed are 755. The ownership/group is nobody:users
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #10  
Old 01-24-2017, 08:32 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
For starters, you shouldn't necessarily be accessing things through /mnt/cache. You should access things through /mnt/users. That is where everything is virtually mapped by the unRAID array. Not that that matters in this situation, since the /mnt/users is where the smb shares are at.

The difference in permissions shouldn't really matter. 777 or 775 would both work just fine, since the 'owner' is nobody:users, everyone accesses it as a user, so the group and other permissions are essentially ignored. FWIW, the sage start script does set the folder to 775 I think, which should be fine.

I'm wondering if this is actually an issue in your smb config, and not having to do with file permissions.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #11  
Old 01-24-2017, 08:38 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
How do I check out the smb config? For appdata I have Export set to yes and Security set to Public.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #12  
Old 01-24-2017, 11:00 AM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by Fuzzy View Post
FWIW, the sage start script does set the folder to 775 I think, which should be fine.
It actually does 777 for everything but the recordings folder. I've always wondered about that.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #13  
Old 01-24-2017, 11:34 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Originally Posted by EnterNoEscape View Post
It actually does 777 for everything but the recordings folder. I've always wondered about that.
Yeah, I thinking that it should really be 775 or 770... I've never liked the fact that sagetv does set 777 for any directory, but I've never felt strongly enough to actually change it (it should be changed, though).
Reply With Quote
  #14  
Old 01-24-2017, 12:54 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Quote:
Originally Posted by EnterNoEscape View Post
It actually does 777 for everything but the recordings folder. I've always wondered about that.
Ah, yeah, I actually saw the /var/run folder which is set 775.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #15  
Old 01-24-2017, 02:22 PM
EnterNoEscape's Avatar
EnterNoEscape EnterNoEscape is offline
SageTVaholic
 
Join Date: Jun 2010
Location: Harrisburg, PA
Posts: 2,657
Quote:
Originally Posted by Fuzzy View Post
Ah, yeah, I actually saw the /var/run folder which is set 775.
By everything, I really just meant the "default" media folders. I probably could have been a little more specific.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache).
Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI.

Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom).
Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG
Reply With Quote
  #16  
Old 01-24-2017, 03:25 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
So how come some of us are seeing 755? I definitely was not able to copy over my Gemstone settings which goes in sage/server/userdata/Gemstone as it was not writable from Windows.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #17  
Old 01-24-2017, 06:35 PM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
Couldn't tell you without knowing the permission set on that folder/file.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #18  
Old 01-25-2017, 05:51 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Once the container is running any files and directories created by the container will likely be 755 (that's sort of the default file permissions when users create new dirs).

When sagetv is restarted, it doesn't always reset the permissions to 775... I think it only does it when there is an update, if I recall.

That being said even 755 should be fine for windows shares, provided the user is 99 (nobody or sagetv) -- unless windows fileshare requires the group writeable because it uses a different user, but I thought that unRAID used "nobody" as the default user for most things..
Reply With Quote
  #19  
Old 01-25-2017, 08:05 AM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
Speaking of this, does it make sense that stuff like Fanart is stored in the same folder structure (by default it is in server/userdata/Phoenix) as the binaries that run SageTV. Shouldn't this type of stuff go in a separate application data location? You may not want all other PCs to have write access to the core Sage files, but it is convenient to have write access to stuff like Fanart folders or other "data-type" of folders? For example, I would like to be able to easily move my Gemstone settings files from one server to another.

Maybe userdata should be in a different partition?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA
Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA
Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server
Reply With Quote
  #20  
Old 01-25-2017, 08:32 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
if sage was designed today, then yes, app, config, and content would all be separated. This is mostly a legacy issue that has just never been dealt with. Sage was primarily developed for windows, and the core architecture was laid down before windows really had program and user space separation. The architecture just stuck around.
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
One Folder In Windows ==> Multi Folders In Folder View? PeteCress Diamond 0 07-09-2012 01:46 PM
Sage, WHS and folder duplication Jesse General Discussion 7 03-19-2009 03:11 PM
Changing Save Folder in Sage V5 tideman80 SageTV Software 1 11-08-2006 03:17 PM
Windows Server 2003 Share Folder lambda379 SageTV Software 2 02-26-2006 09:19 AM
Sage Playing a DVD Folder srothwell SageTV Software 11 07-11-2004 03:30 PM


All times are GMT -6. The time now is 01:41 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.