Hi everyone, I have a problem when trying to create a new group by using command "groupadd" follow by group name I've check /etc/group but the group wasn't added. and when I use command like : # groupadd clamav # useradd -g clamav -s /bin/false -c "Clam AntiVirus" clamav useradd: unknown group clamav <<< give me this results .. Anyone experiencing problem like this?
I keep searching on the internet but still can't get it to work 1.I've logged in as "root" 2.I've try to use fullpath as a command /usr/sbin/groupadd groupname Please help!
You must check your secure log files /var/log/secure See what it tell you after type commands. ------------ In my case, /etc/login.defs has been removed from the system. That's why my "groupadd" commands doesn't work. So, I decided to copy new login.defs from another machine. And it now worked.