I have been given root access to a Red Hat linux server 7.5
Now I need to do the below
Onboard a user : george with a home directory /home/george
adduser -m george
. It works
Onboard an application Account (System User): java_user
adduser -r java_user
Define a Home directory to the java_user: /home/java_datahub
usermod -d /home/java_datahub java_user
The above command doesn't do anything. The directories are already existing.
Give sudo access to george so that he can login to the application account once on the server using the below command
sudo su - java_user
I am not sure how to do this.