Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
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
It is sorta covered in the
JavaRanch Style Guide
subject: Script to change User to root
updating ejb module by scripting problems
shell script problems
Not able to create textFile in server using php - urgent
how to validate
check UID with Java
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013