how to change password for user in jlmkr shell jail? #138
-
Ok, go i login to my jail shell. then from there i can create a user i can give that user root powers Switch to user
user creation/management is covered here https://github.com/Jip-Hop/jailmaker/blob/main/README.md I tried doing this but it didn't manage to change password. so i couldn't leave it like that, and so had to remove the user i created Any ideas? Also any specific recommendations. I just thought if i create a docker user, i can use that for login into the docker shell using those credentials, rather than my truenas root user credentials. does it make sense doing that? more help and tips on this would be great. I do understand the basic concepts like, try not to run root for docker containers. A good example is linux server docker containers set a non root user for better security. Though i am not sure how to apply that concept for jailmaker docker. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I never did anything from this page: |
Beta Was this translation helpful? Give feedback.
as the jail is running as root on truenas, the userids on the contianer map direct to the userids on your nas.
If you want you can create a user on your nas, ie "librespeed", that will then have a uid and gid. You use that uid/gid in your compose file, and then the container will use the same userid/groupid as on your nas.
This means that you can then set the file permissions on the /path/to/librespeed/config directory to the same user... do this on your nas.
It may help if you make a dataset for the config. it means its easy to edit the perms in truenas gui.