Current time: 05-18-2024, 03:46 PM Hello There, Guest! (LoginRegister)


Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Gelöst] Problem mit der Domain
Author Message
grex Offline
Junior Member
*

Posts: 156
Joined: Sep 2007
Reputation: 0
Post: #1
[Gelöst] Problem mit der Domain
Hallo liebe Community!

Habe folgendes Problem, habe jetzt einen Kunden geadded mittels den resseller acc und nun ist so ein 4 eckiges rotes quadrat. Folgender Fehler ist auszulesen:
sys_command() | ERROR: External command '/usr/sbin/groupadd -g 2003 vu2003' returned '4' status !

bitte bitte helft mir.

Mfg
Grex
(This post was last modified: 10-08-2007 05:07 AM by Breaki.)
10-06-2007 08:34 PM
Find all posts by this user
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: Problem mit der Domain
Code:
EXIT VALUES
       The groupadd command exits with the following values:

       4
          GID not unique (when -o not used)

Gibt es denn schon diese gruppe in der /etc/group ?

Greez BeNe
10-06-2007 08:48 PM
Visit this user's website Find all posts by this user
grex Offline
Junior Member
*

Posts: 156
Joined: Sep 2007
Reputation: 0
Post: #3
RE: Problem mit der Domain
habe nie eine gruppe aufgemacht....
10-06-2007 09:01 PM
Find all posts by this user
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #4
RE: Problem mit der Domain
Das machst ispCP selber.
Gibt es schon eine gruppe "2003" in deiner /etc/group ?
Laut der Fehlermeldung - JA.

Greez BeNe
10-06-2007 09:21 PM
Visit this user's website Find all posts by this user
grex Offline
Junior Member
*

Posts: 156
Joined: Sep 2007
Reputation: 0
Post: #5
RE: Problem mit der Domain
hmmm hier habe ma unter etc group ausgeführt, folgendes kommt: ( sollte es den keinen group ordner geben? )

Code:
./group
./group: line 1: root:*:0:: command not found
./group: line 2: daemon:*:1:: command not found
./group: line 3: bin:*:2:: command not found
./group: line 4: sys:*:3:: command not found
./group: line 5: adm:*:4:: command not found
./group: line 6: tty:*:5:: command not found
./group: line 7: disk:*:6:: command not found
./group: line 8: lp:*:7:: command not found
./group: line 9: mail:*:8:: command not found
./group: line 10: news:*:9:: command not found
./group: line 11: uucp:*:10:: command not found
./group: line 12: man:*:12:: command not found
./group: line 13: proxy:*:13:: command not found
./group: line 14: kmem:*:15:: command not found
./group: line 15: dialout:*:20:: command not found
./group: line 16: fax:*:21:: command not found
./group: line 17: voice:*:22:: command not found
./group: line 18: cdrom:*:24:: command not found
./group: line 19: floppy:*:25:: command not found
./group: line 20: tape:*:26:: command not found
./group: line 21: sudo:*:27:: command not found
./group: line 22: audio:*:29:: command not found
./group: line 23: dip:*:30:: command not found
./group: line 24: www-data:*:33:: command not found
./group: line 25: backup:*:34:: command not found
./group: line 26: operator:*:37:: command not found
./group: line 27: list:*:38:: command not found
./group: line 28: irc:*:39:: command not found
./group: line 29: src:*:40:: command not found
./group: line 30: gnats:*:41:: command not found
./group: line 31: shadow:*:42:: command not found
./group: line 32: utmp:*:43:: command not found
./group: line 33: video:*:44:: command not found
./group: line 34: sasl:*:45:: command not found
./group: line 35: plugdev:*:46:: command not found
./group: line 36: staff:*:50:: command not found
./group: line 37: games:*:60:: command not found
./group: line 38: users:*:100:: command not found
./group: line 39: nogroup:*:65534:: command not found
./group: line 40: crontab:x:101:: command not found
./group: line 41: Debian-exim:x:102:: command not found
./group: line 42: ssh:x:103:: command not found
./group: line 43: mysql:x:104:: command not found
./group: line 44: bind:x:105:: command not found
./group: line 45: ssl-cert:x:106:: command not found
./group: line 46: postfix:x:107:: command not found
./group: line 47: postdrop:x:108:: command not found
./group: line 48: postgrey:x:109:: command not found
./group: line 49: vu2000:x:2000:: command not found
./group: line 50: ts:x:2001:: command not found
./group: line 51: hlds:x:2002:: command not found
./group: line 52: tm:x:2003:: command not found

