user add & passwd in script

#!/bin/bash
user=nagios1
password=nagios1
adduser $user
echo $password | passwd --stdin $user
~

Comments

  1. i didnt get the solution after restarting the nfs and portmap also...
    What should i do now?

    ReplyDelete

Post a Comment

Popular posts from this blog

How to delete SEA in VIOS

Webmin configuration for LDAP

Sample questions and answers for AWS Associate Solutions Architect Certification ---> AWS exam dumps