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
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
Skrynesaver's Unix or Linux Image
Skrynesaver Skrynesaver is offline Forum Advisor  
Grumpy old geek
Join Date: Mar 2011
Last Activity: 8 September 2017, 6:18 AM EDT
Location: Éire
Posts: 930
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 01:12 PM
Login into another user from user inside script rammm Shell Programming and Scripting 4 09-07-2012 04: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 11:50 AM
root user command in shell script execute as normal user mnmonu Shell Programming and Scripting 3 10-19-2009 07: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 07:11 AM

All times are GMT -4. The time now is 07:29 AM.