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 06-11-2011, 11:30 AM   #1
tilman1
Member
 
Registered: Mar 2007
Location: Stuttgart, Germany
Distribution: gentoo
Posts: 72

Rep: Reputation: 15
startup sequence without login


Hello

I have an embedded box on which I am developping a driver using a linux kernel. I frequently need to reboot it and relogin as root.

I wounder whether I can modify the boot sequence so that it directly boots into a bash belonging to user 'root'.

I know that this represents a security issue -- looking at my "use case" this is of concern.

Thanks

Tilman
 
Old 06-11-2011, 12:01 PM   #2
tilman1
Member
 
Registered: Mar 2007
Location: Stuttgart, Germany
Distribution: gentoo
Posts: 72

Original Poster
Rep: Reputation: 15
What I meant to write:

I know that this represents a security issue -- looking at my "use case" this is of no concern.
 
Old 06-12-2011, 01:18 AM   #3
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
Instead of running getty (or whatever other login manager you are using) on tty1 simply run bash.

If you give more details about the distro you are using we'd be able to give you more specific details about how to go about accomplishing that.
 
Old 06-12-2011, 03:03 PM   #4
tilman1
Member
 
Registered: Mar 2007
Location: Stuttgart, Germany
Distribution: gentoo
Posts: 72

Original Poster
Rep: Reputation: 15
I am using gentoo.

So how do I run bash from inittab and connect it to the tty ?

c1:12345:respawn:/bin/bash ?

Thanks
Tilman
 
Old 06-12-2011, 11:12 PM   #5
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 676

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by tilman1 View Post
I am using gentoo.

So how do I run bash from inittab and connect it to the tty ?

c1:12345:respawn:/bin/bash ?

Thanks
Tilman
Not tested (OK, tested loooooooooooooong ago)
Code:
c1:12345:respawn:/bin/bash < /dev/tty1 > /dev/tty1 2>&1
 
Old 06-12-2011, 11:24 PM   #6
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
Quote:
Originally Posted by tilman1 View Post
c1:12345:respawn:/bin/bash
Yep, that should do it. Just tried it on Arch to be sure.
 
Old 06-16-2011, 03:24 PM   #7
tilman1
Member
 
Registered: Mar 2007
Location: Stuttgart, Germany
Distribution: gentoo
Posts: 72

Original Poster
Rep: Reputation: 15
I just tried on the command line -- it works.

Thanks

Tilman
 
  


Reply

Tags
booting



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
rc.d startup/shutdown sequence G00fy Linux - General 3 08-21-2008 01:41 AM
can someone tell me the sequence of x startup ? nkd Linux - Newbie 9 10-20-2007 12:41 AM
chkconfig re-ordering startup sequence steevojb Linux - Server 1 11-10-2006 05:30 PM
gnome startup sequence n_hendrick Linux - General 0 12-08-2004 11:08 PM
Mandrake 9.1 Startup sequence... Ewen Linux - General 2 06-01-2003 12:13 AM

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

All times are GMT -5. The time now is 09:10 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