-
-
Notifications
You must be signed in to change notification settings - Fork 678
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
Error occurred: PermissionDenied #2426
Comments
Looking at the screenshot on the right you posted, it seems that zellij is currently running under the user If you installed zellij as root, you need root privileges to run zellij. Does this user have root privileges? |
I would take zellij compiled version and stick it somewhere in the path --root seems to be the issue. |
|
Yes. The user does not have root rights, that would defeat the purpose of having a separate user from "root" ;) Zellij was installed as root (like all other packages), but into a public directory (see |
I'm having the same issue I've even copied zellij to ~/.local/bin but it didn't work.
I suppose indeed it tries to access some file or some system resource? EDIT: worked again after a system restart. Could it be that there was some process not closed and locking on some resource? |
Had a similiar issue running zellij in WSL. Running with
Fixing the permission that it looks like so fixed the issue:
|
I didn't know about strace, but that's a really good tool, thank you! I found the same entry:
However I'm not comfortable with Zellij trying to access my root's folder I still have an open session with stuff to do, but I'll try to re-install Zellij with with regular user and hope the problem will be solved by that (for now). ALl in all, this sounds like a bug in ZelliJ, probably trying to access the folder of the user who installed the program. On Linux, that's not a good practice, since Linux is a multi-user system with at least root and a regular user being daily drivers. |
Yeah, I'm running into a similar oddity. But under certain environment variables combination ( i.e. doing an In one case it even uses the I haven't found a way to configure which dir it uses, though. |
Ah, I figured out:
I'm not sure how it determines the default value, but just set that dir to one appropriate for your user in your PS: Strace is awesome, thanks for pointing that out! |
This is just a status report, but I hope it helps someone! I had get error message after write this to export ZELLIJ_SOCKET_DIR="/run/user/$USER/zellij" More precisely,
wituout Envzellij version 0.39.2 |
This helped me, except that I also needed to manually create that directory and then run |
Basic information
zellij --version
: zellij 0.36.0stty size
: 1024x768uname -av
orver
(Windows): Linux asuka 6.2.14-gentoo-dist # 1 SMP PREEMPT_DYNAMIC Mon May 1 15:03:02 -00 2023 x86_64 AMD Ryzen 5 PRO 5650GE with Radeon Graphics AuthenticAMD GNU/LinuxList of programs you interact with as,
PROGRAM --version
: -Further information
Reproduction steps, noticeable behavior, related issues, etc
> zellij
Error occurred: PermissionDenied
I installed zellij via
cargo install --root /opt zellij
. It works using root anddoas zellij
, but as soon as I try to use it without root permissions, it just fails. The error message can be improved by telling me which permissions are missing (e.g. which file? it tries to access). As it stands, I'd have to start debugging this application to get it working, which is unfortunate.The debug option doesn't help and the log is empty. Here's a screenshot for your convenience:
The user's shell is nushell with starship prompt. I'm SSH'd onto a Proxmox VM - which I want to turn into my main PC as soon as it's configured and escape the claws of the Windozer :)
The text was updated successfully, but these errors were encountered: