You are not logged in.

#1 2023-09-23 18:40:53

b42
Member
Registered: 2023-07-20
Posts: 203

[SOLVED]zsh: permission denied: /etc/zsh/zshenv

Why am I getting this error if the user has been added to the wheel group where everything is set to 'all' ?

Last edited by b42 (2023-10-16 14:18:06)

Offline

#2 2023-09-23 20:11:13

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,557
Website

Re: [SOLVED]zsh: permission denied: /etc/zsh/zshenv

More context needed. Where are you getting this error? I'm going to assume sudo is involved due to the mention of the 'wheel' group, but as it stands, there is not enough information.

Also, what is '/etc/zsh/zshenv', where does it come from, and what are the permissions on it?

Mod note: moving to NC.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2023-09-23 20:12:14

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,098

Re: [SOLVED]zsh: permission denied: /etc/zsh/zshenv

Why are you getting that error *where* in response to *what*?

pacman -Qo /etc/zsh/zshenv
stat /etc/zsh/zshenv

You're *NOT* supposed to execute that.
Probably post your zshrc/zprofile.

Edit: youknowhat…

Last edited by seth (2023-09-23 20:12:53)

Online

#4 2023-09-23 20:30:19

b42
Member
Registered: 2023-07-20
Posts: 203

Re: [SOLVED]zsh: permission denied: /etc/zsh/zshenv

I am trying to modify zshenv file, I want to put icons there which will be reflected on my suckless terminal.

Now I cannot edit it even with sudo from my user, I have to log in to the root user (which does not have any desktop environment, only fresh installation Linux console) and I can only modify that file from root user.

I want to be able to modify that file freely from my specific user.

http://0x0.st/HViU.txt
http://0x0.st/HVin.txt

Offline

#5 2023-09-23 20:37:16

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,098

Re: [SOLVED]zsh: permission denied: /etc/zsh/zshenv

Now I cannot edit it even with sudo from my use

Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855

Also "man sudoedit"

Online

Board footer

Powered by FluxBB