[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: creating new users on debian



On Mon, Jan 31, 2005 at 03:46:40PM -0500, mack wrote:
> I'm doing research on creating new users on a debian radius server
> using a bash script.  I've been looking at adduser and useradd
> commands today, but can't seem to figure out how to fit it together.
> Adduser is an interactive command and for some reason the useradd
> command doesn't seem to be creating users correctly in order to
> authenticate.  I've read the man pages on these commands. Any help
> would be appreciated.
> 
> Thanks.
> 
> mack
> 
> 
Hi Mack,


perhaps a stupid suggestion, but useradd with the -p option enters the 
unencrypted passwd into /etc/shadow, so authentification can't work.
The passwd needs to be supplied to the -p option encrypted.
A (non-interactive) way around is to not use -p option and to do
a '/usr/bin/passwd $username' in a second step. There is also a 
Shadow-Password-HOWTO which might have some info on supplying encrypted
passwds to -p.
 
Anyway, the README.Debian under /usr/share/doc/passwd says to use the 
adduser command...

Now, if you meant that user creation works and you only have problems
with the radius configuration, ignore this drivel.


Hth,

Andreas



Reply to: