P
P
petrovkazanksvu2021-03-14 19:09:58
ubuntu
petrovkazanksvu, 2021-03-14 19:09:58

How to apply configuration in docker container thiagosagara/tacgui?

Good day to ALL!
In general, I want to deploy the tacacsgui service in a container.
1) I found an image of some Portuguese tacacsgui on Docker hub https://hub.docker.com/r/thiagosagara/tacgui ,
2) I ran 3 commands

sudo docker pull thiagosagara/tacgui
sudo docker run -it --name tcg -d thiagosagara/tacgui
sudo docker exec -t tcg /root/tgui_install/./startser.sh

3) I went to the web gui 0.0.0.0:4443
4) I created a user and decided to apply and save the configuration, and then this error popped up
604e34e0048c0020611175.png
Do not tell me how to solve this problem if I'm still new to docker and maybe someone has already encountered this?
Definitely something with superuser rights..

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xom4ek, 2021-03-20
@petrovkazanksvu

Hey! Already kind of answered in the cart, but nevertheless, someone else may need it.
tacgui uses systemd - and in the image you are using systemd is not running and all parsing does not work:
main.sh
service tac_plus $2 | grep 'Active:';
If you use service without systemd - then the answer is NULL, which generates a bunch of errors in the code.
If you use it with systemd - there will be an answer - that it will already be correctly parsed by the php code and will display the appropriate save / apply authorization

Active: active (running) since Sat 2021-03-20 10:26:13 MSK; 6min ago

An example of how you can run this tacgui in docker:
docker run -d -p 4443:4443  --name tcgXom --tmpfs /tmp --tmpfs /run --tmpfs /run/lock -v /sys/fs/cgroup:/sys/fs/cgroup:ro xom4ek/tacgui

Screenshot that everything went:
dtHFsTm631iDuG4.png

D
Daria Motorina, 2021-03-14
@glaphire

Most likely, certain writable folders/files were created under sudo and no longer have write access to them. You can configure docker so that it does not need sudo to work (there are instructions on the network), then change the owner of the folders / files to the user under which the docker is running.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question