devel@ where you _can_ ask
 help / color / mirror / Atom feed
* [newbies] hasher вываливается с ошибкой: hasher-priv: config: gid of user1 coincides with gid of user2
@ 2012-10-03  6:57 Vladimir Didenko
  2012-10-03  7:28 ` Ildar Mulyukov
  2012-10-03  7:43 ` Michael Shigorin
  0 siblings, 2 replies; 12+ messages in thread
From: Vladimir Didenko @ 2012-10-03  6:57 UTC (permalink / raw)
  To: devel-newbies

Добрый день.

После переустановки системы пытаюсь заново настроить хэшер(делаю
hasher-useradd, mkdir hasher), но сборка любого пакета или даже просто

hsh --initroot-only ~/hasher

обламывается с ошибкой

$  hsh --initroot-only ~/hasher
hasher-priv: config: gid of user1 coincides with gid of user2
hsh: hasher-priv getconf failed.

Под новым пользователем тоже не заводится. Вываливается с ошибкой

$ hsh --initroot-only ~/hasher/
hasher-priv: config: user1: build_a: gid coincides with caller
hsh: hasher-priv getconf failed.

Никто не подскажет, как это побороть?

-- 
С уважением,
Владимир.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [newbies] hasher вываливается с ошибкой: hasher-priv: config: gid of user1 coincides with gid of user2
  2012-10-03  6:57 [newbies] hasher вываливается с ошибкой: hasher-priv: config: gid of user1 coincides with gid of user2 Vladimir Didenko
@ 2012-10-03  7:28 ` Ildar Mulyukov
  2012-10-03  7:34   ` Vladimir Didenko
  2012-10-03  7:43 ` Michael Shigorin
  1 sibling, 1 reply; 12+ messages in thread
From: Ildar Mulyukov @ 2012-10-03  7:28 UTC (permalink / raw)
  To: devel-newbies

On 03.10.2012 12:57:10, Vladimir Didenko wrote:
> Добрый день.
> 
> После переустановки системы пытаюсь заново настроить хэшер(делаю
> hasher-useradd, mkdir hasher), но сборка любого пакета или даже просто
> 
> hsh --initroot-only ~/hasher
> 
> обламывается с ошибкой
> 
> $  hsh --initroot-only ~/hasher
> hasher-priv: config: gid of user1 coincides with gid of user2
> hsh: hasher-priv getconf failed.
> 
> Под новым пользователем тоже не заводится. Вываливается с ошибкой
> 
> $ hsh --initroot-only ~/hasher/
> hasher-priv: config: user1: build_a: gid coincides with caller
> hsh: hasher-priv getconf failed.
> 
> Никто не подскажет, как это побороть?

Любопытно. Пробовали поудалять пользователей (userdel) и начать заново?
-- 
Ildar Mulyukov,
   free SW designer/programmer/packager
======================================
email: ildar@altlinux.ru
Jabber: ildar.mulyukov@gmail.com
ICQ: 4334029
ALT Linux http://packages.altlinux.org/ru/Sisyphus/maintainers/ildar/
======================================

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [newbies] hasher вываливается с ошибкой: hasher-priv: config: gid of user1 coincides with gid of user2
  2012-10-03  7:28 ` Ildar Mulyukov
@ 2012-10-03  7:34   ` Vladimir Didenko
  0 siblings, 0 replies; 12+ messages in thread
From: Vladimir Didenko @ 2012-10-03  7:34 UTC (permalink / raw)
  To: devel@ where you _can_ ask

3 октября 2012 г., 11:28 пользователь Ildar Mulyukov  написал:
>
> Любопытно. Пробовали поудалять пользователей (userdel) и начать заново?

Все то же самое.


-- 
С уважением,
Владимир.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [newbies] hasher вываливается с ошибкой: hasher-priv: config: gid of user1 coincides with gid of user2
  2012-10-03  6:57 [newbies] hasher вываливается с ошибкой: hasher-priv: config: gid of user1 coincides with gid of user2 Vladimir Didenko
  2012-10-03  7:28 ` Ildar Mulyukov
@ 2012-10-03  7:43 ` Michael Shigorin
  2012-10-03  8:46   ` Vladimir Didenko
  1 sibling, 1 reply; 12+ messages in thread
From: Michael Shigorin @ 2012-10-03  7:43 UTC (permalink / raw)
  To: devel-newbies

On Wed, Oct 03, 2012 at 10:57:10AM +0400, Vladimir Didenko wrote:
> После переустановки системы

