This content has been marked as final. Show 3 replies
1 person found this helpful
Hi# useradd -d / -c "Test User" -s /bin/ash -n -g root -P -M usrtest# cat /etc/passwd | grep -i usrtestusrtest:x:507:100:Test User:/:/bin/ash# /usr/sbin/usermod -g root usrtest# /usr/sbin/usermod -G root usrtest# cat /etc/passwd | grep -i usrtestusrtest:x:507:0:Test User:/:/bin/ash# cat /etc/group | grep -i rootroot:x:0:root,usrtest
Thanks for your reply.
groupadd seems to accomplish the adding to group as well so I assume just useradd alone is not sufficient.
This still does not resolve the issue of the shell for the new user changing to /sbin/nologin on restart