File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Linux / UNIX
Script to change User to root
Joined: Jan 17, 2002
Sep 01, 2010 20:44:05
I want to write a script called say test.sh that when i execute it it would change the user logged in to root
Please how do i accomplish this
Joined: Jun 25, 2001
Sep 02, 2010 06:10:07
More likely you just want to change the effective user ID. The "su" and "sudo" commands do that.
Customer surveys are for companies who didn't pay proper attention to begin with.
Joined: Aug 11, 2007
Sep 02, 2010 14:15:41
Using sudo is much less of a security hole than setting to root. You really should lookup and use sudo
I agree. Here's the link:
subject: Script to change User to root
how to validate
check UID with Java
shell script problems
Not able to create textFile in server using php - urgent
updating ejb module by scripting problems
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015