/home тот же?  Части /etc восстанавливали или начисто?

> пытаюсь заново настроить хэшер(делаю hasher-useradd,
> mkdir hasher), но сборка любого пакета или даже просто
> 
> hsh --initroot-only ~/hasher
> 
> обламывается с ошибкой
> 
> $  hsh --initroot-only ~/hasher
> hasher-priv: config: gid of user1 coincides with gid of user2
> hsh: hasher-priv getconf failed.

id user1
id user2

> Под новым пользователем тоже не заводится. Вываливается с ошибкой
> 
> $ hsh --initroot-only ~/hasher/
> hasher-priv: config: user1: build_a: gid coincides with caller
> hsh: hasher-priv getconf failed.

id build
id build_a

> Никто не подскажет, как это побороть?

Смотреть, как получилось пересечение gid'ов.  Если некогда --
поприбивать сателлитных пользователей (*_a, *_b) и hasher-useradd
заново.

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [newbies] hasher вываливается с ошибкой: hasher-priv: config: gid of user1 coincides with gid of user2
  2012-10-03  7:43 ` Michael Shigorin
@ 2012-10-03  8:46   ` Vladimir Didenko
  2012-10-03  9:12     ` Michael Shigorin
  0 siblings, 1 reply; 12+ messages in thread
From: Vladimir Didenko @ 2012-10-03  8:46 UTC (permalink / raw)
  To: devel@ where you _can_ ask

3 октября 2012 г., 11:43 пользователь Michael Shigorin  написал:
> On Wed, Oct 03, 2012 at 10:57:10AM +0400, Vladimir Didenko wrote:
>> После переустановки системы
>
> /home тот же?  Части /etc восстанавливали или начисто?

Я отодвигал старый хомяк, перетаскивал нужные мне файлы и конфиги в
новый и в конце делал

chown -R  cow:users /hom/cow

/etc - полностью новый

>

>>
>> hsh --initroot-only ~/hasher
>>
>> обламывается с ошибкой
>>
>> $  hsh --initroot-only ~/hasher
>> hasher-priv: config: gid of user1 coincides with gid of user2
>> hsh: hasher-priv getconf failed.
>
> id user1
> id user2


$ id cow_a
uid=501(cow_a) gid=100(users) группы=100(users)
$ id cow_b
uid=502(cow_b) gid=100(users) группы=100(users)

>
>> Под новым пользователем тоже не заводится. Вываливается с ошибкой
>>
>> $ hsh --initroot-only ~/hasher/
>> hasher-priv: config: user1: build_a: gid coincides with caller
>> hsh: hasher-priv getconf failed.
>
> id build
> id build_a
>

$ id build
uid=509(build) gid=100(users) группы=100(users),496(hashman)
$ id build_a
uid=510(build_a) gid=100(users) группы=100(users)
bash-3.2$


> Смотреть, как получилось пересечение gid'ов.  Если некогда --
> поприбивать сателлитных пользователей (*_a, *_b) и hasher-useradd
> заново.
>

Во-первых, хотелось бы разобраться почему так получилось, а во-вторых
не помогает ;-)

-- 
С уважением,
Владимир.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [newbies] hasher вываливается с ошибкой: hasher-priv: config: gid of user1 coincides with gid of user2
  2012-10-03  8:46   ` Vladimir Didenko
@ 2012-10-03  9:12     ` Michael Shigorin
  2012-10-03 10:13       ` Vladimir Didenko
  0 siblings, 1 reply; 12+ messages in thread
From: Michael Shigorin @ 2012-10-03  9:12 UTC (permalink / raw)
  To: devel@ where you _can_ ask

On Wed, Oct 03, 2012 at 12:46:46PM +0400, Vladimir Didenko wrote:
> >> $  hsh --initroot-only ~/hasher
> >> hasher-priv: config: gid of user1 coincides with gid of user2
> >> hsh: hasher-priv getconf failed.
> > id user1
> > id user2
> $ id cow_a
> uid=501(cow_a) gid=100(users) группы=100(users)
> $ id cow_b
> uid=502(cow_b) gid=100(users) группы=100(users)

Ой.

$ id mike_a; id mike_b
uid=502(mike_a) gid=502(mike_a) groups=502(mike_a)
uid=503(mike_b) gid=503(mike_b) groups=503(mike_b)

