Unix/Linux Go Back    

Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Script for another user

Shell Programming and Scripting

Thread Tools Search this Thread Display Modes
Old Unix and Linux 07-12-2013   -   Original Discussion by Junaid Subhani
Junaid Subhani Junaid Subhani is offline
Registered User
Join Date: Aug 2012
Last Activity: 2 August 2017, 11:39 AM EDT
Posts: 191
Thanks: 53
Thanked 2 Times in 2 Posts
Wrench Script for another user

Dear all,

I have two directories in /med/app/ :

drwxr-x---   7 fuse     staff       4.0K Jul 12 13:46 fuse
drwxr-xr-x  23 debmed   tabs         88K Jul 12 13:52 debmed

fuse & debmed are two separate users on the system.

I have a script in /med/appl/fuse/:

-rwxr-xr-x   1 fuse     staff        167 Jul 12 13:51 restartFuse.ksh

that I want debmed to run. I cannot change the permissions of the folders of either fuse or debmed.

How can this be achieved?
Sponsored Links
Old Unix and Linux 07-12-2013   -   Original Discussion by Junaid Subhani
Skrynesaver's Unix or Linux Image
Skrynesaver Skrynesaver is offline Forum Advisor  
Grumpy old geek
Join Date: Mar 2011
Last Activity: 13 November 2017, 5:30 AM EST
Location: Éire
Posts: 931
Thanks: 25
Thanked 223 Times in 217 Posts
You could add debmed to the staff group in order that they could read the directory
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Script interacts with user , based on user input it operates only4satish Shell Programming and Scripting 7 11-15-2012 02:12 PM
Login into another user from user inside script rammm Shell Programming and Scripting 4 09-07-2012 05:04 AM
How to Login as another user through Shell script from current user[Not Root] ujjwal27 Shell Programming and Scripting 9 05-27-2012 12:50 PM
root user command in shell script execute as normal user mnmonu Shell Programming and Scripting 3 10-19-2009 08:42 AM
How do i change to super user then revert back to ordinary user ,using shell script? wrapster Shell Programming and Scripting 3 06-04-2008 08:11 AM

All times are GMT -4. The time now is 02:21 PM.