LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-05-2004, 03:56 PM   #1
jasonpojo
LQ Newbie
 
Registered: Mar 2004
Posts: 5

Rep: Reputation: 0
Auto Root Login or add superuser


Hi all...

I want to tell you my situation so i don't get a bunch of replies saying not to do this because of security issues..i don't really give a f$#@ about security issues...and i use root all the time i only use the other user for testing purposes.
OK, i have a red hat 9 system that i setup NTOP(a internet traffic sniffying program) on. This computer is going to be in a corner along with another monitoring computer. this computer is not going to have a keyboard mouse or monitor on it..so i need it to be able to boot up to gnome as root or another superuser with all root privileges and start the NTOP program. The program says i MUST be logged in as root and i have to be loading it from a terminal WHILE IN gnome or kde. It needs to be like this so if something goes down i can just hit the reset button and 3 minutes later the computer will have logged on and NTOP will be running.
i really need to do this..and like i said i don't care about security or anything else..as i run the computer in root all the time because the programs i use MUST be run i root. if anyone can and wants to help please post.
THANK YOU
Jason

 
Old 03-05-2004, 04:11 PM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
kdm, the KDE graphical login managers, allows auto logins, but I don't know if lets this be done for root.
 
Old 03-05-2004, 04:15 PM   #3
dushkinup
Member
 
Registered: Feb 2004
Location: Alpha Quadrant, sol system, earth, asia, Israel.
Distribution: Computer I : Slackware 9.1 ; Computer II : Windows XP
Posts: 144

Rep: Reputation: 15
It's pretty stupid...
you should create an account for yourself and another one for testing if you want to.
That's very very insecure!
 
Old 03-05-2004, 04:22 PM   #4
jasonpojo
LQ Newbie
 
Registered: Mar 2004
Posts: 5

Original Poster
Rep: Reputation: 0
I know it is stupid but i need to run in root....the program does not run in any user other that root..so i have to have root login or an user that looks has all attributes of root but lets you login automatically
 
Old 03-05-2004, 04:29 PM   #5
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
that's really nuts. aren't there other progs that can do what ntop does?

here's something I would never do but: how about starting it using /etc/rc.d/rc.local? Rather you'd start kde using rc.local and then Autostart in kde to start ntop.

are you sure ntop needs a full blown DE running? that seems a mighty waste on a computer with no monitor...
 
Old 03-05-2004, 04:30 PM   #6
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Well if you don't want to run as root, figure out want your app needs, then make a user that can do this stuff.
 
Old 03-05-2004, 04:37 PM   #7
jasonpojo
LQ Newbie
 
Registered: Mar 2004
Posts: 5

Original Poster
Rep: Reputation: 0
quatsch..ok you said to start kde with ../rc.local how do i go about doing this? in inittab or what
 
Old 03-05-2004, 04:43 PM   #8
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
No.

I really don't like explainig this since it's a really bad idea. But here are general things. When your computer starts up, it executes a series of scripts that are usually in your /etc/rc.d directory (it depends on your distro; you can see in your /etc/inittab where the scrpits are). The last script that gets executed is rc.local. If you want to have something start up automatically at boot up, what you can do is edit rc.local to do it for you.
 
Old 03-05-2004, 04:48 PM   #9
jasonpojo
LQ Newbie
 
Registered: Mar 2004
Posts: 5

Original Poster
Rep: Reputation: 0
now i need to know how i can get into kde withou logging in ans be under root
 
Old 03-05-2004, 04:50 PM   #10
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
root executes the startup scripts so if you manage to start kde with the scripts, kde will be running as root and so you'll be logged in as root.
 
Old 03-05-2004, 04:54 PM   #11
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Set it to runlevel 5, with KDM as the default login manager. Then configure kdm to do auto-logins.
 
Old 03-05-2004, 05:00 PM   #12
jasonpojo
LQ Newbie
 
Registered: Mar 2004
Posts: 5

Original Poster
Rep: Reputation: 0
kdm wont do an automatic root login though
 
Old 03-05-2004, 05:06 PM   #13
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
forget kdm. if you know how to start X and kde from text mode, you'll know what to do with the rc.local script. If not, you'd better do some reading before you hose your system and worse.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto-login (root account) sammykrupa Linux - Newbie 3 07-30-2005 11:27 PM
Auto login as root lmanwarren Fedora 2 04-10-2005 06:05 PM
auto login as root Whisky_Drinker Linux - Newbie 15 01-19-2005 04:20 PM
Auto login once as root... dano1970 Linux - General 2 10-28-2004 05:19 AM
SUSE 9.0 auto root login Denich Linux - Distributions 3 12-13-2003 10:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:28 PM.

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
Open Source Consulting | Domain Registration