On Friday 12 January 2007 00:37, jignesh gangani wrote:
> On 1/10/07, Tijnema ! <[EMAIL PROTECTED]> wrote:
> > I''m sorry for my second email, when using halt or shutdown -h it
> > doesn't give that message.
> >
> > Thanks barius.
> >
> > On 1/10/07, Tijnema ! <[EMAIL PROTECTED]> wrote:
> > > On 1/10/07, Barius Drubeck < [EMAIL PROTECTED]> wrote:
> > > > On Wednesday 10 January 2007 08:49, Tijnema ! wrote:
> > > > > Hi
> > > > >
> > > > > I have a (B)LFS system installed, and when i shutdown i get a
> > > >
> > > > message
> > > >
> > > > > like Enter root password or press Control-D to continue., so
> > > > > it doesn't matter if i type the root password, or press
> > > > > Control-D my pc doesn't shut down. Specs:
> > > >
> > > > [snip]
> > > >
> > > > > so, i have 2 quations, first how can i remove that message
> > > > > "Enter root password or press Control-D to continue"??
> > > > > and second, why doesn't my computer shutdown, rebooting is
> > > > > fine.
> > > >
> > > > What command are you using to shut down?
> > > >
> > > > The behaviour you describe is typical of bringing the system
> > > > down to single user mode, and the prompt message you describe
> > > > is issued by sulogin.
> > >
> > > So, where to remove it?
> > >
> > > If you just enter a command like "shutdown now" it will bring the
> > > system
> > >
> > > > down to single user mode give a behaviour like you describe. 
> > > > Since you
> > > > say rebooting is fine, you probably know to use the "-r" switch
> > > > to the shutdown command.  Well, to really shutdown the system,
> > > > you need to use
> > > > the "-h" (halt) switch.  You can also use the halt command
> > > > which will do a shutdown -h in the same way that reboot command
> > > > will do shutdown -r.
> > >
> > > I was just using shutdown now command to shut it down, i will try
> > > the -h option.
> > >
> > >
> > > --
> > >
> > > > Barius
> > > > --
> > > > http://linuxfromscratch.org/mailman/listinfo/blfs-support
> > > > FAQ: http://www.linuxfromscratch.org/blfs/faq.html
> > > > Unsubscribe: See the above information page
> >
> > --
> > http://linuxfromscratch.org/mailman/listinfo/blfs-support
> > FAQ: http://www.linuxfromscratch.org/blfs/faq.html
> > Unsubscribe: See the above information page
>
> I have the same problem. When I execute "shutdown now" I get
>
> Switching to run level 1.
> Please enter root password or press Ctrl+D to continue.

...because your user does not have permission to run 'shutdown'???
[EMAIL PROTECTED] $ ls -l /sbin/shutdown
-rwxr-xr-x 1 root root 18360 2006-08-18 04:40 shutdown

Assuming you have sudo installed...
echo '%users  ALL=NOPASSWD:/sbin/shutdown -h now' >> /etc/sudoers

will allow your users to execute /sbin/shutdown -h now. You need to give 
the path of the binary because the users $PATH does not include /sbin 
if you followed the lfs bootscripts.

>
> When I press Ctrl+D I get
>
> init: No more processes left on this level.
>
> If  I execute shutdown with any other switch e.g. -h or -H or -P I
> get the help of
> shutdown. If I combine the switch with "now" I get the same output as
> above. I can reboot using the reboot command.
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to