Re: shudown

2018-10-27 Thread ToddAndMargo via users

On 10/26/18 8:49 AM, Joe Zeff wrote:

On 10/25/2018 10:09 PM, Todd Chester via users wrote:


    su root -c "/sbin/shutdown -h +70"


Specifying root in that line is redundant.


Indeed it is.  I do it anyway so that it is clear
what is happening.



___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: shudown

2018-10-26 Thread Rick Stevens
On 10/25/18 6:10 PM, Patrick Dupre wrote:
> 
>>
>> On 10/25/18 4:55 PM, Patrick Dupre wrote:
>>>  
>>> On Thu, Oct 25, 2018 at 10:40 AM Patrick Dupre >> > wrote:
>>>
>>> Hello,
>>>
>>> I do not understand this error message:
>>>  /sbin/shutdown -h +70
>>> Failed to set wall message, ignoring: Interactive authentication
>>> required.
>>> Failed to call ScheduleShutdown in logind, proceeding with immediate
>>> shutdown: Interactive authentication required.
>>>
>>>  
>>> Did you run it as root or with sudo?
>>>  
>>> In visudo, I have
>>> pdupre  localhost=/sbin/shutdown -h +70
>>
>> That wasn't the question. Did you "sudo /sbin/shutdown -h +70" or did
>> you simply run it as yourself ("/sbin/shutdown -h +70")?
>>
>> If the latter, you're not root (nor are you sudo'd to root). Both
>> wall messages to all users (the first message) and shutdown (the second
>> message) can only be done by someone with root privileges. If a normal
>> user tries either, they must authenticate and they must be members of
>> the "wheel" group (admins).
> 
> Really!!
> Here is my understanding.
> The setting of visudo also the user pdupre to run the line command without 
> being root.
> (just /sbin/shutdown -h 70)
> Actually, in 90% of the cases the line command works without complain, but 
> sometimes
> it does not work and I do not understand why.

No, lines in the sudoers file (which is what visudo edits) specify which
commands a user MAY use via "sudo ". It does confer root
privileges for that command automatically.

When you enter "sudo ", sudo checks the sudoers file to see if
you are permitted to run the command as root and if so, runs it as root
on your behalf.
--
- Rick Stevens, Systems Engineer, AllDigitalri...@alldigital.com -
- AIM/Skype: therps2ICQ: 226437340   Yahoo: origrps2 -
--
-Brain:  The organ with which we think that we think.-
--
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: shudown

2018-10-26 Thread Joe Zeff

On 10/25/2018 10:09 PM, Todd Chester via users wrote:


    su root -c "/sbin/shutdown -h +70"


Specifying root in that line is redundant.
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: shudown

2018-10-25 Thread Todd Chester via users



On 10/25/18 7:49 AM, Patrick Dupre wrote:

/sbin/shutdown -h +70


Hi Patrick,

1) open a command prompt (terminal)

2) run the following command:

   su root -c "/sbin/shutdown -h +70"

3) if it does not shutdown, please copy and paste what
   appeared after running the command.

-T
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: shudown

2018-10-25 Thread Cameron Simpson

On 26Oct2018 03:10, Patrick Dupre  wrote:

On 10/25/18 4:55 PM, Patrick Dupre wrote:
> On Thu, Oct 25, 2018 at 10:40 AM Patrick Dupre  > wrote:
> I do not understand this error message:
>  /sbin/shutdown -h +70
> Failed to set wall message, ignoring: Interactive authentication
> required.
> Failed to call ScheduleShutdown in logind, proceeding with immediate
> shutdown: Interactive authentication required.
>  
> Did you run it as root or with sudo?
>  
> In visudo, I have
> pdupre  localhost=/sbin/shutdown -h +70

That wasn't the question. Did you "sudo /sbin/shutdown -h +70" or did
you simply run it as yourself ("/sbin/shutdown -h +70")?

If the latter, you're not root (nor are you sudo'd to root). Both
wall messages to all users (the first message) and shutdown (the second
message) can only be done by someone with root privileges. If a normal
user tries either, they must authenticate and they must be members of
the "wheel" group (admins).


Really!!
Here is my understanding.
The setting of visudo also the user pdupre to run the line command without 
being root.
(just /sbin/shutdown -h 70)


This is incorrect. The visudo line says you may _use sudo_ to invoke 
shutdown as root.



Actually, in 90% of the cases the line command works without complain, but 
sometimes
it does not work and I do not understand why.


