Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UID/GID does not work #4

Closed
b-chu opened this issue Nov 14, 2020 · 17 comments
Closed

UID/GID does not work #4

b-chu opened this issue Nov 14, 2020 · 17 comments

Comments

@b-chu
Copy link

b-chu commented Nov 14, 2020

non-root user with custom group
Does not work - biglybt unable to connect to any trackers

@b-chu
Copy link
Author

b-chu commented Nov 14, 2020

Fixable from #2

diff Dockerfile
+ENV BIGLYBT_USER biglybt

+RUN groupadd -g 1000 ${BIGLYBT_USER} && \
+    useradd -rm -d /home/${BIGLYBT_USER} -s /bin/bash -u 1000 -g 1000 ${BIGLYBT_USER}

+    USER="${BIGLYBT_USER}" app_java_home="/usr/lib/jvm/java-11-openjdk-amd64/" /app/BiglyBT_Installer.sh -q && \

Originally posted by @CWempe in #2 (comment)

@Fullaxx
Copy link
Owner

Fullaxx commented Nov 14, 2020

You are correct, and I believe the issue to be fixed now.
There was a typo in the bash script that was preventing permission changing.
Please let me know if you still experience issues using the new image.

@b-chu
Copy link
Author

b-chu commented Nov 14, 2020

Wasn't fixed, same error. I think it's something with how you install biglybt
USER="${BIGLYBT_USER}" app_java_home="/usr/lib/jvm/java-11-openjdk-amd64/" /app/BiglyBT_Installer.sh

@Fullaxx
Copy link
Owner

Fullaxx commented Nov 14, 2020

can you post your docker run line?

@Fullaxx
Copy link
Owner

Fullaxx commented Nov 14, 2020

This is what I use and I can connect to trackers and download torrents:
docker run -d -p 127.0.0.1:5901:5901 -e VNCRES='1280x960' -e VNCUSER='guest' -e VNCUID='1000' fullaxx/biglybt

@b-chu
Copy link
Author

b-chu commented Nov 16, 2020

VNCPASS="somestuff"
VNCUSER="box"
VNCUID="1000"
VNCGROUP="users"
VNCGID="1000"

@Fullaxx
Copy link
Owner

Fullaxx commented Nov 16, 2020

Thank you,
I see the issue now.
The users group already exists with GID of 100.
Try VNCGID="100"

I will look into patching it to read the GID from an existing group

@Fullaxx
Copy link
Owner

Fullaxx commented Nov 16, 2020

ok, thanks for the help. This appears to be fixed in the base image now.
If the VNCGROUP exists, Instead of bailing out it will use the existing GID number from the group file ignoring your VNCGID variable.
I have also updated the readme to be more specific.

Testing with docker run -d -p 127.0.0.1:5901:5901 -e VNCUSER="box" -e VNCUID="1000" -e VNCGROUP="users" -e VNCGID="1000" fullaxx/biglybt

Fix #4 with Fullaxx/ubuntu-desktop@098189c

@b-chu
Copy link
Author

b-chu commented Nov 16, 2020

VNCPASS="somestuff"
VNCUSER="biglybt"
VNCUID="1000"
VNCGROUP="biglybt"
VNCGID="1000"

still doesn't work

@Fullaxx
Copy link
Owner

Fullaxx commented Nov 16, 2020

Can you describe the error or post a screenshot? This is what I see when I run the command below.

tested with docker run -d -p 127.0.0.1:5901:5901 -e VNCPASS='stuff' -e VNCUSER='biglybt' -e VNCUID='1000' -e VNCGROUP='biglybt' -e VNCGID='1000' fullaxx/biglybt

biglybt

@b-chu
Copy link
Author

b-chu commented Nov 16, 2020

Mine looks the same except under Status it says "Waiting"

@Fullaxx
Copy link
Owner

Fullaxx commented Nov 16, 2020

and everything works correctly, when you run it without user modification variables?
docker run -d -p 127.0.0.1:5901:5901 -e VNCPASS='stuff' fullaxx/biglybt

@b-chu
Copy link
Author

b-chu commented Nov 16, 2020 via email

@Fullaxx
Copy link
Owner

Fullaxx commented Nov 16, 2020

can you post a screenshot of an xterm window, like the one in the picture with the following commands:
id
cd /usr/local/biglybt
ls -l

I don't know how to solve a problem that I can't reproduce

@b-chu
Copy link
Author

b-chu commented Nov 16, 2020 via email

@Fullaxx
Copy link
Owner

Fullaxx commented Nov 16, 2020

sorry I couldn't be more help

@Fullaxx
Copy link
Owner

Fullaxx commented Nov 18, 2020

While I was never able to reproduce the specific "Waiting" issue described,
I am interested in creating an image that is usable by everyone equally.
I've been doing some testing into what might be causing that issue.

If anyone is still monitoring this thread, I would be interested to know if the latest published image solves the "Waiting" issue.
I did make some changes into how the software is installed that mimic the other fix described.

Tested with: docker run -d -p 127.0.0.1:5901:5901 -e VNCUSER="biglybt" -e VNCUID="1000" -e VNCGROUP="users" fullaxx/biglybt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants