LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 12-15-2008, 11:38 PM   #1
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Rep: Reputation: 69
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?
 
Old 12-16-2008, 01:30 AM   #2
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 655

Rep: Reputation: 40
Hi.

Have you made sure that /etc/inittab has this line:
Code:
id:5:initdefault:
?
Note the "5" here. You probably already has a similar line, but make sure it's a "5" there.

Last edited by kenneho; 12-16-2008 at 01:31 AM.
 
Old 12-16-2008, 01:36 AM   #3
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Original Poster
Rep: Reputation: 69
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?

Last edited by trist007; 12-16-2008 at 01:39 AM.
 
Old 12-16-2008, 01:52 AM   #4
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Original Poster
Rep: Reputation: 69
Got it. I was able to access the control center as root and enabled auto login for server. Sweet. Thanks guys.
 
Old 12-16-2008, 03:43 AM   #5
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 655

Rep: Reputation: 40
Quote:
Originally Posted by trist007 View Post
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).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lilo trashed, when booting from cd, lilo command is not present wakeboarder3780 Linux - Software 3 03-23-2006 05:02 PM
lilo.conf question about booting please help!! xmarcusx Linux - Software 5 11-20-2005 06:01 AM
booting lycoris desktop/lx from lilo combrains Linux - General 2 09-24-2004 09:28 PM
LILO question about booting... slackMeUp Slackware 1 02-18-2004 10:15 PM
tri-booting lilo question edsmithers Slackware 7 10-30-2003 09:56 PM


All times are GMT -5. The time now is 10:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration