Re: Poweroff Re: Re: Solved Re: Zombie desktop artifact

Akkana Peck <[email protected]>
Newsgroups gmane.org.user-groups.linux.nmglug
Message-ID <[email protected]>
Jonathan Haack writes:
> "toma@debian10kdeHPnb:~$ shutdown -r now
> bash: shutdown: command not found"
> 
> You need to run as "sudo" as it is not in your PATH for user: tom

It's not the path -- it's easy enough to put /sbin in your path, or
just type /sbin/shutdown -- but you need root permission to do
things that affect the state of the system.

It's also possible that you need to install the package
"systemd-sysv" -- at least on my Debian, that's the package that
installs shutdown, halt, poweroff etc. (apt-file is great for
finding things like that: install apt-file, run a sudo apt-file update,
then you can run commands like apt-file poweroff, and it will tell
you which package provides a file by that name.

        ...Akkana
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.