LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-14-2003, 12:54 PM   #1
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
Shuting down when you're not root.


My Debian desktop won't let me shutdown - h now unless I first logon as root. This is irritating.

There is a simple way round the problem: go to /etc/inittab ??, anyway the basic init file, and, among the first 20 lines or so, there is a line about what to do when ALT-UpArrow is pressed. By default it just echos a message to the monitor. Replace this command with shutdown and any user may shut down by pressing alt-uparrow.

Of course anything could be put there. (With the qualification that it would have to be quite short to fit inside the permitted field, at least on my system.)

A small thing but irritation saving. And perhaps useful during meltdowns.
 
Old 10-14-2003, 01:02 PM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Try using the sudo command.
 
Old 10-15-2003, 12:25 PM   #3
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215

Original Poster
Blog Entries: 2

Rep: Reputation: 49
Talking

Then what would you suggest for the alt-uparrow? Nothing anatomical.
 
Old 10-15-2003, 02:24 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
//note to self... READ posts before replying...

Last edited by acid_kewpie; 10-15-2003 at 02:25 PM.
 
Old 10-16-2003, 12:47 PM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by acid_kewpie
//note to self... READ posts before replying...
Also, note to self, Think about the forum your posting in before making a post. This is not a success story, moving to Linux - General where its more suitable.

Regards.
 
Old 10-16-2003, 01:09 PM   #6
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215

Original Poster
Blog Entries: 2

Rep: Reputation: 49
I'm bloody mystified.
 
Old 10-16-2003, 01:13 PM   #7
chup
Member
 
Registered: Aug 2003
Location: South Africa
Distribution: Ubuntu (Feisty)
Posts: 280

Rep: Reputation: 31
Quote:
Originally posted by lugoteehalt
I'm bloody mystified.
check this thread

[edit] hmm, i also need to note to myself: read posts _thoroughly_ before answering

Last edited by chup; 10-16-2003 at 01:14 PM.
 
Old 10-21-2003, 11:58 PM   #8
Onemessedupjedi
Member
 
Registered: Sep 2003
Location: Oregon
Distribution: Slackware 9.1
Posts: 194

Rep: Reputation: 30
Quote:
A small thing but irritation saving. And perhaps useful during meltdowns.
.....there is a reason there is a removable power cord
 
Old 10-22-2003, 03:00 AM   #9
coolamit78
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RHEL AS 3/4, Windows XP
Posts: 546

Rep: Reputation: 31
There's a wealth of shutdown commands in linux ...However, commands like shutdown are available only to the root.

As a normal user, you can use 'halt' to switch off the computer. You can also check if the command 'poweroff' works as user.

I think you might already know all these commands, however, just in case you don't...I've given a pointer.

Regards,

amit
 
Old 10-22-2003, 04:41 AM   #10
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215

Original Poster
Blog Entries: 2

Rep: Reputation: 49
No I'd never heard of halt and poweroff, thanks. Anyway thanks all.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ACPI shuting down when should be waking up navarre9 Linux - General 1 12-25-2005 02:18 AM
Menu for shuting down and rebooting landuchi Linux - General 12 11-26-2004 09:44 AM
Help with shuting down my Mandrake Comp EagleEye Linux - Newbie 1 07-30-2004 05:13 PM
problems shuting down highhighs Mandriva 9 09-19-2003 12:12 AM
Shuting Down Redhat 7 Rycat Linux - General 5 04-27-2001 06:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration