You are not logged in.

#1 2021-02-21 17:25:04

Papier2234
Member
Registered: 2021-02-21
Posts: 3

[SOLVED] chown: invalid group

Hello, I finally managed to install Arch Linux (after I think 5 tries) and successfully installed a Desktop Environment.
I'm trying to install yay, however when I try to change user permission using:

 sudo chown -R karolp:karolp ./yay-git 

I get the error:

chown: invalid group: 'karolp:karolp' 

So I checked groups using:

cat /etc/group |grep karolp

and got:

wheel:x:998:karolp

During the installation I created the User karolp using:

useradd -m -g users -s /bin/bash karolp

and also uncomended:

EDITOR=nano visudo
%wheel ALL=(ALL) ALL

As you can tell I'm a total newbie, so I don't really know what to do.
btw I followed the German Arch Linux installation guide: https://wiki.archlinux.de/title/Anleitu … Einsteiger

Last edited by Papier2234 (2021-02-21 18:50:20)

Offline

#2 2021-02-21 17:44:31

loqs
Member
Registered: 2014-03-06
Posts: 19,024

Re: [SOLVED] chown: invalid group

useradd -m -g users -s /bin/bash karolp

-g users set the primary group to users.  Without it a group karolp would have been used as the primary group.

 sudo chown -R karolp:karolp ./yay-git 

Why are you executing chown on that directory?  As a new user I would suggest not to use any AUR helper as the automation they provide has a tendency to lead to user confusion.

Online

#3 2021-02-21 17:50:36

tucuxi
Member
From: Switzerland
Registered: 2020-03-08
Posts: 291

Re: [SOLVED] chown: invalid group

The 'karolp' group does not exist, as chown tells you. With 'useradd -g users' you chose not to create it.

If the group existed, /etc/group would contain a line starting with 'karolp:x'.

Your account's primary group is 'users'. So: 'sudo chown -R karolp:users ./yay-git'.

Offline

#4 2021-02-21 18:00:38

Papier2234
Member
Registered: 2021-02-21
Posts: 3

Re: [SOLVED] chown: invalid group

I tried to execute chown, because that's what was written on a website how to download yay.

loqs wrote:

As a new user I would suggest not to use any AUR helper as the automation they provide has a tendency to lead to user confusion.

So you suggest to just download every package manually with:

 git clone <package URL> 

Offline

#5 2021-02-21 18:18:14

loqs
Member
Registered: 2014-03-06
Posts: 19,024

Re: [SOLVED] chown: invalid group

Papier2234 wrote:

I tried to execute chown, because that's what was written on a website how to download yay.

If you do a git clone to your home directory the ownership should be correct i.e. owned by your user.

Papier2234 wrote:
loqs wrote:

As a new user I would suggest not to use any AUR helper as the automation they provide has a tendency to lead to user confusion.

So you suggest to just download every package manually with:

 git clone <package URL> 

Yes then follow makepkg.

Online

#6 2021-02-21 18:49:08

Papier2234
Member
Registered: 2021-02-21
Posts: 3

Re: [SOLVED] chown: invalid group

Okay, thank you both smile

Offline

Board footer

Powered by FluxBB