View previous topic :: View next topic |
Author |
Message |
devilheart l33t
Joined: 17 Mar 2005 Posts: 848 Location: Villach, Austria
|
Posted: Fri Mar 17, 2006 2:26 pm Post subject: install: utente `-g' non valido [risolto] |
|
|
salve
ho un problema di installazione di numerosi pacchetti (udez zip vari tool per le reti)
in pratica quando finisce la compilazione mi dice Code: | install: utente `-g' non valido | e non installa i binari di quel pacchetto.
cosa posso fare?
Last edited by devilheart on Sat Mar 18, 2006 8:51 pm; edited 1 time in total |
|
Back to top |
|
|
thewally l33t
Joined: 12 May 2005 Posts: 703 Location: Genova
|
Posted: Fri Mar 17, 2006 2:50 pm Post subject: |
|
|
Penso che '-g' sia un'opzione di adduser ( pacchetto "sys-apps/shadow" ), quindi potrebbe essere che il pacchetto di appartenenza è soggetto a qualche bug... prima di tutto controlla se stai utilizzando la versione stabile di shadow, se è così cerca qualche riscontro su bugzilla. _________________ Proudly Member of GeCHI |
|
Back to top |
|
|
devilheart l33t
Joined: 17 Mar 2005 Posts: 848 Location: Villach, Austria
|
Posted: Fri Mar 17, 2006 3:16 pm Post subject: |
|
|
ho rimesso la versione stabile di shadow ma non è cambiato nulla. tralaltro -g è una opzione di install ma ha a che fare con i gruppi e non con gli utenti
su bugzilla non ho trovato nulla |
|
Back to top |
|
|
.:chrome:. Advocate
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Fri Mar 17, 2006 6:56 pm Post subject: Re: install: utente `-g' non valido |
|
|
esiste il gruppo che sta cercando di usare?
i file delle password sono leggibile dal sistema? sono allineati con i relativ shadow? |
|
Back to top |
|
|
devilheart l33t
Joined: 17 Mar 2005 Posts: 848 Location: Villach, Austria
|
Posted: Sat Mar 18, 2006 10:41 am Post subject: |
|
|
no, ne l'utente -g ne il gruppo -g non esistono. /etc/passwd è leggibile da tutti ed è allineato con shadow.
ho notato che il problema me lo da solo sui binari, gli altri files vengono installati correttamente |
|
Back to top |
|
|
.:chrome:. Advocate
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Sat Mar 18, 2006 11:46 am Post subject: |
|
|
non penso che cerchi di aggiungere un gruppo chiamato "-g"
con -g specificherà il GID del gruppo, che probabilmente non esiste. |
|
Back to top |
|
|
devilheart l33t
Joined: 17 Mar 2005 Posts: 848 Location: Villach, Austria
|
Posted: Sat Mar 18, 2006 12:37 pm Post subject: |
|
|
e come faccio a sapere quale gid vuole? |
|
Back to top |
|
|
.:chrome:. Advocate
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Sat Mar 18, 2006 1:49 pm Post subject: |
|
|
devilheart wrote: | e come faccio a sapere quale gid vuole? |
beh, guarda lo script che genera l'errore, ci sarà pur un parametro, dopo -g |
|
Back to top |
|
|
devilheart l33t
Joined: 17 Mar 2005 Posts: 848 Location: Villach, Austria
|
Posted: Sat Mar 18, 2006 2:25 pm Post subject: |
|
|
ci sono tanti ebuild che danno errore. uno di questi è quello di udev, ma non ci sono parametri per install |
|
Back to top |
|
|
.:chrome:. Advocate
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Sat Mar 18, 2006 2:45 pm Post subject: |
|
|
devilheart wrote: | ci sono tanti ebuild che danno errore. uno di questi è quello di udev, ma non ci sono parametri per install |
non è possibile.
posta le ultime righe dell'output di una installazione fallita
ritorno a farti la domanda iniziale: sei assolutamente certo che tutti i files delle password siano a posto e correttamente allineati con il relativo shadow? |
|
Back to top |
|
|
devilheart l33t
Joined: 17 Mar 2005 Posts: 848 Location: Villach, Austria
|
Posted: Sat Mar 18, 2006 4:18 pm Post subject: |
|
|
questa è l'emersione di udev Code: | >>> Source compiled.
>>> Test phase [not enabled]: sys-fs/udev-087
>>> Install udev-087 into /var/tmp/portage/udev-087/image/ category sys-fs
install: utente `-g' non valido
install: utente `-g' non valido
install: utente `-g' non valido
install: utente `-g' non valido
install: utente `-g' non valido
install: utente `-g' non valido
install: utente `-g' non valido
install: utente `-g' non valido
install: utente `-g' non valido
install: utente `-g' non valido
install: utente `-g' non valido
install: utente `-g' non valido
install: utente `-g' non valido
install: utente `-g' non valido
install: utente `-g' non valido
install: utente `-g' non valido
install: utente `-g' non valido
install: utente `-g' non valido
install: impossibile fare stat di `extras/raid-devfs.sh': No such file or directory
>>> Completed installing udev-087 into /var/tmp/portage/udev-087/image/
man:
gzipping man page: udev.7
gzipping man page: ata_id.8
gzipping man page: cdrom_id.8
gzipping man page: dasd_id.8
gzipping man page: edd_id.8
gzipping man page: scsi_id.8
gzipping man page: udevd.8
gzipping man page: udevinfo.8
gzipping man page: udevmonitor.8
gzipping man page: udevsend.8
gzipping man page: udevstart.8
gzipping man page: udevtest.8
gzipping man page: vol_id.8
>>> Merging sys-fs/udev-087 to /
--- /etc/
>>> /etc/scsi_id.config
--- /etc/udev/
>>> /etc/udev/._cfg0000_udev.conf
--- /etc/udev/rules.d/
>>> /etc/udev/rules.d/05-udev-early.rules
>>> /etc/udev/rules.d/._cfg0000_50-udev.rules
--- /etc/dev.d/
--- /etc/dev.d/default/
--- /etc/dev.d/net/
>>> /etc/dev.d/net/hotplug.dev
--- /etc/hotplug.d/
--- /etc/hotplug.d/default/
--- /lib/
--- /lib/rcscripts/
--- /lib/rcscripts/addons/
>>> /lib/rcscripts/addons/udev-start.sh
>>> /lib/rcscripts/addons/udev-stop.sh
--- /lib/udev/
--- /lib/udev/devices/
!!! /lib/udev/devices/console
!!! /lib/udev/devices/null
!!! /lib/udev/devices/zero
--- /sbin/
--- /usr/
--- /usr/bin/
--- /usr/share/
--- /usr/share/doc/
--- /usr/share/doc/udev-087/
>>> /usr/share/doc/udev-087/ChangeLog.gz
>>> /usr/share/doc/udev-087/FAQ.gz
>>> /usr/share/doc/udev-087/README.gz
>>> /usr/share/doc/udev-087/README_volume_id.gz
>>> /usr/share/doc/udev-087/RELEASE-NOTES.gz
>>> /usr/share/doc/udev-087/TODO.gz
>>> /usr/share/doc/udev-087/index.html.gz
>>> /usr/share/doc/udev-087/index.jp.html.gz
>>> /usr/share/doc/udev-087/overview.gz
>>> /usr/share/doc/udev-087/udev_vs_devfs.gz
--- /usr/share/man/
--- /usr/share/man/man7/
>>> /usr/share/man/man7/udev.7.gz
--- /usr/share/man/man8/
>>> /usr/share/man/man8/ata_id.8.gz
>>> /usr/share/man/man8/cdrom_id.8.gz
>>> /usr/share/man/man8/dasd_id.8.gz
>>> /usr/share/man/man8/edd_id.8.gz
>>> /usr/share/man/man8/scsi_id.8.gz
>>> /usr/share/man/man8/udevd.8.gz
>>> /usr/share/man/man8/udevinfo.8.gz
>>> /usr/share/man/man8/udevmonitor.8.gz
>>> /usr/share/man/man8/udevsend.8.gz
>>> /usr/share/man/man8/udevstart.8.gz
>>> /usr/share/man/man8/udevtest.8.gz
>>> /usr/share/man/man8/vol_id.8.gz
>>> /etc/hotplug.d/default/10-udev.hotplug -> ../../../sbin/udevsend
>>> Safely unmerging already-installed instance...
--- !mtime obj /usr/share/man/man8/vol_id.8.gz
--- !mtime obj /usr/share/man/man8/udevtest.8.gz
--- !mtime obj /usr/share/man/man8/udevstart.8.gz
--- !mtime obj /usr/share/man/man8/udevsend.8.gz
--- !mtime obj /usr/share/man/man8/udevmonitor.8.gz
--- !mtime obj /usr/share/man/man8/udevinfo.8.gz
--- !mtime obj /usr/share/man/man8/udevd.8.gz
--- !mtime obj /usr/share/man/man8/scsi_id.8.gz
--- !mtime obj /usr/share/man/man8/edd_id.8.gz
--- !mtime obj /usr/share/man/man8/dasd_id.8.gz
--- !mtime obj /usr/share/man/man8/cdrom_id.8.gz
--- !mtime obj /usr/share/man/man8/ata_id.8.gz
--- !mtime obj /usr/share/man/man7/udev.7.gz
--- !mtime obj /usr/share/doc/udev-087/udev_vs_devfs.gz
--- !mtime obj /usr/share/doc/udev-087/overview.gz
--- !mtime obj /usr/share/doc/udev-087/index.jp.html.gz
--- !mtime obj /usr/share/doc/udev-087/index.html.gz
--- !mtime obj /usr/share/doc/udev-087/TODO.gz
--- !mtime obj /usr/share/doc/udev-087/RELEASE-NOTES.gz
--- !mtime obj /usr/share/doc/udev-087/README_volume_id.gz
--- !mtime obj /usr/share/doc/udev-087/README.gz
--- !mtime obj /usr/share/doc/udev-087/FAQ.gz
--- !mtime obj /usr/share/doc/udev-087/ChangeLog.gz
--- !found obj /sbin/udevtest
--- !found obj /sbin/udevstart
--- !found obj /sbin/udevsend
--- !found obj /sbin/udevd
--- !found obj /sbin/udev_run_hotplugd
--- !found obj /sbin/udev_run_devd
--- !found obj /sbin/udev
--- !mtime obj /lib/rcscripts/addons/udev-stop.sh
--- !mtime obj /lib/rcscripts/addons/udev-start.sh
--- cfgpro obj /etc/udev/udev.conf
--- cfgpro obj /etc/udev/rules.d/50-udev.rules
--- cfgpro obj /etc/udev/rules.d/05-udev-early.rules
--- cfgpro dir /etc/udev/rules.d
--- cfgpro dir /etc/udev
--- cfgpro obj /etc/scsi_id.config
--- cfgpro sym /etc/hotplug.d/default/10-udev.hotplug
--- cfgpro dir /etc/hotplug.d/default
--- cfgpro dir /etc/hotplug.d
--- cfgpro obj /etc/dev.d/net/hotplug.dev
--- cfgpro dir /etc/dev.d/net
--- cfgpro dir /etc/dev.d/default
--- cfgpro dir /etc/dev.d
--- !empty dir /usr/share/man/man8
--- !empty dir /usr/share/man/man7
--- !empty dir /usr/share/man
--- !empty dir /usr/share/doc/udev-087
--- !empty dir /usr/share/doc
--- !empty dir /usr/share
--- !empty dir /usr/bin
--- !empty dir /usr
--- !empty dir /sbin
--- !empty dir /lib/udev/devices
--- !empty dir /lib/udev
--- !empty dir /lib/rcscripts/addons
--- !empty dir /lib/rcscripts
--- !empty dir /lib
--- !empty dir /etc
>>> Original instance of package unmerged safely. |
i permessi di /etc/passwd sono 0644 mentre quelli di /etc/shadow sono 600
questo è /etc/passwd Code: | root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/false
daemon:x:2:2:daemon:/sbin:/bin/false
adm:x:3:4:adm:/var/adm:/bin/false
lp:x:4:7:lp:/var/spool/lpd:/bin/false
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/bin/false
news:x:9:13:news:/usr/lib/news:/bin/false
uucp:x:10:14:uucp:/var/spool/uucppublic:/bin/false
operator:x:11:0:operator:/root:/bin/bash
man:x:13:15:man:/usr/man:/bin/false
postmaster:x:14:12:postmaster:/var/spool/mail:/bin/false
cron:x:16:16:cron:/var/spool/cron:/bin/false
ftp:x:21:21::/home/ftp:/bin/false
sshd:x:22:22:sshd:/dev/null:/bin/false
at:x:25:25:at:/var/spool/cron/atjobs:/bin/false
squid:x:31:31:Squid:/var/cache/squid:/bin/false
gdm:x:32:32:GDM:/var/lib/gdm:/bin/false
xfs:x:33:33:X Font Server:/etc/X11/fs:/bin/false
games:x:35:35:games:/usr/games:/bin/bash
named:x:40:40:bind:/var/bind:/bin/false
mysql:x:60:60:mysql:/var/lib/mysql:/bin/false
postgres:x:70:70::/var/lib/postgresql:/bin/bash
apache:x:81:81:apache:/home/httpd:/bin/false
nut:x:84:84:nut:/var/state/nut:/bin/false
cyrus:x:85:12::/usr/cyrus:/bin/false
vpopmail:x:89:89::/var/vpopmail:/bin/false
alias:x:200:200::/var/qmail/alias:/bin/false
qmaild:x:201:200::/var/qmail:/bin/false
qmaill:x:202:200::/var/qmail:/bin/false
qmailp:x:203:200::/var/qmail:/bin/false
qmailq:x:204:201::/var/qmail:/bin/false
qmailr:x:205:201::/var/qmail:/bin/false
qmails:x:206:201::/var/qmail:/bin/false
postfix:x:207:207:postfix:/var/spool/postfix:/bin/false
smmsp:x:209:209:smmsp:/var/spool/mqueue:/bin/false
portage:x:250:250:portage:/var/tmp/portage:/bin/false
guest:x:405:100:guest:/dev/null:/dev/null
nobody:x:65534:65534:nobody:/:/bin/false
test:x:1001:100::/home/test:/bin/bash
rpc:x:111:111:added by portage for portmap:/dev/null:/usr/sbin/nologin
ntp:x:123:123:added by portage for ntp:/dev/null:/usr/sbin/nologin
|
questo è /etc/shadow
Code: | root:<del>:13180:0:::::
halt:*:9797:0:::::
operator:*:9797:0:::::
shutdown:*:9797:0:::::
sync:*:9797:0:::::
bin:*:9797:0:::::
ftp:*:9797:0:::::
daemon:*:9797:0:::::
adm:*:9797:0:::::
lp:*:9797:0:::::
mail:*:9797:0:::::
postmaster:*:9797:0:::::
news:*:9797:0:::::
uucp:*:9797:0:::::
man:*:9797:0:::::
games:*:9797:0:::::
guest:*:9797:0:::::
nobody:*:9797:0:::::
test:<del>:13197:0:99999:7:::
rpc:!:13181:0:99999:7:::
ntp:!:13182:0:99999:7:::
|
questo è /etc/group
Code: | root::0:root
bin::1:root,bin,daemon
daemon::2:root,bin,daemon
sys::3:root,bin,adm
adm::4:root,adm,daemon
tty::5:test
disk::6:root,adm,test
lp::7:lp
mem::8:
kmem::9:
wheel::10:root,test
floppy::11:root
mail::12:mail
news::13:news
uucp::14:uucp
man::15:man
cron::16:cron
console::17:
audio::18:test
cdrom::19:test
dialout::20:root
ftp::21:
sshd::22:
at::25:at
tape::26:root
video::27:root,test
squid::31:squid
gdm::32:gdm
xfs::33:xfs
games::35:test
named::40:named
mysql:x:60:
postgres::70:
cdrw::80:
apache::81:
nut::84:
usb::85:
vpopmail:x:89:
users::100:games
nofiles:x:200:
qmail:x:201:
postfix:x:207:
postdrop:x:208:
smmsp:x:209:smmsp
portage::250:portage,test
utmp:x:406:
nogroup::65533:
nobody::65534:
rpc:x:111:
ntp:x:123:
locate::245:
|
|
|
Back to top |
|
|
randomaze Bodhisattva
Joined: 21 Oct 2003 Posts: 9985
|
Posted: Sat Mar 18, 2006 4:28 pm Post subject: |
|
|
devilheart, cosa ti restituisce il comando:
Code: | equery b `which adduser` |
_________________ Ciao da me! |
|
Back to top |
|
|
devilheart l33t
Joined: 17 Mar 2005 Posts: 848 Location: Villach, Austria
|
Posted: Sat Mar 18, 2006 4:41 pm Post subject: |
|
|
adduser non ce l'ho
se ti riferifi a useradd allora mi ritorna sys-apps/shadow-4.0.14-r3 |
|
Back to top |
|
|
.:chrome:. Advocate
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Sat Mar 18, 2006 7:22 pm Post subject: |
|
|
ma... non avevi detto che si trattava di udev-087
succede anche installando la versione stabile?
inoltre... hai postato il contenuto di /etc/shadow (non vedo a che pro), ma spero che tu abbia rimosso alcune righe, perché se il tuo shadow è davvero quello che hai postato allora c'è davvero qualcosa che non va lnel tuo sistema.
per essere certi che ogni file dellepassword sia allineato con il suo shadow, fai questo
- pwunconv
- grpunconv
- rm /etc/passwd- /etc/shadow* /etc/group- /etc/gshadow*
- pwconv
- grpconv
in ogni caso sembra comunque che, come dicevi all'inizio, stia cercando di attribuire i files al gruppo "-g"
è una cosa assurda, secondo me si tratta di un errore nell'ebuild. prova la versione stabile e vedi se succede anche con quella, e soprattutto pensaci bene prima di installare pacchetti non stabili quando riguardano il sistema di base |
|
Back to top |
|
|
devilheart l33t
Joined: 17 Mar 2005 Posts: 848 Location: Villach, Austria
|
Posted: Sat Mar 18, 2006 8:05 pm Post subject: |
|
|
k.gothmog wrote: | ma... non avevi detto che si trattava di udev-087
succede anche installando la versione stabile? | si, succede anche con la versione stabile di udev
Quote: |
inoltre... hai postato il contenuto di /etc/shadow (non vedo a che pro), ma spero che tu abbia rimosso alcune righe, perché se il tuo shadow è davvero quello che hai postato allora c'è davvero qualcosa che non va lnel tuo sistema. | si, quello che ho postato è il mio /etc/shadow . non ho rimosso righe ma ho tolto la password criptata per gli utenti che uso prima di postare[/quote]
Quote: | per essere certi che ogni file dellepassword sia allineato con il suo shadow, fai questo
- pwunconv
- grpunconv
- rm /etc/passwd- /etc/shadow* /etc/group- /etc/gshadow*
- pwconv
- grpconv | fatto, non cambia nulla
Quote: | in ogni caso sembra comunque che, come dicevi all'inizio, stia cercando di attribuire i files al gruppo "-g"
è una cosa assurda, secondo me si tratta di un errore nell'ebuild. prova la versione stabile e vedi se succede anche con quella, e soprattutto pensaci bene prima di installare pacchetti non stabili quando riguardano il sistema di base | devo provare a installare la versione stabile del pacchetto di cui install fa parte? ci ho provato ma mi dice
Code: | if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I../lib -I../ lib -O2 -pipe -m3dnow -msse2 -march=athlon64 -fomit-frame-pointer -fweb -frena me-registers -ftracer -MT chgrp.o -MD -MP -MF ".deps/chgrp.Tpo" -c -o chgrp.o ch grp.c; \
then mv -f ".deps/chgrp.Tpo" ".deps/chgrp.Po"; else rm -f ".deps/chgrp.Tpo"; exi t 1; fi
In file included from lbracket.c:2:
test.c:129: error: static declaration of 'eaccess' follows non-static declaratio n
/usr/include/unistd.h:266: error: previous declaration of 'eaccess' was here
make[3]: *** [lbracket.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/coreutils-5.2.1-r7/work/coreutils-5 .2.1/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/coreutils-5.2.1-r7/work/coreutils-5 .2.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/coreutils-5.2.1-r7/work/coreutils-5 .2.1'
|
|
|
Back to top |
|
|
devilheart l33t
Joined: 17 Mar 2005 Posts: 848 Location: Villach, Austria
|
Posted: Sat Mar 18, 2006 8:50 pm Post subject: |
|
|
risolto!!!
ho reinstallato portage-2.0.54 e funziona tutto bene
grazie a tutti |
|
Back to top |
|
|
.:chrome:. Advocate
Joined: 19 Feb 2005 Posts: 4588 Location: Brescia, Italy
|
Posted: Sun Mar 19, 2006 1:16 am Post subject: |
|
|
ma è stranissimo!
non capisco come portage potesse influire su questo
comunque buon per te |
|
Back to top |
|
|
devilheart l33t
Joined: 17 Mar 2005 Posts: 848 Location: Villach, Austria
|
Posted: Sun Mar 19, 2006 3:17 pm Post subject: |
|
|
boh, ci sarà un bug. prima usavo portage-2.1_pre6-r3 |
|
Back to top |
|
|
|