chown: invalid group: ‘root:root’

Non release banter
Post Reply
User avatar
francois
Contributor
Contributor
Posts: 4901
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

chown: invalid group: ‘root:root’

Post#1 by francois » 03 Jan 2014, 14:50

Trying to build some packages under porteus I get the following error message:

Code: Select all

chown: invalid group: ‘root:root’
I imagine this is normal as:

Code: Select all

root@porteus:~# id
uid=0(root) gid=0 groups=0,1,2,3,4,6,10
root@porteus:~#
For more info on group and use management:
https://wiki.archlinux.org/index.php/Users_and_Groups

What is there to do? :)
Voltaire: Le mieux est l'ennemi du bien.

User avatar
fanthom
Site Admin
Site Admin
Posts: 4546
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: chown: invalid group: ‘root:root’

Post#2 by fanthom » 04 Jan 2014, 09:30

please point me to packages (slackbuilds if possible) which does not compile because of this error.
Please add [Solved] to your thread title if the solution was found.

User avatar
francois
Contributor
Contributor
Posts: 4901
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: chown: invalid group: ‘root:root’

Post#3 by francois » 04 Jan 2014, 21:10

We are talking about slackbuild cups-filters 1.0.43:
https://github.com/willysr/SlackHacks/t ... ps-filters

The offending line seems to be at the end:

Code: Select all

chown -R root: root .
find -L . \
Thanks. :)
Voltaire: Le mieux est l'ennemi du bien.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5436
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: chown: invalid group: ‘root:root’

Post#4 by brokenman » 05 Jan 2014, 03:13

change it to: chown -R root .
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
fanthom
Site Admin
Site Admin
Posts: 4546
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: chown: invalid group: ‘root:root’

Post#5 by fanthom » 05 Jan 2014, 08:50

this slackbuild looks ok for me. please post last few lines of it's output i(ncluding the error you are getting).
thanks
Please add [Solved] to your thread title if the solution was found.

User avatar
phhpro
Full of knowledge
Full of knowledge
Posts: 545
Joined: 10 Nov 2013, 20:35
Distribution: .

Re: chown: invalid group: ‘root:root’

Post#6 by phhpro » 06 Jan 2014, 21:11

...
Last edited by phhpro on 03 Feb 2016, 23:41, edited 1 time in total.

User avatar
francois
Contributor
Contributor
Posts: 4901
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

Re: chown: invalid group: ‘root:root’

Post#7 by francois » 07 Jan 2014, 19:04

@fanthom:

Code: Select all

root@porteus:~# cd /mnt/sda5/64bit_v30/porteus/test-cups/cups-filter/
root@porteus:/mnt/sda5/64bit_v30/porteus/test-cups/cups-filter# ./cups-filters.SlackBuild
cups-filters-1.0.43/
cups-filters-1.0.43/Makefile.in
cups-filters-1.0.43/install-sh
cups-filters-1.0.43/scripting/
cups-filters-1.0.43/scripting/php/...
...
cups-filters-1.0.43/filter/pdftopdf/nup.cc
cups-filters-1.0.43/filter/rastertoescpx.c
cups-filters-1.0.43/filter/texttopdf.c
cups-filters-1.0.43/filter/pdfutils.c
cups-filters-1.0.43/filter/getline.c
cups-filters-1.0.43/filter/urftopdf.cpp
chown: cannot access ‘root’: No such file or directory
Thanks.
Voltaire: Le mieux est l'ennemi du bien.

User avatar
fanthom
Site Admin
Site Admin
Posts: 4546
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: chown: invalid group: ‘root:root’

Post#8 by fanthom » 07 Jan 2014, 20:06

i think there was a typo in the slackbuild when you posted this code before:

Code: Select all

chown -R root: root .
find -L . \
(mind extra space between root: root)
seems that it's not there anymore. please download this slackbuild again. if you still get this error then please check if you are affected by /etc/group bug as described here: viewtopic.php?f=53&t=2954&p=21029#p21021
Please add [Solved] to your thread title if the solution was found.

Post Reply