[NCLUG] Need to write to non-owned file
bob at proulx.com
Mon May 14 13:36:15 MDT 2007
bsimpson at att.net wrote:
> > Instead, you're probably better off spawning a copy of su/sudo/login
> > (possibly within a spawned xterm etc. if it's a GUI app) and having that
> > prompt the user for the password, and running a command to write/edit
> > the file.
> That might be the way to go...
Check out the 'sudoedit' command. It might be enough for everything
that you need it to do.
More information about the NCLUG