Assigning a user a non-interactive login
I am trying to assign a user account on RHEL5 Server a non-interactive login but I am not sure if this is the correct command:
useradd useraccount -s /sbin/nologin
After I issue this command, I try to log in with this account and it says the "Administrator has disabled this account" when I enter the password. Does any one know if the command above is correct? I apologize for being vague since I am a noob to RHEL server. Thank you.
|