<<< Date Index >>>     <<< Thread Index >>>

Re: Changing temporarily to root?



On Sun, Jul 25, 2004 at 08:13:07PM -0400, orthodox@xxxxxxxxxx wrote:
> I know I can do this by logging out and logging back in as root, but I hope
> there's an easier way...
> 
> I need to attach a file in /var/log to a message in mutt.  I need root
> privileges to do it.  Is there some way to enable mutt to temporarily get
> root privileges to attach the file without having to go to the trouble of
> logging out, logging back on as root, sending the message as root or else
> making a copy of the file?
> 

You could add yourself to whatever group owns the log file. Often the
group has read access to the file, which is all you would need to attach
it.

cheers

dc

-- 
David Purton
dcpurton@xxxxxxxxxxxxxx
 
For the eyes of the LORD range throughout the earth to
strengthen those whose hearts are fully committed to him.
                                 2 Chronicles 16:9a

Attachment: signature.asc
Description: Digital signature