I am looking for a simple solution to create many users. I found a script on a site named vanhees.cc.
Code:
FILE = / root / file_util
for i in `cat $ FILE | grep-v ^ #`
do
USER = `echo $ i | cut-d" | "-f1`
SHELL = `echo $ i | cut-d" | "-f2`
PASSWD = `echo $ i | cut-d" | "-f3`
useradd-s $ SHELL $ USER
echo $ PASSWD | passwd - stdin $ USER
echo "USER: $ USER Successfully created \ n"
done
It works pretty well, and users are created. But they do not appear in the server-manager. When I create with the script, that's what gives me.
foo:x:5002:5002::/home/foo:/bin/false
foo1:x:5003:5003::/home/foo1:/bin/false
And when I create via server-manager this is what I have
jn:x:5000:5000:jul nois:/home/e-smith/files/users/jn:/usr/bin/rssh
Has anyone ever done this kind of manipulation? If so could you enlighten me?
Bookmarks