I just experimented with this situation myself. I logged into my server (which is keyboard and mouse and monitor less), and logged in as one of my ftp users.
I then typed su, entered in my root password, and then typed in shutdown -r now. The system rebooted itself properly, then when it was backup, I tried -h now and it shutdown fine. This is just a basic install, which has been updated to cooker (12/18). The user is part of the root group (don't ask. I realize this is insecure). but otherwise has nothing special attributed to him. The only thing I can think is are you disconnecting from the telnet session? I close all the windows as soon as I'm done sending the command. NB On Sun, 2001-12-30 at 22:19, Roger wrote: > Here is my tenet session going from Windows/me to Mandrake 8.1: > > ''' > ... > [roger@penguin roger]$ su > Password: > [root@penguin roger]# shutdown -h now > > Broadcast message from root (pts/0) Sun Dec 30 19:57:35 2001... > > The system is going down for system halt NOW !! > [root@penguin roger]# su roger > [roger@penguin roger]$ > ... > ''' > > I log on as myself (Linux doesn't allow me to log on directly as root), > do a su, then shutdown. The broadcast message appears, but I can > continue the using the session. I get the same results with the -hf > option. Last evening I tried for about 90 minutes before I finally > powered off the PC, so it had plenty of time to shutdown. > > I tried following some web-based advice to alter the /sbin/shutdown > privileges and ownership. As su, I think I did a > chmod 777 /sbin/shutdown > chown roger:roger /sbin/shutdown > but I get the same results. > > It is as if telnet users are somehow given a very low security level and > are not permitted to execute shutdown. > > Before I took off the monitor,mouse, and keyboard, I could start > vncserver and shut it down from another PC using the normal logout, then > select halt from the messagebox. But when I start vncserver from > telnet, I just get a logout confirmation box without the halt, reboot > options. I even tried starting vncserver as su, then tried to shutdown > -- same deal, the logout doesn't give me the halt or reboot options. > > I am obviously a newbie, is there some basic telnet authorization > procedure I missed? > > Roger > > > > Michael Viron wrote: > > >Did you type the command as root? If you aren't root, you can't shutdown > >the machine. I've had several times where I have issued the shutdown > >command via ssh as root, and had no problems (although it does > >occassionally take up to 5 minutes to fully shutdown). > > > >Michael > > > >-- > >Michael Viron > >Registered Linux User #81978 > >Senior Systems & Administration Consultant > >Web Spinners, University of West Florida > > > >At 04:27 PM 12/30/2001 -0700, you wrote: > > > >>Hi, > >> > >>I am trying to make an old PC into a keyboardless, mouseless, > >>monitorless server. It boots and starts up OK and I can access it from > >>telnet and vnc, but it refuses to shutdown. > >> > >>If I do a shutdown -h now from telnet, it broadcasts a message but > >>doesn't shutdown. On vnc, the logoff button doesn't show a halt or > >>reboot option. > >> > >>What are my options? > >> > >>TIA > >> > >>Roger > >> > >> > >>_________________________________________________________ > >>Do You Yahoo!? > >>Get your free @yahoo.com address at http://mail.yahoo.com > >> > >> > >>Want to buy your Pack or Services from MandrakeSoft? > >>Go to http://www.mandrakestore.com > >> > > > > > >------------------------------------------------------------------------ > > > >Want to buy your Pack or Services from MandrakeSoft? > >Go to http://www.mandrakestore.com > > > > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > ---- > > Want to buy your Pack or Services from MandrakeSoft? > Go to http://www.mandrakestore.com
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
