|
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. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
Quote:
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 |
#3
|
||||
|
||||
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 |
#4
|
|||
|
|||
Quote:
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 |
#5
|
||||
|
||||
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 |
#6
|
|||
|
|||
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 |
#7
|
||||
|
||||
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 |
#8
|
||||
|
||||
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.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#9
|
|||
|
|||
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 |
#10
|
||||
|
||||
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 |
#11
|
|||
|
|||
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 |
#12
|
||||
|
||||
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 |
#13
|
||||
|
||||
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).
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#14
|
||||
|
||||
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 |
#15
|
||||
|
||||
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 |
#16
|
|||
|
|||
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 |
#17
|
||||
|
||||
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 |
#18
|
||||
|
||||
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..
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#19
|
|||
|
|||
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 |
#20
|
||||
|
||||
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 |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
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 |