server rebooted

Hi,

I want to know how to find out which user has rebooted the server? I have used last command but it is not giving username though it is showing below output

reboot --------------- date

Regards,

Manoj

Reboots are documented in the errpt. You can be lucky and find with errpt -a which uid issued the reboot.

Thanks Zaxxon.

The reboot can only be issued by root, nobody else has that privilege. Therefore you will have to search for the last one who changed to root (via "su", etc.), this would be some evidence.

I hope this helps.

bakunin

reboot should work for everyone in the shutdown group too, since reboot hast root sticky bit set per default

Oops, funksen is right. I stand corrected. Usually (my experience), though, root is the only member in the shutdown group.

bakunin