LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-27-2007, 06:37 AM   #1
cyrulo
LQ Newbie
 
Registered: Feb 2007
Posts: 2

Rep: Reputation: 0
enable password for single user mode


I've found that to enable a root password for SUM i have to add the following line to my /etc/inittab file:

~~:S:wait:/sbin/sulogin

my question is why, and what for the id field is ~~, does it mean something ??

will be thankfull for any answer
 
Old 02-27-2007, 09:04 AM   #2
live_dont_exist
Member
 
Registered: Aug 2004
Location: India
Distribution: Redhat 9.0,FC3,FC5,FC10
Posts: 257

Rep: Reputation: 30
I'm not sure what the ~~ signs mean but /sbin/sulogin invokes a shell. Try running /sbin/sulogin in your normal Linux session. You'll notice it pops up with a user/password prompt.

So by adding these lines into inittab you cause a prompt to pop up asking you for a password.

I think this is the reason it asks you for a password.

Cheers
Arvind
 
Old 02-27-2007, 09:17 AM   #3
cyrulo
LQ Newbie
 
Registered: Feb 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by live_dont_exist
I'm not sure what the ~~ signs mean but /sbin/sulogin invokes a shell. Try running /sbin/sulogin in your normal Linux session. You'll notice it pops up with a user/password prompt.

So by adding these lines into inittab you cause a prompt to pop up asking you for a password.

I think this is the reason it asks you for a password.

Cheers
Arvind
Thanks for your reply, but that is what I know already,
it is as You said adding these lines into inittab causes a prompt to pop up asking for a root password while starting SUM and because of :wait: option init won't go further unless you give a proper root password.

But my concerns are about strange ~~ in the id field, are they reserved for special something or what ??

appologise me being inquisitive, but willing to be so makes man know more
 
Old 02-28-2007, 12:14 AM   #4
live_dont_exist
Member
 
Registered: Aug 2004
Location: India
Distribution: Redhat 9.0,FC3,FC5,FC10
Posts: 257

Rep: Reputation: 30
Quote:
Originally Posted by cyrulo
appologise me being inquisitive, but willing to be so makes man know more
Absolutely...go ahead and ask all you want . Well , I wasnt sure myself so I looked up some stuff online and as you already mentioned the ~~ stands for id .

Here's what I found out:
Code:
the /etc/inittab file has the following format:

identifier:runlevels:actiontype:command

`identifier' is a unique identifier, from 1 to 4 characters. Make sure you don't use duplicate identifiers in your file. The identifier has no bearing on how init works; the names don't have to mean anything.
So from what I understand from this, it wouldnt matter if you changed the ~~ to XX as long as that was the only line in /etc/inittab with XX . Makes sense??

I havent yet tried it out. Maybe you'd want to back up your /etc/inittab file, change the ~~ to XX and then log in to SUM and see if everything still works okay.

Hope this helps a bit. If I try it out at home tonight after work I'll post back. Do post back if you try it out earlier.

Cheers
Arvind
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
password for single user mode V Naveen Linux - General 1 11-24-2006 05:27 AM
Single User Mode password question johnny06 Linux - Security 1 09-05-2006 09:59 AM
How do I enable remote access for single-user mode? wired Linux - Newbie 1 02-27-2006 04:37 PM
Slackware's Single User Mode requires root password too? StevenO Slackware 2 01-25-2006 08:28 PM
Password Recovery and Single User mode natso Linux - Newbie 4 05-28-2002 04:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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