#786376 needrestart-session: sudo needrestart-session gives false notification

#786376#5
Date:
2015-05-21 04:49:26 UTC
From:
To:
Dear Maintainer,

Unfortunately I run needrestart-session under a sudo root terminal and I obtain
a panel wich says "None of your processes need to be restarted" and the
notification "Relogin or restart required!"

If I do sudo needrestart-session I obtain the same result.

I agree it's a minor bug because if I do "needrestart-session" it works well.

With my best regards

François

#786376#14
Date:
2015-05-22 00:20:25 UTC
From:
To:
severity 786376 minor
tags 786376 upstream
thanks

Hi,

needrestart-session is not intended to be run as root. This won't work
since needrestart does not switch to the required user mode (which
reports obsolete session binaries) while run as root.

The notification should be OK if your X-Session runs obsolete binaries.
The sudo root inside your x-terminal runs it's own session.
(X-)session sounds not that usefull. Maybe needrestart-session should
just complain and exit if it is run as root?


HTH & Thanks,
Thomas
----------------------------------------------------------------------- Dipl.-Ing. Thomas Liske Netzwerk- und System-Design IBH IT-Service GmbH Amtsgericht Dresden Gostritzer Str. 67a HRB 13626 D-01217 Dresden GF: Prof. Dr. Thomas Horn Germany VAT DE182302907 ----------------------------------------------------------------------- Ihr Partner für: LAN, WAN IP-Quality, Security, VoIP, SAN, Backup, USV ----------------------------------------------------------------------- professioneller IT-Service - kompetent und zuverlässig -----------------------------------------------------------------------