mfg
(This post was last modified: 10-06-2007 09:46 PM by grex.)
10-06-2007 09:46 PM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #6
RE: Problem mit der Domain
naja, die Idee war nicht, dass du group ausführst, eher auflistetst... (cat /etc/group), aber egal:

./group: line 50: ts:x:2001:: command not found
./group: line 51: hlds:x:2002:: command not found
./group: line 52: tm:x:2003:: command not found

da sieht man, dass Gruppen mit gid über 2000 existieren und da sie nicht vu am anfang haben, gehören die nicht zu ispcp.

Das würde ich korrigieren. Entweder diesen Gruppen die gid unter 2000 setzen oder ispcp sagen, er soll weiter oben weitermachen. Ich würde ersteres vorziehen.
Und wenn du neue Linux-System-User eröffnest, dann darauf achten, dass die uid/gid unter 2000 liegt - da hat's noch genügend freie...

Ich würde auch die /etc/passwd checken - ich vermute, da besteht dasselbe Problem...

Gruss Joximu
(This post was last modified: 10-06-2007 10:03 PM by joximu.)
10-06-2007 10:02 PM
Visit this user's website Find all posts by this user
grex Offline
Junior Member
*

Posts: 156
Joined: Sep 2007
Reputation: 0
Post: #7
RE: Problem mit der Domain
ehm kannst du mir da vill. helfen?

Also auf gut deutsch, wie kann ich die users eine andere ID vergeben, so meinst du das ja, das ich unter 2000 bleibe ne?
Also was muss ich den jetzt ausführen?

PS:
Code:
cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
sync:x:4:65534:sync:/bin:/bin/sync
games:x:5:60:games:/usr/games:/bin/sh
man:x:6:12:man:/var/cache/man:/bin/sh
lp:x:7:7:lp:/var/spool/lpd:/bin/sh
mail:x:8:8:mail:/var/mail:/bin/sh
news:x:9:9:news:/var/spool/news:/bin/sh
uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
proxy:x:13:13:proxy:/bin:/bin/sh
www-data:x:33:33:www-data:/var/www:/bin/sh
backup:x:34:34:backup:/var/backups:/bin/sh
list:x:38:38:Mailing List Manager:/var/list:/bin/sh
irc:x:39:39:ircd:/var/run/ircd:/bin/sh
gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
Debian-exim:x:102:102::/var/spool/exim4:/bin/false
sshd:x:100:65534::/var/run/sshd:/usr/sbin/nologin
mysql:x:101:104:MySQL Server,,,:/var/lib/mysql:/bin/false
bind:x:103:105::/var/cache/bind:/bin/false
postfix:x:104:107::/var/spool/postfix:/bin/false
postgrey:x:105:109::/var/lib/postgrey:/bin/false
proftpd:x:106:65534::/var/run/proftpd:/bin/false
ftp:x:107:65534::/home/ftp:/bin/false
vmail:x:1000:8:vmail-user:/home/vmail:/bin/false
vu2000:x:2000:2000:vu-master:/var/www/fcgi/master:/bin/false
ts:x:2001:2001::/home/ts:/bin/sh
hlds:x:2002:2002::/home/hlds:/bin/sh
tm:x:2003:2003::/home/tm:/bin/sh

