Digitaldreams
Explorer
- Joined
- Mar 7, 2017
- Messages
- 80
I originally setup my server over 2 years ago and with the new update, I'm trying to relearn how to setup jails and work with the OS. My main goal now is to rebuild my jails so they are under iocage. That brings me to why I'm here...there's a lot I don't remember.
1.
So this is what I'm trying to wrap my head around. When I create a new jail using the basic wizard, it automatically chooses root as the exec_jail_user and exec.system_jail_user. When I later looked, these options appear in the advanced settings which I don't modify. This creates a path such as "tank/iocage/jails/plex/root". What bothers me about this is the "root" part. Is this what I should expect and is this preferred and why? In previous FreeNAS version using Warden I think, the jail path showed up as "tank/jails/plex". Why is this the case and does it matter?
2.
When I previously installed plex and transmission using the guides, it said to make sure you don't run them as root which I know to be standard practice. The previous plex jail was a standalone jail and transmission was using the plugin. What I'm confused about is when I go to install the plex pkg for example, should I be doing it as root or should I be creating a new user in the jail first, then installing plex as the new user? To take it one step further, with whichever user I do the install from, is this where I need to change the permissions in order to write data to the necessary datasets/folders (ie: tank/media/) ?
3.
As I understand it, you can only log into FreeNAS using root however I'd like to avoid poking around as root. If I run "su <username>" and choose the user that I created when I first configured the server, it doesn't have a home directory as configured per the guide I followed. So should I create another user to use when making changes via the CLI? Most importantly, how does this relate to ownership when installing apps within a jail?
1.
So this is what I'm trying to wrap my head around. When I create a new jail using the basic wizard, it automatically chooses root as the exec_jail_user and exec.system_jail_user. When I later looked, these options appear in the advanced settings which I don't modify. This creates a path such as "tank/iocage/jails/plex/root". What bothers me about this is the "root" part. Is this what I should expect and is this preferred and why? In previous FreeNAS version using Warden I think, the jail path showed up as "tank/jails/plex". Why is this the case and does it matter?
2.
When I previously installed plex and transmission using the guides, it said to make sure you don't run them as root which I know to be standard practice. The previous plex jail was a standalone jail and transmission was using the plugin. What I'm confused about is when I go to install the plex pkg for example, should I be doing it as root or should I be creating a new user in the jail first, then installing plex as the new user? To take it one step further, with whichever user I do the install from, is this where I need to change the permissions in order to write data to the necessary datasets/folders (ie: tank/media/) ?
3.
As I understand it, you can only log into FreeNAS using root however I'd like to avoid poking around as root. If I run "su <username>" and choose the user that I created when I first configured the server, it doesn't have a home directory as configured per the guide I followed. So should I create another user to use when making changes via the CLI? Most importantly, how does this relate to ownership when installing apps within a jail?
Last edited: