I created a new group called tomcat and then created a new user called tomcat that I added to group tomcat:sudo groupadd tomcatsudo useradd -s /bin/false -g tomcat -d /opt/tomcat tomcatwhoami returns ubuntuI want to change user from ubuntu to tomcat so I tried su tomcat.But its asking me for password. I never set a password.How can I change user to tomcat?
I created a new group & new user. I then added the user to the group. How can I change to that user?
su;useradd