If you are a network administrator, and need to register a lot of users at once. It takes a lot of time to register one by one. Instead, if you have a list of users, you can register all users at once using an autopasswd command. However, the autopasswd command does not work properly. I checked different version from different distributions, but all of them does not work. It shows errors, so it needs to be modified. I do not why the useless comannd is widely distributed.
|
# rpm -ihv expect-5.38.0-88.i386.rpm |
|
#!/usr/bin/expect -f |
|
#!/bin/bash |
It deletes a user account and a user home directory. /root/bin/myuserdel
|
#!/bin/bash |
|
myuseradd user1 user1 |
Copyright © [- SroNey / JohN -]. All rights reserved