Ok, I guess I was a bit confused, I am using a text-only login so GDM
wont help me here.

On Mon, Nov 15, 2010 at 11:11 AM, msacks <[email protected]> wrote:
> Got it. sed in the post scripts to modify the config files.
> So I did that with the following commands in my kickstart:
>
> #enable root login
> sed -i s/"auth       required    pam_succeed_if.so user != root
> quiet"/"#auth       required    pam_succeed_if.so user != root quiet"/
> /etc/pam.d/gdm
>
> #enable automatic login  as root
> sed -i s/"daemon]$"/"daemon]\nAutomaticLoginEnable=true\nAutomaticLogin=root"/
> /etc/gdm/custom.conf
> POC
>
>
> For some reason it still displays the login screen.
> If I type root and hit enter it goes into a shell prompt with no
> problem. I'd like to have to avoid typing anything. It seems that
> changing these commands in the post scripts is a bit late to get the
> desired effect.
>
>
>
>
> On Mon, Nov 15, 2010 at 10:21 AM, James Heather <[email protected]> 
> wrote:
>> On Mon, 2010-11-15 at 17:51 +0000, Bruno Wolff III wrote:
>>
>> On Mon, Nov 15, 2010 at 09:48:55 -0800,
>>   msacks <[email protected]> wrote:
>>> Hello List,
>>> I am creating a diagnostic livecd that will run a custom script as
>>> soon as it boots.
>>> I'd like to bypass the login screen altogether and automatically log
>>> in as the root user.
>>>
>>> I was considering creating a custom rpm with the following lines in
>>> the following files like so:
>>>
>>>  /etc/gdm/custom.conf AutomaticLoginEnable=true
>>> AutomaticLogin=root
>>>
>>> and my /etc/pam.d/gdm
>>> #auth       required    pam_succeed_if.so user != root quiet
>>>
>>> Is there a better way to achieve this than customizing these config
>>> files and over-writing them in an RPM?
>>
>> One way people do stuff like this is in the %post section write commands to
>> a file that gets run when the live image boots up. You can probably do
>> what you want there. Then you would have a custom ks file instead of
>> a custom rpm.
>>
>> Yes: 'sed -i' is your friend here.
>>
>> If you install spin-kickstarts and then look in
>> /usr/share/spin-kickstarts/fedora-live-desktop.ks, you'll find some
>> examples.
>>
>> James
>> --
>> livecd mailing list
>> [email protected]
>> https://admin.fedoraproject.org/mailman/listinfo/livecd
>>
>
--
livecd mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/livecd

Reply via email to