David Trask wrote:
>
> I'm getting messages on startup like "invalid group utmp" and
> when I try to do updatedb...I can't because slocate is
> missing and so forth. How can I fix this stuff in groups
> without having to redo the whole server. I'm finding that
> ibays won't work correctly and so forth so I'm assuming
> there's an issue with groups....can anyone help? Any ideas?
> here's my /etc/groups file if that helps
>
> root:x:0:root,admin
> bin:x:1:root,bin,daemon
> daemon:x:2:root,bin,daemon
> sys:x:3:root,bin,adm
> adm:x:4:root,adm,daemon
> tty:x:5:
> disk:x:6:root
> lp:x:7:daemon,lp
> mem:x:8:
> kmem:x:9:
> wheel:x:10:root
> mail:x:12:mail
> news:x:13:news
> uucp:x:14:uucp
> man:x:15:
> games:x:20:
> mysql:x:27:
> gopher:x:30:
> dip:x:40:
> ftp:x:50:
> dns:x:53:
> ldap:x:55:
> lock:x:54:
> nobody:x:99:
> users:x:100:
> admin:x:101:www
> www:x:102:admin
> public:x:103:
> shared:x:500:public,admin,www,jaddy,anallen,ballen,jallen,aalthenn,eamelotte,narmstrong,darnold,haudet,bbailey,jbailey and so forth for all my users
> dlylunchcnt:x:5004:
>
> Is it possible to rebuild this file?
Your missing alot of groups, all the qmail groups, apache, ntp etc. did you just forgot to paste the rest of the file or is that actually it?
Lets say something has blown these groups away from the groups file post install, then hopefully theres a copy of all system groups in the file /home/e-smith/accounts
egrep 'system.+Gid' /home/e-smith/accounts
will tell you all the groups you should have,
You can then add them back, using groupadd -g Guid groupname
--
Damien