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

Re: Automatic root password setting



> Ok thanks for you hints.
> 
> Is there a way to get the  Unix login name  that the user chosen using
> debconf? I'd like to use it to set gdm's autologin. E.g. :
> 
>     . /usr/share/debconf/confmodule
> 
>     db_get passwd/username
> 
>     if [ -n "$RET" ]; then
> 	sed -i "s,^AutomaticLoginEnable=false,AutomaticLoginEnable=false,g"  /etc/gdm/gdm.conf
> 	sed -i "s,^AutomaticLogin=,AutomaticLogin=$RET,g"/etc/gdm/gdm.conf
>     fi

Hmmm, I don't understand. The Unix login name *is* passwd/username so
I would bet the above should work.



Reply to: