Adding User to Jail Permissions (MineOS)

thejamesk

Explorer
Joined
Sep 2, 2018
Messages
71
Hi

I am trying to add myself to the security permissions for a MineOS jail so I can go in and modify the jail files, However am having trouble getting my permissions to apply despite multiple attemps of modifying via the new windows share I have set up.

Can anyone help?
 
Joined
Jul 10, 2016
Messages
521

hervon

Patron
Joined
Apr 23, 2012
Messages
353
Searching the forums with these words jail permission adduser. I got this.


Read this and the next posts. Might help.
 

colmconn

Contributor
Joined
Jul 28, 2015
Messages
174
Adding users in a jail is quiet straight forward. For example, below are commands to add a group and user. They key to eliminating permissions issues between a jail and the host is to make sure that the user IDs and group IDs are the same on both sides. Below, I create a group named colmconn with GID 1001. I also create a user named colmconn with UID 1001, primary group colmconn (GID: 1001) and supplemental group membership of wheel. You can of course do this within the jail, in which case you delete the "iocage exec ${JAIL_NAME} --" from each command below.

Code:
iocage exec ${JAIL_NAME} -- pw groupadd -n colmconn -g 1001
iocage exec ${JAIL_NAME} -- pw useradd -n colmconn -u 1001 -g colmconn -G wheel \
       -d /home/colmconn -s /usr/local/bin/bash -h 0 -c "FirstName I. Lastname"
 

thejamesk

Explorer
Joined
Sep 2, 2018
Messages
71
There aren't much reasons to manually copy/edit files in the data directory /var/game/minecraft of your MineOS install, but if you must, I recommend to use WinSCP or fileZilla to do so. Adding a windows share will add ACLs and that may already be enough to mess up permissions.

See this post: https://www.ixsystems.com/community/threads/mineos-ftp-access-problem.84551/

Thank you! It appears I am able using my root user to FTP (filezilla) into this directory and modify/transfter files. Of course I have plenty of fails with messing up permissions so will stick with this method for now
 
Top