Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Linux 7.3


  • Please log in to reply

#1
matthewvogt

matthewvogt

    New Member

  • Member
  • Pip
  • 7 posts
I would like to create a user and password that when it's entered it loads /sbin/reboot to reboot the system.
There are 2 operating systems on the computer. I want users to be able to type in reboot in the user name, hit enter for the password, and then have the computer reboot that way they can pick with operating system they want to use. Can someone please help me. I've tried everything I can think of. I run linux 7.3 on the clients, but I run 9.0 on my server which is where the passwords are stored. If I have to do it on each individual client that's no problem. I have root set up on each client.
  • 0

Advertisements


#2
Kemasa

Kemasa

    Nobody

  • Technician
  • 1,735 posts
I am not sure of which distro of Linux you are running, but often there is the ability to allow a user to be able to reboot the machine, instead of logging out. You might look into that. It would typically be set in the control panel/system settings area (each distro is a bit different in this respect).

If you still want to do what you say, then you can create a passwd file entry with a uid of 0, with the "shell" being /sbin/reboot. I would strongly suggest that you have a password on it, even it is just "reboot", so as to ensure that you don't have the machine accidentally reboot.

Better than that though would be to use sudo to allow users to reboot the machine. You would want it so that they have to enter their password, but they would type "sudo reboot", then they would be asked for their password and the machine would reboot.
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP