Either way you do it, "getting around" those permission is going to be a security risk.
You could provide the passwd in the script but all soembody needs to do is stumble
across
teh script and now they have root access.
Or you could change the permissions in the correct places to allow certain writes to be
allowed by a basic user and now somebody doesn't even need root access to your box.
But, if you write your script, as they would need to be done as the root user, then log
into the root and execute the command, you can go on from there. Or have a scrip that
will
prompt you for the root passwd while it's running. That's what I've done for a few of
my
scripts. It does everything it needs to do, but in the middle of script it asks me
for the
root passwd. So that's a suggestion.
tdh
--
T. Holmes
-----------------
UNIXTECHS.org
[EMAIL PROTECTED]
-----------------
"Real Men Us Vi!"
Uptime:
--------------------------------------------------------------------
9:53AM up 8 days, 23:46, 9 users, load averages: 0.06, 0.03, 0.00
--------------------------------------------------------------------
| Dear List,
|
| Thank you all for your replies. I must admit, that I was not very clear with
| my question. I knew all about the command "su" and groups and all, but I
| just wanted to know, a quick way of getting around the "permissions".
|
| Anyhow, thankyou all again.
|
| Regards,
|
| Thomas Adam
|
|
| Please note that the content of this message is confidential between the original
|sender and the intended recipient(s) of the message. If you are not an intended
|recipient and/or have received this message in error, kindly disregard the content of
|the message and return it to the original sender.
|
| If you have any complaints about this message please reply to:
| [EMAIL PROTECTED]
|
| The Purbeck School E-Mail server running:
| users.purbeck.dorset.sch.uk
|
|
------------------------------------------------------------------