> > Смотреть, как получилось пересечение gid'ов.  Если некогда --
> > поприбивать сателлитных пользователей (*_a, *_b) и
> > hasher-useradd заново.
> Во-первых, хотелось бы разобраться почему так получилось,
> а во-вторых не помогает ;-)

Естественно.  Выясняйте, почему всех пихают в группу users
вместо редхатовского поведения "группа на пользователя",
принятого и в альте.

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [newbies] hasher вываливается с ошибкой: hasher-priv: config: gid of user1 coincides with gid of user2
  2012-10-03  9:12     ` Michael Shigorin
@ 2012-10-03 10:13       ` Vladimir Didenko
  2012-10-03 10:30         ` Michael Shigorin
  0 siblings, 1 reply; 12+ messages in thread
From: Vladimir Didenko @ 2012-10-03 10:13 UTC (permalink / raw)
  To: devel@ where you _can_ ask

3 октября 2012 г., 13:12 пользователь Michael Shigorin написал:
>
> Естественно.  Выясняйте, почему всех пихают в группу users
> вместо редхатовского поведения "группа на пользователя",
> принятого и в альте.
>

Нашел виновника - не заменил /etc/login.defs на /etc/login.defs.rpmnew

-- 
С уважением,
Владимир.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [newbies] hasher вываливается с ошибкой: hasher-priv: config: gid of user1 coincides with gid of user2
  2012-10-03 10:13       ` Vladimir Didenko
@ 2012-10-03 10:30         ` Michael Shigorin
  2012-10-03 10:49           ` Vladimir Didenko
  0 siblings, 1 reply; 12+ messages in thread
From: Michael Shigorin @ 2012-10-03 10:30 UTC (permalink / raw)
  To: devel@ where you _can_ ask

On Wed, Oct 03, 2012 at 02:13:53PM +0400, Vladimir Didenko wrote:
> > Естественно.  Выясняйте, почему всех пихают в группу users
> > вместо редхатовского поведения "группа на пользователя",
> > принятого и в альте.
> Нашел виновника - не заменил /etc/login.defs на /etc/login.defs.rpmnew

А что и когда там исправлялось, что возник .rpmnew?

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [newbies] hasher вываливается с ошибкой: hasher-priv: config: gid of user1 coincides with gid of user2
  2012-10-03 10:30         ` Michael Shigorin
@ 2012-10-03 10:49           ` Vladimir Didenko
  2012-10-03 11:07             ` Michael Shigorin
  0 siblings, 1 reply; 12+ messages in thread
From: Vladimir Didenko @ 2012-10-03 10:49 UTC (permalink / raw)
  To: devel@ where you _can_ ask

3 октября 2012 г., 14:30 пользователь Michael Shigorin  написал:
>
> А что и когда там исправлялось, что возник .rpmnew?

Когда точно не знаю - это к мэйнтейнеру пакета. diff показывал следующее


$ sudo diff -u /etc/login.defs.rpmnew  /etc/login.defs
[sudo] password for cow:
--- /etc/login.defs.rpmnew	2012-06-21 20:44:13.000000000 +0400
+++ /etc/login.defs	2012-10-03 08:40:08.343389497 +0400
@@ -17,6 +17,11 @@
 GID_MAX			60000

 #
+# Require authentication before chfn/chsh can make any changes.
+#
+#CHFN_AUTH		yes
+
+#
 # Don't allow users to change their "real name" and other information
 # using chfn.  The most restrictive setting is better achieved by not
 # installing chfn SUID.
@@ -56,7 +61,7 @@
 # The umask to use when creating user home directories.  The default
 # is 077.
 #
-#UMASK			077
+UMASK	076

 #
 # If defined, this command is run when removing a user.  It should
@@ -66,18 +71,6 @@
 #USERDEL_CMD		/usr/local/sbin/userdel_local

 #
-# If set to yes, userdel will remove the user´s group if it contains
-# no more members, and useradd will create by default a group with
-# the name of the user.
-#
-USERGROUPS_ENAB yes
-
-#
-# Enable "syslog" logging of newgrp and sg activity.
-#
-SYSLOG_SG_ENAB      yes
-
-#
 # The password hashing method and iteration count to use for group
 # passwords that may be set with gpasswd(1).
 #


-- 
С уважением,
Владимир.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [newbies] hasher вываливается с ошибкой: hasher-priv: config: gid of user1 coincides with gid of user2
  2012-10-03 10:49           ` Vladimir Didenko
