|
|
| Welcome to the Mac Forums forums. Please read the FAQ if you have questions. Register to participate. |
|
|||||||
| TouchArcade.com - iPhone Game Reviews and News |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
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? |
|
|
|
|
|
#2 |
|
macrumors 6502a
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 |
|
|
|
|
|
#3 |
|
Contributor
|
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 |
| View Public Profile |
| Find More Posts by trainguy77 |
|
|
#4 |
|
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. |
|
|
|
|
|
#5 | |
|
Contributor
|
Quote:
__________________
Mac Pro 2.66 ghz Quad, Viewsonic 24" and 20" 7GB RAM; 30gb iPod Video; iPhone 3GS 32GB white |
|
|
|
|
| trainguy77 |
| View Public Profile |
| Find More Posts by trainguy77 |
|
|
#6 |
|
macrumors 601
Join Date: Jul 2002
Location: Fox Lake, IL
|
don't su...instead sudo
sudo shutdown -r now
__________________
|
|
|
|
|
|
#7 | |
|
macrumors 6502a
Join Date: Apr 2004
|
Quote:
__________________
athlon 64 :: debian 4.0 pentium 3 :: debian 4.0 bcm5352 :: openwrt rc4 powerpc750 :: mac os x 10.4.8 powerpc603 :: netbsd 3.1 |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|