LinuxQuestions.org
Help answer threads with 0 replies.
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 08-12-2014, 10:04 AM   #1
Changes
Member
 
Registered: Oct 2008
Posts: 189

Rep: Reputation: 16
Autologin as root but require password


In order to run a simple Windows restore script, I need a basic shell-only Debian install to autologin as root. I normally do this via mingetty, but I only know how to make that give a root prompt. This obviously presents the problem of someone initiating the restore without permission, or ctrl+c-ing the restore script before it's started and obtaining root access to the whole system, including user data.

What I'd like, instead, is for the shell to initiate the root login, but request a password. Just as if the user had entered "root" at the login prompt, but without them actually having to do this.

How do I do this?

Last edited by Changes; 08-12-2014 at 10:12 AM.
 
Old 08-12-2014, 10:23 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 5,387

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
If someone is able to boot to your restore script that means he has physicall acess, no? If yes, don't you think he could be also able to boot at init level 1 which gives root access without password?
 
Old 08-12-2014, 10:28 AM   #3
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
i dont see how sudo wouldnt work here.

what i would do is sudo dd if=/dev/windows.iso of=/dev/sda1
 
Old 08-12-2014, 11:51 AM   #4
Changes
Member
 
Registered: Oct 2008
Posts: 189

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by schneidz View Post
i dont see how sudo wouldnt work here.

what i would do is sudo dd if=/dev/windows.iso of=/dev/sda1
I'll do this next time, but the setup I'm working now is already set up to do everything as root, so I'd like to do it my way this last time.
 
  


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
[SOLVED] OpenSSH: require both, Password and RSA-Key for root-login didi86 Linux - Security 8 05-14-2014 06:24 AM
acpi script to change LED requires root and I need to make it not require root. Sidicas Linux - Laptop and Netbook 1 02-01-2013 12:07 AM
How to execute shell commands that require root password from PHP ? newbie_0404 Linux - Software 2 06-27-2010 09:16 AM
HowTo "su aUser" as root and not require a password racoco Solaris / OpenSolaris 4 04-17-2010 03:24 PM
Why does kppp.desktop require root userid for non-root user? rdaves@earthlink.net Linux - Networking 4 08-27-2001 10:18 AM


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