[Freedombox-discuss] rebooting system from ssh

fsdu39d at protonmail.com fsdu39d at protonmail.com
Sat Jan 4 21:20:59 GMT 2020


that's because sudo adds /sbin and /usr/sbin to PATH env variable.

Sent from ProtonMail mobile

-------- Original Message --------
On Jan. 3, 2020, 22:15, Nicholas Greensmith via Freedombox-discuss wrote:

> Thanks guys!
>
> Out of curiosity though what's the reason behind command not found when called without sudo? I would have expected 'permission denied'.
>
> Regards,
>
> Nicholas Greensmith
>
> Sent with ProtonMail Secure Email.
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> On Friday, January 3, 2020 11:42 PM, Sunil Mohan Adapa <sunil at medhas.org> wrote:
>
>> On 03/01/20 7:06 am, Nicholas Greensmith via Freedombox-discuss wrote:
>>
>> > Hey all,
>> > This is a pretty dumb question but I can't seem to find a command like
>> > reboot or shutdown when ssh-ing into my freedombox...
>>
>> Usually:
>>
>> sudo reboot
>> sudo shutdown
>> sudo systemctl reboot
>> sudo systemctl poweroff
>>
>> More systemd commands:
>>
>> systemctl --help
>>
>> ------------------------------------------------------------------------------------------------------------------------------
>>
>> Sunil
>
> _______________________________________________
> Freedombox-discuss mailing list
> Freedombox-discuss at alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/freedombox-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/freedombox-discuss/attachments/20200104/87e6b82a/attachment.html>


More information about the Freedombox-discuss mailing list