Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
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,635 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