PDA

View Full Version : How can I log in as root in F12 LiveDVD?


geltdavid
7th February 2010, 09:01 PM
Hi all,

I have downloaded the livecd-creator and used the fedora 12 base and desktop from spin-kickstarts package to build a custom spin. I have added only two packages SDL and FTGL to the desktop kickstart, everything else is the same.

Everything works fine, but I can not login as root when the log in GUI is displayed. If I change the .. root quiet entry in /etc/pam/pam.d file I can log in after rebooting, but that is not an option because I have to use the DVD on many machines each day. The liveuser is working but that's not what I need.

Is there any way that I can log in as root by changing the kickstart file only?

Thanks a lot.

David

scottclin
7th February 2010, 09:08 PM
If I am not mistaken you can use sudo on the live cd so to become the root user you need to sudo su?

smurffit
7th February 2010, 09:13 PM

root should not login on X!

Login as live user and make a root-terminal:/bin/su -

Dies
7th February 2010, 09:21 PM
root should not login on X!
...
Give me a break, it's a live session, so what if it gets owned. :rolleyes:
...
Is there any way that I can log in as root by changing the kickstart file only?
...
There may be an easy way, but the only way I can think of is for you to script it yourself.

Though if all you want is the liveuser is to have "root"-like priviledges you may be better off using PolicyKit to allow any action for the user, it would be much easier that's for sure, you just make the user part of the desktop_admin group.

geltdavid
7th February 2010, 09:22 PM
Login as live user and make a root-terminal:/bin/su -[/QUOTE]

I am sorry, I didn't make myself clear. I want to change either base or desktop.ks files so that I can create a LiveDVD where I can log in as root using the GUI screen where the users are listed (LiveUser, Other User...), not after the GNOME session is started.

If I use sudo only the Terminal session will know about the root, but the File Browser and some other programs won't allow me to open folders or files that belong to root.

Thanks anyway.

scottclin
7th February 2010, 09:26 PM
Why not navigate to those loactions using the root terminal? cd and a console based text editor should be enough to do what you want? Like he said loging in as root into the window manager is a bad practice. You should learn to live without it. man pages are your friend.

geltdavid
7th February 2010, 09:33 PM
Why not navigate to those loactions using the root terminal? cd and a console based text editor should be enough to do what you want? Like he said loging in as root into the window manager is a bad practice. You should learn to live without it. man pages are your friend.

I know it is not recommended but this is a local network with no Internet or external access.

The thing is I need to use also a GUI program and if I try to open files that belong to root using that program I can't.

---------- Post added at 01:33 PM CST ---------- Previous post was at 01:31 PM CST ----------

Give me a break, it's a live session, so what if it gets owned. :rolleyes:

There may be an easy way, but the only way I can think of is for you to script it yourself.

Though if all you want is the liveuser is to have "root"-like priviledges you may be better off using PolicyKit to allow any action for the user, it would be much easier that's for sure, you just make the user part of the desktop_admin group.

I will look into the second part. I was hoping that there is a kickstart file that has that.

Thank you very much.

scottclin
7th February 2010, 09:37 PM
Can you run the program as root from the root terminal?

AlexDudko
7th February 2010, 09:48 PM
Use full root:
su -
then
nautilus

geltdavid
8th February 2010, 02:16 AM
Can you run the program as root from the root terminal?

I didn't thought of that. I will try to do su - and then try to run the program.

Thank you very much.

---------- Post added at 06:16 PM CST ---------- Previous post was at 06:16 PM CST ----------

Use full root:

then

I will try that. Thank you very much.