LinuxQuestions.org
Help answer threads with 0 replies.
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 01-31-2002, 04:07 PM   #1
Hogweed
LQ Newbie
 
Registered: Jan 2002
Posts: 4

Rep: Reputation: 0
Automatic root login at start?


How do I setup Linux to automatically login as root at startup?
 
Old 01-31-2002, 04:35 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
I would advise against this, due to security reasons.
 
Old 01-31-2002, 04:42 PM   #3
Hogweed
LQ Newbie
 
Registered: Jan 2002
Posts: 4

Original Poster
Rep: Reputation: 0
I'm developing an embedded application that is running on PeeWee Linux. I need root privileges and eventually the system will have to boot without prompting for user/pass.
 
Old 01-31-2002, 05:06 PM   #4
Species8472
LQ Newbie
 
Registered: Jan 2002
Posts: 2

Rep: Reputation: 0
Look out! Some seem to have an almost religious respect for “root”. To even speak of such things can get you kicked from IRC or possibly banned. It happened to me 5 mins after my first boot into Linux. It’s almost a flame troll. I know there is a way but damn if I know how. I have searched usenet and found some stuff but the threads usually turn to flames. Here is what I found

It starts here:
http://groups.google.com/groups?hl=e...fi2p%404ax.com

A couple of ideas
http://groups.google.com/groups?hl=e...mlynarczyk.net

http://groups.google.com/groups?hl=e...r.ntlworld.com

I have not had any success. If you figure it out. Please post how you did it.
 
Old 01-31-2002, 05:50 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
why can you not just run your programs from a boot script like /etc/rc.local? it'll be executed with root perms but without logging in.
 
Old 01-31-2002, 06:02 PM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
You should do as acid says.


Is the program running in X?
 
Old 01-31-2002, 06:25 PM   #7
Hogweed
LQ Newbie
 
Registered: Jan 2002
Posts: 4

Original Poster
Rep: Reputation: 0
>>why can you not just run your programs from a boot script
>>like /etc/rc.local? it'll be executed with root perms but without
>>logging in.

I didn't know that I could do that. Thanks for the info.

Will that boot script execute the program without any login at all or does a user have to log in first?


>>Is the program running in X?

Nope.
 
Old 01-31-2002, 06:31 PM   #8
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Since it does not use X that eliminates the need for bringing up X on boot, and you can run your program from rc.local without anyone logging in.
 
Old 01-31-2002, 08:37 PM   #9
Malicious
Member
 
Registered: Jan 2002
Location: Galveston Island
Distribution: suse, redhat
Posts: 208

Rep: Reputation: 30
This is not exactly the way you asked this question in the programming forum, but here is the answer that I posted there.

To enable an "ordinary" user to run a program as root, that program must be owned by root and have suid permission set. Login as root and use the "chown" command to change the ownership of the program to root and then use the "chmod" command to set suid permission (chmod +s program-name). Now any user can execute this program and it will run with root as the user id. Now figure out when you want to run the program. The simplest solution to running a program at login would be to add the execution of the program to your login script in /etc/profile or whatever shell profile file you use.
 
Old 01-31-2002, 08:50 PM   #10
dj_relentless
Member
 
Registered: Jan 2002
Location: NZ, AKL
Distribution: Redhat 7.1
Posts: 168

Rep: Reputation: 30
Everytime I see it I always sit here wondering..but I still can't get acids signature..
 
Old 02-01-2002, 07:38 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
what's there to get? it's ripped of of salmondays.tv, some online computing sitcom type thingy. the sample avi's are quite funny, one where the office paperclip is standing next to this guy just goin "it's looks like you want to write a letter!" again and again until he mangles the clip to death... guess you had to be there...
 
  


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
Automatic login? Cooljerk Linux - Newbie 3 09-14-2005 04:52 PM
automatic login as root jagibbs Ubuntu 5 04-15-2005 07:15 PM
KDE: kmix no longer start automatic on login Yalla-One Linux - Software 2 11-27-2004 04:22 PM
automatic slit app start-blackbox -login killer_bunny Linux - Software 1 12-18-2003 05:29 PM
How to login as ROOT at start satimis Debian 8 12-15-2003 05:34 AM

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

All times are GMT -5. The time now is 07:28 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
Open Source Consulting | Domain Registration