Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot Issue A REBOOT

Status
Not open for further replies.

SATMPOWER

Technical User
Jan 27, 2005
17
GR
My "user" cannot issue a "init 0" or "init 6" I have to be logged in as "root" to do that!
Can I Fix this? Can I shut down or reboot my system as "thatuser"?
 
man su

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
If "su" doesn't do the trick, you can setup the "asroot" function. It's kind of odd getting all the pieces together, but eventually allows you to specify certain executables a user may run using "root" equivalency. It's pretty common to do this to allow users to perform NFS mounts and dismounts. I haven't used it to reboot (or shutdown), but that should be possible as well.
 
Thanks for your answers...
I tryed the su but it doesn't work.
From within scoadmin I gave every possible privilege and authorization to the "user" but...nothing!
I sorry to bother you with simple questions but I am very new to SCO and Unix in general.
When I login as root I get the # prompt, but when i login as any other user I get the $ prompt....What is the difference?
 
The different prompt is just SCO's way to let you know if you have "root" priviledges or not. Try using the "asroot" option.

# man asroot

The MAN entry provides fairly good documentation on how to set this up on your system.

Another way to would be to grant that user full "root" priviledges (in fact, full "root" equivalency) by setting the user ID to "0" after the user is created. I don't know if that would accomplish your goal, but it wouldn't be recommended in general situations for security reasons.
 
Thanks..."asroot" did the job I wanted.
I gave the "shutdown" with an "-y" parameter in order to avoid confirmations.
The shutdown commences after 60seconds which is the default and the minimum...I think. Can I reduce that time to less than 60 secs?
 
for no prompts and autorestart
init 6

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
init -> only root can run init or telinit

shutdown -> Only root can run the shutdown command directly. A user possessing the shutdown subsystem authorization can shut down the system using the asroot command:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top