Register FAQ/Rules Forum Spy Search Today's Posts Mark Forums Read

Welcome to the Mac Forums forums. Please read the FAQ if you have questions. Register to participate.

 
Go Back   Mac Forums > Apple Software > Mac OS X Forums > Mac OS X
TouchArcade.com - iPhone Game Reviews and News

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 16, 2006, 11:52 AM   #1
bagleyb
macrumors member
 
Join Date: Dec 2005
Remote reboot via SSH?

I had a video project I was working on, and was going to VNC into my Mac from work so I could render the DVD while out.

I connected to it, but then VNC crapped out. It's not responding anymore, but I can still SSH to it. Everything is saved, so I'd like to reboot it remotely.

When I SSH to it, I login as my admin (only actually) account. I execute 'shutdown -r now' but it gives me a message that I'm not a super-user. I then executed 'su' and supply my password, and it replies with su: Sorry.

Is there another way to reboot it remotely, or restart the VNC service?
bagleyb is offline   Reply With Quote
Old Nov 16, 2006, 12:13 PM   #2
jhu
macrumors 6502a
 
jhu's Avatar
 
Join Date: Apr 2004
interesting. is the root account enabled? if not, that would explain why su isn't working. you should try 'sudo shutdown -r now' and see if that works. however, i've had the mac os gui not be able to load afterwards after executing this command (although i could still ssh into the machine). there's an applescript that reboots the computer correctly, but it's eluding me at the moment.
__________________
athlon 64 :: debian 4.0
pentium 3 :: debian 4.0
bcm5352 :: openwrt rc4
powerpc750 :: mac os x 10.4.8
powerpc603 :: netbsd 3.1
jhu is offline   Reply With Quote
Old Nov 16, 2006, 12:19 PM   #3
trainguy77
Contributor
 
trainguy77's Avatar
 
Join Date: Nov 2003
Send a message via AIM to trainguy77 Send a message via MSN to trainguy77 Send a message via Yahoo to trainguy77
I don't have access to a X machine but will "init 6" work? I don't know if that would work as I have never tried it on X but thats how I restart my fedora box from home.
__________________
Mac Pro 2.66 ghz Quad, Viewsonic 24" and 20" 7GB RAM; 30gb iPod Video; iPhone 3GS 32GB white
trainguy77 is online now   Reply With Quote
Old Nov 16, 2006, 12:26 PM   #4
bagleyb
Thread Starter
macrumors member
 
Join Date: Dec 2005
Unfortunately, I'm a Mac newbie, and I'm not quite sure where either of those files are located. I'm executing them from the bash I get when I ssh in.

The init command only returns a file not found error. The sudo command gives me a message about a lecture from a Sys Admin, and then the 3 things they should have told me. It then prompts me for a password, then gives me a command not found.

It's not that big of a deal, I'll just start it tonight before I go to bed.
bagleyb is offline   Reply With Quote
Old Nov 16, 2006, 05:50 PM   #5
trainguy77
Contributor
 
trainguy77's Avatar
 
Join Date: Nov 2003
Send a message via AIM to trainguy77 Send a message via MSN to trainguy77 Send a message via Yahoo to trainguy77
Quote:
Originally Posted by bagleyb View Post
Unfortunately, I'm a Mac newbie, and I'm not quite sure where either of those files are located. I'm executing them from the bash I get when I ssh in.

The init command only returns a file not found error. The sudo command gives me a message about a lecture from a Sys Admin, and then the 3 things they should have told me. It then prompts me for a password, then gives me a command not found.

It's not that big of a deal, I'll just start it tonight before I go to bed.
Yeah I guess init 6 does not work in mac OS X it was just a guess. But yeah you would type it in terminal if it did work.
__________________
Mac Pro 2.66 ghz Quad, Viewsonic 24" and 20" 7GB RAM; 30gb iPod Video; iPhone 3GS 32GB white
trainguy77 is online now   Reply With Quote
Old Nov 16, 2006, 05:55 PM   #6
jeremy.king
macrumors 601
 
jeremy.king's Avatar
 
Join Date: Jul 2002
Location: Fox Lake, IL
don't su...instead sudo

sudo shutdown -r now
jeremy.king is offline   Reply With Quote
Old Nov 16, 2006, 09:03 PM   #7
jhu
macrumors 6502a
 
jhu's Avatar
 
Join Date: Apr 2004
Quote:
Originally Posted by bagleyb View Post
Unfortunately, I'm a Mac newbie, and I'm not quite sure where either of those files are located. I'm executing them from the bash I get when I ssh in.

The init command only returns a file not found error. The sudo command gives me a message about a lecture from a Sys Admin, and then the 3 things they should have told me. It then prompts me for a password, then gives me a command not found.

It's not that big of a deal, I'll just start it tonight before I go to bed.
sounds like your account isn't an administrator account. is this your computer or a work computer?
__________________
athlon 64 :: debian 4.0
pentium 3 :: debian 4.0
bcm5352 :: openwrt rc4
powerpc750 :: mac os x 10.4.8
powerpc603 :: netbsd 3.1
jhu is offline   Reply With Quote

Reply

Mac Forums > Apple Software > Mac OS X Forums > Mac OS X

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 06:07 PM.

Mac News | Mac Rumors | iPhone Game Reviews | iPhone Apps

Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 2002-2009, MacRumors.com, LLC