Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 03-23-2005, 02:30 PM   #1 (permalink)
 
Monster Techie

Join Date: Apr 2004

Posts: 1,574

m3trj

Default Shutdown Problem

OK well it's not an ordinary shutdown problem.

Basically when my computer is on and I'm not in and my mum or dad want to go out for a bit they turn off the computers, except they can't shut mine down properly because they have to log in to shut it down (as far as I know). So instead they switch it off at the wall socket every time.

So far this hasn't caused any noticable problems, although when I start it it says it's fixing errors and stuff. I'm using ext2 file system.

Is there a way I can create a user that is just allowed to shut the system down? Or Linux be shut down without a password?

Thanks in advance.
__________________


\'There is only one basic human right, and that is to do as you **** well please.
And with it comes the only basic human duty, to take the consequences.\'



m3trj is offline  
Old 03-23-2005, 07:39 PM   #2 (permalink)
 
Master Techie

Join Date: Apr 2004

Posts: 2,534

horndude is on a distinguished road

Default

try adding a regular user to the sys line in /etc/group, may need to change the permissions on /bin/shutdown or wherever it is=====chmod u+s /bin/shutdown

make that point to the actual location of the shutdown program, that will make it run suid root, change /etc/group first and check to see if that works first
horndude is offline  
Old 03-25-2005, 10:11 PM   #3 (permalink)
 
Junior Techie

Join Date: Jan 2005

Posts: 94

charles@pcfix

Default

If you are logged into X-Windows system. Your folks should be able to hit ctrl+alt+del this is set is /etc/innittab
__________________
Charles

Visit my Site
http://www.pc-fix.info
charles@pcfix is offline  
Old 03-25-2005, 11:11 PM   #4 (permalink)
 
Master Techie

Join Date: Apr 2004

Posts: 2,534

horndude is on a distinguished road

Default

negative ctr-alt-del doesnt do anything at all, its a safeguard,at least on my system
horndude is offline  
Old 03-25-2005, 11:36 PM   #5 (permalink)
 
Junior Techie

Join Date: Jan 2005

Posts: 94

charles@pcfix

Default

I run red hat 9 and all versions of redhat that I have ever run this comand will reboot or shutdown depending on how you edit the code in /etc/inittab

add this line into /etc/inittab
ca::ctrlaltdel:/sbin/shutdown -h now

Horndude I know you are a slackware guy so I'm going to start up my slax box and see it this works with it. I'm not sure. It should but I've never tryed it.
__________________
Charles

Visit my Site
http://www.pc-fix.info
charles@pcfix is offline  
Old 03-26-2005, 01:07 AM   #6 (permalink)
 
Master Techie

Join Date: Apr 2004

Posts: 2,534

horndude is on a distinguished road

Default

mine has that line, but the keybindings to it dont work under X, only in console, crtl=alt-backspace kills X though
horndude is offline  
 
Closed Thread

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On