Closed PlusMinus0 closed 7 years ago
It is not bad per se. There's just no way, to change the owning user if you wanted to.
You could create a new folder and set the GID Sticky bit. So everything in the Download folder is owned by a specific group. Should solve your problem.
it's for sure possible to use another user to execute the java .... =) >
[root@server cfg]# docker exec -it jd2 /bin/bash root@server:/# ps -ef | grep java root 19 17 0 20:38 ? 00:00:00 su -pc java -Djava.awt.headless=true -jar /opt/JDownloader/JDownloader.jar swuser swuser 21 19 0 20:38 ? 00:00:00 sh -c java -Djava.awt.headless=true -jar /opt/JDownloader/JDownloader.jar swuser 22 21 0 20:38 ? 00:00:05 java -Djava.awt.headless=true -jar /opt/JDownloader/JDownloader.jar root 214 198 0 20:52 ? 00:00:00 grep java root@server:/#
if you wish, you can check > https://github.com/nopain1981/homeserver/tree/master/INSTALL/jd2
@nopain1981 The reason why I didn't change it was that I wanted to pass the GID and UID to the docker as it is created. It seemed like something that is preferable over needing to fork the container whenever you want another user.
Hi @PlusMinus0,
now i found maybe a solution. I create into the Container a new User and if you run the Container and share the Download Folder with your Host, the downloaded Files owned by the Docker User.
Thanks for the hint, I merged gotofoo’s fork.
In which way is this bad?