LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] root problem

[ILUG] root problem

Dave Rynne dave at esat.net
Thu Jun 24 18:17:28 IST 1999


) 
) Interesting . . . the default setup does should not have any prompt for a
) root password for single user mode. 

Emmm... actually it does.

) I am interested in seeing your
) /etc/rc.d/init.d/single, /etc/inittab and /etc/rc.d/rc files.  

 From an RH 6.0 box (although this has been default behavior since
5.1 or 5.2 IIRC):

Last lines of /etc/rc.d/init.d/single
# Now go to the single user level.
echo "Telling INIT to go to single user mode."
exec init -t1 S

from the init man page...
      "Runlevel S or s bring the system to single user  mode  and
       do  not  require  an  /etc/initttab  file.  In single user
       mode, /sbin/sulogin is invoked on /dev/console."

And lastly from the sulogin man page...
      "sulogin  is  invoked  by init(8) when the system goes into
       single user mode (this is done through an entry  in  init-
       tab(5)).  Init  also  tries  to execute sulogin when it is
       passed the -b flag from the bootmonitor (eg, LILO).

       The user is prompted

            Give root password for system maintenance
            (or type Control-D for normal startup):"


) In the case
) you describe the alternative would be to use the init=/bin/bash hack or to
) use a boot floppy to mount the filesystem and change the /etc/passwd
) entry.
) 
) Eric
) 


Dave





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell