The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-17-2007
srikanthus2002's Avatar
srikanthus2002 srikanthus2002 is offline
Registered User
  
 

Join Date: Sep 2006
Location: Can u guess...!
Posts: 160
series of programes which are to be executed in other user's permissions

I have series of programe which are to be executed in other user's permissions.

ex :
1. Two programes : programe1 and programe2.
2. Logged into the server as a user say "sri"
3. If I execute the programes system shows with "sri" owner.

sri ohter programe1
sri other programe2

4. I have sudo permissions, if I run with sudo system shows "root"

5. But i want to take the permission as "kanth" (which is other user)

can i user any command like "su" with parameter

Any help would be greatly appreciated.