@ 2012-10-03 11:07             ` Michael Shigorin
  2012-10-03 12:44               ` Vladimir Didenko
  0 siblings, 1 reply; 12+ messages in thread
From: Michael Shigorin @ 2012-10-03 11:07 UTC (permalink / raw)
  To: devel@ where you _can_ ask

On Wed, Oct 03, 2012 at 02:49:50PM +0400, Vladimir Didenko wrote:
> > А что и когда там исправлялось, что возник .rpmnew?
> Когда точно не знаю - это к мэйнтейнеру пакета.

Дело в том, что если бы файл из предыдущего пакета локально
не модифицировался, то был бы заменён на такой же _или_
изменившийся файл из нового пакета _без_ *.rpm{new,save}.
Возможно, какая-нить настраивалка молча постаралась...

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [newbies] hasher вываливается с ошибкой: hasher-priv: config: gid of user1 coincides with gid of user2
  2012-10-03 11:07             ` Michael Shigorin
@ 2012-10-03 12:44               ` Vladimir Didenko
  2012-10-03 13:02                 ` Mikhail Efremov
  0 siblings, 1 reply; 12+ messages in thread
From: Vladimir Didenko @ 2012-10-03 12:44 UTC (permalink / raw)
  To: devel@ where you _can_ ask

3 октября 2012 г., 15:07 пользователь Michael Shigorin  написал:
>
> Дело в том, что если бы файл из предыдущего пакета локально
> не модифицировался, то был бы заменён на такой же _или_
> изменившийся файл из нового пакета _без_ *.rpm{new,save}.
> Возможно, какая-нить настраивалка молча постаралась...
>

Я всего лишь сделал dist-upgrade с симпли до сизифа. Может установщик
симпли чего-то и понастраивал. По крайней мере в будущих заметках о
переходе с p6 на p7 неплохо бы написать о этой проблеме, вдруг у
кого-то тоже всплывет.

-- 
С уважением,
Владимир.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [newbies] hasher вываливается с ошибкой: hasher-priv: config: gid of user1 coincides with gid of user2
  2012-10-03 12:44               ` Vladimir Didenko
@ 2012-10-03 13:02                 ` Mikhail Efremov
  0 siblings, 0 replies; 12+ messages in thread
From: Mikhail Efremov @ 2012-10-03 13:02 UTC (permalink / raw)
  To: devel-newbies

On Wed, 3 Oct 2012 16:44:14 +0400 Vladimir Didenko wrote:
> 3 октября 2012 г., 15:07 пользователь Michael Shigorin  написал:
> >
> > Дело в том, что если бы файл из предыдущего пакета локально
> > не модифицировался, то был бы заменён на такой же _или_
> > изменившийся файл из нового пакета _без_ *.rpm{new,save}.
> > Возможно, какая-нить настраивалка молча постаралась...
> >
> 
> Я всего лишь сделал dist-upgrade с симпли до сизифа. Может установщик
> симпли чего-то и понастраивал. По крайней мере в будущих заметках о
> переходе с p6 на p7 неплохо бы написать о этой проблеме, вдруг у
> кого-то тоже всплывет.

Да, в Симпли изменяется login.defs. Но вообще любой rpmnew при
обновлении является поводом разобраться что и почему поменялось.
Только все это уже оффтопик тут.

-- 
WBR, Mikhail Efremov


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-10-03 13:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-03  6:57 [newbies] hasher вываливается с ошибкой: hasher-priv: config: gid of user1 coincides with gid of user2 Vladimir Didenko
2012-10-03  7:28 ` Ildar Mulyukov
2012-10-03  7:34   ` Vladimir Didenko
2012-10-03  7:43 ` Michael Shigorin
2012-10-03  8:46   ` Vladimir Didenko
2012-10-03  9:12     ` Michael Shigorin
2012-10-03 10:13       ` Vladimir Didenko
2012-10-03 10:30         ` Michael Shigorin
2012-10-03 10:49           ` Vladimir Didenko
2012-10-03 11:07             ` Michael Shigorin
2012-10-03 12:44               ` Vladimir Didenko
2012-10-03 13:02                 ` Mikhail Efremov

devel@ where you _can_ ask

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-newbies/0 devel-newbies/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel-newbies devel-newbies/ http://lore.altlinux.org/devel-newbies \
		devel-newbies@lists.altlinux.org devel-newbies@lists.altlinux.ru devel-newbies@lists.altlinux.com
	public-inbox-index devel-newbies

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-newbies


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git