It's complaining because it's too unprotected, your chmod to 777 means anyone and every one can read that file
(no protection at all on it)
see "man newusers"
Quote:
CAVEATS
The input file must be protected since it contains unencrypted passwords.
|
the input file argument should be a file that's only readable by root user and not executable. I'd try:
Quote:
chown root /root/users.txt (probably already root owned but make sure)
chmod 400 /root/users.txt
|
then retry your newusers command on it.
I suppose another option is to cat the users.txt into the newusers by standard input, the man
page says it can take the input by standard input (default)
Quote:
|
cat /root/users.txt | newusers
|
that avoids the whole permission issue