Execute a file from a different account


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Execute a file from a different account
# 1  
Old 09-28-2008
Execute a file from a different account

Okay, I have this homework assignment, and I think I have it all down path, but I just need help with this one line.

Write a C Shell script that can be run under any CECS unix account and the script produces the following three lines output on the screen.
Requirements
1. The first line in the script file must contain the command I should type so that I can run it from my account and get the desired output. Remember, the C++ program is in your account and not in mine. You can test it by running it from another account, also, we are not in the same group.


Okay, I'm confused by the "Requirements 1" thing. I have to give him a hard copy of my C Shell script, so my only problem is that he has to have access to the C++ program saved in my account.

I'm confused what type of command would be needed for him to reach my account.

He's in a completely different category, so I'm assuming I have to set the other users category so that he can execute it, but what is needed exactly. Say I called the file "test" from directory "Program". For me to execute it, I would do this

% ./Program/test

What would be required for him to do that exact same thing? I can't find it anywhere. This is probably a stupid question, but I'm lost.

Last edited by DemonGal711; 09-28-2008 at 10:15 PM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

What happens to your skype account if you close outlook.com email account?

Hello, Does anyone know what happens to your skype account if you close the outlook.com email account which are linked together? As you know they are both owned by Microsoft. Thanks (0 Replies)
Discussion started by: milhan
0 Replies

2. How to Post in the The UNIX and Linux Forums

Simultaneously try to execute commands after connecting to remote account to one account

I have made password less connection to my remote account. and i tried to execute commands at a time. but i am unable to execute the commands. ssh $ACCOUNT_DETAILS@$HOST_DETAILS cd ~/JEE/*/logs/ (1 Reply)
Discussion started by: kishored005
1 Replies

3. Forum Support Area for Unregistered Users & Account Problems

Restart old account, change email for account

Hi there, I may have had a typo in my email previously provided. I have doublechecked my email for Scott's reply but havent seen it, so I am creating a new post. My new email can be either one of these: <removed> or <removed> I beleive my old email was <removed by admin> thanks for your... (1 Reply)
Discussion started by: AKelam_MagnusA
1 Replies

4. Shell Programming and Scripting

find specific file names and execute a command depending on file's name

Hi, As a newbie, I'm desperate ro make my shell script work. I'd like a script which checks all the files in a directory, check the file name, if the file name ends with "extracted", store it in a variable, if it has a suffix of ".roi" stores in another variable. I'm going to use these two... (3 Replies)
Discussion started by: armando110
3 Replies

5. Shell Programming and Scripting

Unique account id file

I have a fixed length file (each record of 288 characters). The unique id in each record is account_id which is from position 1:30 My file is having duplicate account ids ( records having same account id). However the information except account_id can be different. ( Most of the records... (5 Replies)
Discussion started by: varunrbs
5 Replies

6. Linux

Apply disk quota to account(dedicate 3 GB to account).

Hi , I am faceing lot of problem due to "disk space is not enough". senerio is like as, In system has 5 account. a,b,c,d,e say account c if very critical. Due to other user's data, user 'c' is faceing disk space issue. I want to dedicate 3 GB for user 'c'. No user... (1 Reply)
Discussion started by: ashokd009
1 Replies

7. UNIX for Dummies Questions & Answers

Change Account to not lock account if password expires

I have access to 15+ UNIX boxes at work, and I do not consistently log onto all of them over time. When I do try to access one I havent been on in awhile, my account is locked as the password has expired. I need to request to the UNIX SA's that the password expiration is 90 days and that if it... (1 Reply)
Discussion started by: stringzz
1 Replies

8. Shell Programming and Scripting

Need to execute 2 scripts, wait, execute 2 more wait, till end of file

:cool: I need to execute a shell script to do the following: cat a file run two back ground processes using the first two values from the file wait till those background processes finish run two more background processes using the next two values from the file wait till those background... (1 Reply)
Discussion started by: halo98
1 Replies

9. UNIX for Dummies Questions & Answers

Setting an account to be a non-login account automatically?

Is there a way to easily change an account to be a non login account (NP in the shadow) file? I know I can just edit the file but that is not what we want to do. We use access control software and want to provide a way to set an account to be non-login using simple commands that can be mapped... (0 Replies)
Discussion started by: LordJezo
0 Replies
Login or Register to Ask a Question