On Mon, 2013-12-09 at 15:34 +0200, Lars Noodén wrote:
> On 12/09/2013 03:30 PM, Ralf Mardorf wrote:
> > On Mon, 2013-12-09 at 14:48 +0200, Lars Noodén wrote:
> >> If you want it shut down regardless of the outcome of apt, then this
> >> should do it:
> >>
> >>         sudo apt-get upgrade; sudo shutdown -h now
> > 
> > Wrong, if the upgrade should take to long, then you need to type the
> > password after the upgrade. Better run
> > 
> > $ sudo -i
> > # apt-get update ; apt-get upgrade ; shutdown -h now
> > 
> > Regards,
> > Ralf
> 
> It depends on how you have sudoers configured.  On some systems certain
> combinations of programs+options need no password.  It's up to the
> sysadmin and the users.

That's correct, but the default for most distros usually is to have a
timeout for  sudo command , but not for  sudo -i . As already pointed
out, you also can give su a timeout, IIRC it's possible to have a
timeout only if the computer is idle, as long as something happens the
timeout won't start.



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1386596325.14806.112.camel@archlinux

Reply via email to