A question about lilo and automatically booting to the desktop
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
A question about lilo and automatically booting to the desktop
I'm trying to get my computer, which runs Backtrack 3 to automatically boot to the desktop using kdm.
The thing is, usually I have to log in as root and then run kdm to go to the desktop. Then once in the desktop as root, I would have to click on the konqueror start button --> switch user --> start new session and log into my server account. What do I need to do to get my machine to boot up automatically to the desktop as my server account?
I know that if you use grub you can use this line
title Backtrack 3 KDE
rootnoverify (hd0,2)
kernel /boot/vmlinuz vga=791 root=/dev/sda3 ro autoexec=xconf;kdm
boot
in the grub.conf to take you directly to the desktop. However, lilo.conf does not have that option. Would I have to change lilo.conf or use one of the startup scripts rc.* ??
Also, the fact that I first have to login as root to launch kdm then login as server account makes the situation more complicated. Maybe I should chmod u+s kdm? Any suggestions?
omg that's right, forgot about that one. works great, now I just need to get it to automatically login to my server account instead of root. I found a login manager but I need root privs to edit it. For some weird reason the root password will not work?!?!?! However, the root password works fine for everything else, just not this.
Also, another question, if I'm running a program with sudo [program] then do I run the program as user root or as the current user but with root privileges? So, if someone runs an exploit on me on that program will they get a shell as root?
Also, another question, if I'm running a program with sudo [program] then do I run the program as user root or as the current user but with root privileges? So, if someone runs an exploit on me on that program will they get a shell as root?
AFAIK, when you run sudo you execute our commands as if you were that user (typically root). So if you run a script of application that has an exploit in it, they will get the same privileges as the user you running as (again, typically root).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.