[Tfug] Running logout scripts as root?

Matthew T. Eskes meskes at gmail.com
Sun Aug 10 17:01:09 MST 2008


Run the script SUID? Maybe with a deamon and wrapper. That's about the only
thing I can think of at the moment.

 

  _____  

From: tfug-bounces at tfug.org [mailto:tfug-bounces at tfug.org] On Behalf Of
Christopher Robbins
Sent: Saturday, August 09, 2008 3:38 PM
To: Tucson Free Unix Group
Subject: [Tfug] Running logout scripts as root?

 

I've got a logout script that I've written...It connects to a SMB file
share (via mount-cifs) and then uses rsync to sync the directories.
I'm using this as a way for my users to access their files offsite - they
connect to the SSH server, copy files, then when they logout, we sync
their file shares to this SSH server.   

Problem is...one needs to be root to run mount.  Aside from adding
my list of users to sudoers or giving everyone access to mount, is there
an easy way to have the script executed as root?    

TIA

    -  Chris

-- 
Chris Robbins
Systems Programmer
Department of English - University of Arizona
http://www.homerengineeringcorp.net

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tfug.org/pipermail/tfug_tfug.org/attachments/20080810/c7ea6a36/attachment-0002.html>


More information about the tfug mailing list