[sudo-users] Feature request - chdir option
Michael Hill
michael at mhill.net
Tue Oct 18 16:04:42 EDT 2005
On Tue, Oct 18, 2005 at 11:58:37AM -0700, Ladner, Eric (Eric.Ladner) wrote:
>Ah.. I understand the issue and feel your pain. I've ran into that one
>with poorly written vendor scripts (where do all the good script writers
>work??)
Unfortunately, I have to say they're not all being employed by the large
blue company. :^/
>In the past, I've solved this with something like this:
>
>file: upgrade.sh-----
>#!/bin/ksh
> cd /foo/bar/dir
> ./custom_vendor-supplied_program
> ./yada_yada_yada
> ./and_so_forth
>--------
>
>sudo ./upgrade.sh
>
>But, I realize that that also doesn't always work. I can see where the
>-C option (a la tar) would be helpful.
You're right, workarounds *are* possible... However, it might prove
difficult to enable them to execute the script but not to alter it; and
in that case, I'm still faced with intervening every time they come
across a situation that I have to script for them.
It sounds like we're in agreement: sudo isn't broken without this
feature, but it *would* be nice to have. :^) Thanks for your comments.
--
--Michael
-------------------------------------------------------------------------------
Michael Hill <>< Isaiah 9:6 |
michael AT mhill DOT net | http://federalistpatriot.us/news/sorry.asp
Aerospace/Software Engineer |
http://www.qadas.com/~msh/ |
---In a marketplace (like the one of ideas), not everything has equal value!---
Did you ever notice that everybody in favor of abortion has already been born?!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: </pipermail/sudo-users/attachments/20051018/47133388/attachment.bin>
More information about the sudo-users
mailing list