Shutdown from command line

Questions about other topics & discussing non-support related topics related to LMDE 2.
Forum rules
Before you post please read how to get help
User avatar
MintyO
Level 4
Level 4
Posts: 459
Joined: Mon Apr 11, 2011 2:54 pm

Shutdown from command line

Postby MintyO » Wed Jan 18, 2017 10:17 am

I use Mint (main edition with cinnamon and xfce and debian with cinnamon) as my main system and one important property to have is timed shutdown if (and when) I fall asleep when the computer is on. I have just been using "shutdown -h mins" under the impression that it's just about the same as going to the menu and clicking the shutdown option. So my questions are: why do I have to do "sudo shutdown ..." in debian when plain "shutdown..." is enough on the main edition side, and what (if anything) is different when using command to shutdown as opposed to clicking a shutdown button with a mouse. If someone happens to have answers I'd appreciate it. Not really a problem, but just curious.

-O
Ducks on the edge sleep with one eye open.

User avatar
Flemur
Level 13
Level 13
Posts: 4638
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Shutdown from command line

Postby Flemur » Wed Jan 18, 2017 10:32 am

MintyO wrote:If someone happens to have answers I'd appreciate it. Not really a problem, but just curious.

I always thought it was a goofy policy; I usually do chmod u+s /sbin/shutdown so regular users can run it, but there's more:
http://how-to.wikia.com/wiki/How_to_all ... r_in_Linux
Mint 18.3 Xfce/fluxbox/pulse-less
Xubuntu 17.10/fluxbox/pulse-less
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?

User avatar
MintyO
Level 4
Level 4
Posts: 459
Joined: Mon Apr 11, 2011 2:54 pm

Re: Shutdown from command line

Postby MintyO » Fri Jan 20, 2017 6:50 pm

Yeah, I kinda thought the answer was in the line of "debian style policy". Thanks for the info, now I know how if I feel like changing it. I also did some reading on what happens when you shut down a computer, but didn't go down too deep into that rabbit hole. That's mostly the reason I ended my brief experiment with Debian as a daily OS and came back to "minty debian": I didn't want every little change I wanted to make end up taking hours of reading and learning (because I usually don't do something if I don't have some kind of understanding about what it is I'm doing).
Ducks on the edge sleep with one eye open.


Return to “Other Topics & Open Discussion”