Robert Schelander wrote:
> Thanks for answering!
>
> >> Anyway why doesn't write axspawn anything into the
> >> shadow file where the passwords normally are?
> >>
> >> oe8rsq:+:400:200:oe8rsq:/home/ax25/oe8rsq:/bin/bash
> >>
> >> Do I have to modify axspawn.c to do this correctly?
> >
> >yes
>
> I've feard that.
> But because I think nearly everyone is using shadow passwords
> nowadays, and there are some people who are using automatic
> user creation there should exist hams with already done solutions,
> so I do not have to code all on my own and reinvent the wheel.
>
Maybe you should just plan on reinventing the wheel. This should get
you around the shadow password problem. As for the other stuff.... I
don't know.
Get an old version of passwd. You can get one at
http://bob.midtown.net/linux/passwd
put it somewhere in the path of the users created by axspawn ahead of
your current passwd, give them an alias or somesuchthing so they can
change their password.
do a chown root passwd
do a chmod 4555 passwd
Create a dummy user and, as root, give it a password you want all
axspawn users to share. Something like your callsign should work well.
Find this line in axspawn.c ' pw.pw_passwd = "+"; ' It should be
around line 453. Replace the + with the password you created from the
dummy users line in the /etc/passwd file. Then recompile axspawn,
install it, and tell us if it worked. ;-)
Bob