I have a script that runs as 'root' since it is one script that processes files for all users. It is driven by a configuration file that includes 'process as' userids.
Frequently I need to execute certain portions of the code (e.g that creates files / directories) with the user's permission. I am not sure how to do this in perl. Currently I am doing something like: my $rc = `su -c - $user 'mv $source $dest'` I am not sure if it is the right way to do it. The script works fine and I am happy but is it a good practice? __________________________________________ Ranga Nathan / CSG Systems Programmer - Specialist; Technical Services; BAX Global Inc. Irvine-California Tel: 714-442-7591 Fax: 714-442-2840 _______________________________________________ Boston-pm mailing list [email protected] http://mail.pm.org/mailman/listinfo/boston-pm