mfg
Grex
(This post was last modified: 10-06-2007 10:17 PM by grex.)
10-06-2007 10:14 PM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #8
RE: Problem mit der Domain
Zuerst die 3 Gruppen:

groupmod -g 1100 ts
groupmod -g 1101 hlds
groupmod -g 1102 tm

und die 3 User:

usermod -u 1100 ts
usermod -u 1101 hlds
usermod -u 1102 tm

dann poste nochmals die letzten paar Zeilen von /etc/passwd und /etc/group
(zB. tail -10 /etc/...)

zur Kontrolle ein "ls -la /home" - die Home-Verzeichnisse der 3 User sollten immernoch stimmen (ts ts), falls da 2001 2001 steht, müssen die Besitzer/Gruppen der Verzeichnisse noch gesetzt werden... Falls noch andere daten dieser User auf dem system vorhanden sind, sollten die auch gesetzt werden.

Vielleicht ist es auch einfacher, die 3 User zu löschen und beim neu anlegen darauf achten, dass die UID/GID unter 2000 zu liegen kommen.
Wie man das macht, weiss sicher jemand hier (ich kann dir nur die useradd Befehle erläutern, aber ich denke, es gibt bei Debian auch eine andere Möglichkeit..)

Gruss
Joximu
10-06-2007 10:34 PM
Visit this user's website Find all posts by this user
grex Offline
Junior Member
*

Posts: 156
Joined: Sep 2007
Reputation: 0
Post: #9
RE: Problem mit der Domain
so, also als erster ma: ich habe user immer so angelegt: useradd NAME -m

so und hier die /etc/group
Code:
vu2000:x:2000:
ts:x:1100:
hlds:x:1101:
tm:x:1102:
vu2000 habe ich nie angelegt !

hier die /etc/passwd:
Code:
vu2000:x:2000:2000:vu-master:/var/www/fcgi/master:/bin/false
ts:x:1100:2001::/home/ts:/bin/sh
hlds:x:1101:2002::/home/hlds:/bin/sh
tm:x:1102:2003::/home/tm:/bin/sh


bei:
Code:
ls -la /home[7code]
kommt
[code]
insgesamt 20
drwxrwsr-x  5 root staff   4096 2007-10-05 20:19 .
drwxr-xr-x 20 root root    4096 2007-09-30 18:38 ..
drwxr-xr-x  2 ftp  nogroup 4096 2007-06-23 19:04 ftp
drwxr-xr-x  5 hlds    2002 4096 2007-10-01 21:50 hlds
drwxr-xr-x  3 ts      2001 4096 2007-09-30 18:51 ts

stimmt das so alles?


ich habe nur ein bisschen also den schluss von passwd und group kopiert !

ja und wäre nett wenn einer wüsste wie man die GUI oder wie das heißt einstellen kann bei useradd dass man unter 2000 bleibt.


mfg
Grex


EDIT: Leute ihr seit Super hier läßt sich jedes Problem lösen ! Einfach user dann löschen und dann wieder erstellen. Danke vielmals Danke,Danke,Danke!!!

falls einer noch den Befehl weiss wie man unter der ID 2000 bleiben könne bei useradd wäre das cool. nochma big thx
(This post was last modified: 10-06-2007 11:47 PM by grex.)
10-06-2007 11:39 PM
Find all posts by this user
grex Offline
Junior Member
*

Posts: 156
Joined: Sep 2007
Reputation: 0
Post: #10
RE: Problem mit der Domain
Hallo, wollte heute meinen server starten und was kommt jetzt oO:
Code:
You are not the owner of /var/run/screen/S-hlds.

aber als notfall schnell mal einen neuen user erstellt, der hat aber auch sicher wieder ne ID oder was das ist über 2000 .... hmm was isn da falsch? oder ist das jetzt egal wenn man einen user über den 2000 anlegt, da ja jetzt alles korrekt läuft mit dem webspace...
10-07-2007 02:43 AM
Find all posts by this user
Thread Closed 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)