We'd need to see the complaint. But maybe shutdown itself has a list of 
users (probably via a group) who may run it? See "man shutdown" to find 
out. It should say.


Cheers,
Cameron Simpson 
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: shudown

2018-10-25 Thread Patrick Dupre

>
> On 10/25/18 4:55 PM, Patrick Dupre wrote:
> >  
> > On Thu, Oct 25, 2018 at 10:40 AM Patrick Dupre  > > wrote:
> > 
> > Hello,
> > 
> > I do not understand this error message:
> >  /sbin/shutdown -h +70
> > Failed to set wall message, ignoring: Interactive authentication
> > required.
> > Failed to call ScheduleShutdown in logind, proceeding with immediate
> > shutdown: Interactive authentication required.
> > 
> >  
> > Did you run it as root or with sudo?
> >  
> > In visudo, I have
> > pdupre  localhost=/sbin/shutdown -h +70
> 
> That wasn't the question. Did you "sudo /sbin/shutdown -h +70" or did
> you simply run it as yourself ("/sbin/shutdown -h +70")?
> 
> If the latter, you're not root (nor are you sudo'd to root). Both
> wall messages to all users (the first message) and shutdown (the second
> message) can only be done by someone with root privileges. If a normal
> user tries either, they must authenticate and they must be members of
> the "wheel" group (admins).

Really!!
Here is my understanding.
The setting of visudo also the user pdupre to run the line command without 
being root.
(just /sbin/shutdown -h 70)
Actually, in 90% of the cases the line command works without complain, but 
sometimes
it does not work and I do not understand why.
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: shudown

2018-10-25 Thread Rick Stevens
On 10/25/18 4:55 PM, Patrick Dupre wrote:
>  
> On Thu, Oct 25, 2018 at 10:40 AM Patrick Dupre  > wrote:
> 
> Hello,
> 
> I do not understand this error message:
>  /sbin/shutdown -h +70
> Failed to set wall message, ignoring: Interactive authentication
> required.
> Failed to call ScheduleShutdown in logind, proceeding with immediate
> shutdown: Interactive authentication required.
> 
>  
> Did you run it as root or with sudo?
>  
> In visudo, I have
> pdupre  localhost=/sbin/shutdown -h +70

That wasn't the question. Did you "sudo /sbin/shutdown -h +70" or did
you simply run it as yourself ("/sbin/shutdown -h +70")?

If the latter, you're not root (nor are you sudo'd to root). Both
wall messages to all users (the first message) and shutdown (the second
message) can only be done by someone with root privileges. If a normal
user tries either, they must authenticate and they must be members of
the "wheel" group (admins).
--
- Rick Stevens, Systems Engineer, AllDigitalri...@alldigital.com -
- AIM/Skype: therps2ICQ: 226437340   Yahoo: origrps2 -
--
-  Memory is the second thing to go, but I can't remember the first! -
--
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: shudown

2018-10-25 Thread Patrick Dupre
 



On Thu, Oct 25, 2018 at 10:40 AM Patrick Dupre  wrote:

Hello,

I do not understand this error message:
 /sbin/shutdown -h +70
Failed to set wall message, ignoring: Interactive authentication required.
Failed to call ScheduleShutdown in logind, proceeding with immediate shutdown: Interactive authentication required.

 

Did you run it as root or with sudo?

 

In visudo, I have

pdupre  localhost=/sbin/shutdown -h +70



___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: shudown

2018-10-25 Thread Richard Shaw
On Thu, Oct 25, 2018 at 10:40 AM Patrick Dupre  wrote:

> Hello,
>
> I do not understand this error message:
>  /sbin/shutdown -h +70
> Failed to set wall message, ignoring: Interactive authentication required.
> Failed to call ScheduleShutdown in logind, proceeding with immediate
> shutdown: Interactive authentication required.
>

Did you run it as root or with sudo?

Thanks,
Richard
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


shudown

2018-10-25 Thread Patrick Dupre
Hello,

I do not understand this error message:
 /sbin/shutdown -h +70
Failed to set wall message, ignoring: Interactive authentication required.
Failed to call ScheduleShutdown in logind, proceeding with immediate shutdown: 
Interactive authentication required.


===
 Patrick DUPRÉ | | email: pdu...@gmx.com
 Laboratoire de Physico-Chimie de l'Atmosphère | |
 Université du Littoral-Côte d'Opale   | |
 Tel.  (33)-(0)3 28 23 76 12   | | Fax: 03 28 65 82 44
 189A, avenue Maurice Schumann | | 59140 Dunkerque, France
===
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org