huan / docker-wechat

DoChat is a Dockerized WeChat (盒装微信) PC Windows Client for Linux
https://hub.docker.com/r/zixia/wechat
Apache License 2.0
2.24k stars 203 forks source link

DoChat does not start due to permissions issue #136

Open jonolumb opened 3 years ago

jonolumb commented 3 years ago

After running dochat.sh as the user (not sudo), the following output is shown in the terminal:

🚀 Pulling the docker image...

3.3.0.115: Pulling from zixia/wechat 4c25b3090c26: Pull complete 24993a9a75a1: Pull complete 0b066bf674c9: Pull complete ef4e5584de11: Pull complete d8bf47273793: Pull complete bddb50f4c7f4: Pull complete a79f7e2d9ad6: Pull complete 977b5c6eeecf: Pull complete 55508a8bf80f: Pull complete 78fbec38f888: Pull complete 3362a431136d: Pull complete cc3afe3c189d: Pull complete 5929eb3243ec: Pull complete 8b1e20d9d182: Pull complete e7d0ae7ee2c6: Pull complete Digest: sha256:5fa8575f66e9db9ec0399e57d3a60475f07c1e8a8052b5c01b85acb98912db8a Status: Downloaded newer image for zixia/wechat:3.3.0.115 docker.io/zixia/wechat:3.3.0.115

🚀 Pulling the docker image done. 🚀 Starting DoChat /dɑɑˈtʃæt/ ...

[DoChat] 盒装微信 v0.14.4 Disabling patch for /home/user/.wine/drive_c/users/user/AppData/Roaming/Tencent/WeChat ... Disabling patch for /home/user/.wine/drive_c/users/user/Application Data/Tencent/WeChat ... mkdir: 无法创建目录 “/home/user/.wine/drive_c/users/user/Application Data/Tencent”: 权限不够

It seems like there is some permissions issue on that last line. Is there any way this could be solved?

I'm running Ubuntu 20.04 and have added my user account to the "docker" group.

Thanks!

chagel commented 3 years ago

The folders('Application Data' etc) under shared host was created by root. I think it can be improved in setup script although I just chown my login user permission to get over it.

jonolumb commented 3 years ago

Thanks - that worked!

smallmax00 commented 3 years ago

Could you please explain how to solve it? I chown /home to my login user, but it seems not work.

leo-liuzy commented 3 years ago

Try to chown and chgrp /home/user, doesn't help

Clone the git repo and running dochat.sh with sudo doesn't help either.

Adding sudo to docker run also doesn't help

chagel commented 3 years ago

@smallmax00 @leo-liuzy

it's host shared folders you should check

or run following if you haven't changed the source

sudo chown -R $(whoami) $HOME/DoChat/

PageNotFound200 commented 3 years ago

Thanks - that worked! Can u tell me how to fix the error? plz , i have the same question, i tried to chown my user DoChat , but i don't work !

heavens420 commented 3 years ago

you can add the env --user root in dochat.sh It will use the root account to create the files, it maybe work but I don't try it

huan commented 3 years ago

Link to

qiyan98 commented 3 years ago

@smallmax00 @leo-liuzy

it's host shared folders you should check

or run following if you haven't changed the source

sudo chown -R $(whoami) $HOME/DoChat/

Awesome! This works for me on Ubuntu 20.04. Thanks!

0FoolishProgrammer commented 2 years ago

heshang@heshang:~$ su root 密码: root@heshang:/home/heshang# docker run f0e83e6cc506 [DoChat] 盒装微信 v0.15.0 Disabling patch for /home/user/.wine/drive_c/users/user/AppData/Roaming/Tencent/WeChat ... Disabling patch for /home/user/.wine/drive_c/users/user/Application Data/Tencent/WeChat ... [DoChat] WeChat 3.3.0.115 [DoChat] Starting... [DoChat] WeChat.exe exit with code 0 [DoChat] Found new version? [DoChat] WeChat.exe exited

你好,我也有同样的问题,我使用root用户操作,提示权限也不足。