Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with groups

Status
Not open for further replies.

yordangs

ISP
Sep 7, 2001
91
MX
i have a big problem with my aix groups the system can´t see it, all my services are down because the system says there is no system groups my apache used to work with nobody but now it cant start because a error was generated because the group istn more in my system the strange thing its the /etc/group file have all my groups in this file but i cant see throw smit. smit cant see too the groups some one can help me and told me what is happen and who i can recover my system groups

any help will be apreciated a lot
 
Well all kinds of things could have happened...like someone vi'd the file...and
put strange characters in it? to changing permission to messing with /etc/security......
You can try the following...............


Check dates on files in /etc/security and also /etc like passwd and group?
Has it changed recently?
-------------------------------------------------------------------------
Make sure all of the user definitions are correct in the user database:

#usrck -n ALL

Do the same for the groups:

#grpck -n ALL

If you find errors, you can correct them by replacing the -n flag with the -t flag.

WARNING: AIX checks the users and groups based on standard UNIX user
and group expectations. Your environment or application may require groups
and users that deviate from standard UNIX users and groups. If you are not
sure, it's best to leave it the same!
-------------------------------------------
Verify that your /etc/group file has entries matching the following:

system:!:0:root
staff:!:1:
bin:!:2:root,bin
sys:!:3:root,bin,sys
adm:!:4:bin,adm
uucp:!:5:uucp
mail:!:6:
security:!:7:root
cron:!:8:root
printq:!:9:
audit:!:10:root
ecs:!:28:
nobody:!:4294967294:nobody
usr:!:100:guest
-------------------------------------
/>#cd /etc
/etc>#ls -la group
-rw-r--r-- 1 root security 355 May 22 08:58 group
/etc>#ls -la passwd
-rw-r--r-- 1 root security 504 May 22 08:58 passwd
/etc>#cd /etc/security
/etc/security>#ls -la group
-rw-r----- 1 root security 459 May 03 16:33 group
/etc/security>#ls -la passwd
-rw-r----- 1 root security 299 May 04 07:51 passwd
sizes will be different but see the ownership, permissions, and group.
-------------------------

Good LUck....let us know what you find......
 
Hi aixqueen:

Thanks for the tip, but something happen when I typed usrck -t ALL, the console displays the following error:


"3001-642 The user name aa100331 appears in /etc/security/passwd
but not in /etc/passwd."

What could be the problem?...
Also when I vi'd the group file only appears the first line of the file an displays the following message:
"system:!:0:root" (first line)
~
~
~
""group" A line cannot be longer than 2048 characters."

Greetings
 
You can sort out the password problem by running

pwdck -t ALL

this will report all errors and ask if you wish them to be corrected. Probably safest in this case.

Hope it helps.
Dave V.
 
Just guessing here.......but you have two problems...
One is that someone added aa100331 to /etc/security/passwd but not to the /etc/password file...probably with vi....
That needs to be consistent...the password and the usrchk and grpchk above check should help.........but that user you mentioned needs to be fixed...

Problem number 2 may be that the group file has a group that grew too big as in
too many entries for a particular group? making the file unreadable maybe...

I would look for a large group, one with a lot of names....as it said no longer than 2048 bytes.....and then remove a few names from it........perhaps you added one too many names to the line...

You probably need to remove some of the users from one group that is too large
and perhaps make another group maybe staff2 or whatever you are using so that
you do not exceed 2048.

Just a thought
 
thaks a lot for all the people who helpe me to solve my problem especialy thnaks to aixqueen who answer me two times thans a lot im a very happy becuase the problem was solve

the way we solve this proble was remove some user from the /etc/group file we remove almost 60 users and when we try to acces the smit to show me the groups all works fine of course we run before the commands who aixqueen and vickersdc send me thaks a lo and if i can help anyone a will try to do it

Thanks a lot to everyone
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top