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

More VIOS commands

Webmin configuration for LDAP