User1 runs User2 scripts and updates logs?Is it possible?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting User1 runs User2 scripts and updates logs?Is it possible?
# 1  
Old 02-16-2009
CPU & Memory User1 runs User2 scripts and updates logs?Is it possible?

Guys
I have an odd request in hand.

User1 Group1,Group2
User2 Group2,Group1

As can be seen ,both users belong to each other's group as well.

Now User1 is holding some scripts(in a folder) on which perms are: 750 ..meaning User2 can read and execute but the execution is never successful bcoz script also writes/updates messages in log files and for that the 'w' is not granted on the folder for group members.

There are log files in more than 1 folder and the perms set are recursive:750.

Bottomline: User2 unable to complete the execution bcoz 'w' is not granted.

How can i achive it by keeping everything as is..? Can it be done via script? If yes,how? Has anyone come across such an issue?

Looking for advice
Regards
Abhijeet
# 2  
Old 03-04-2009
I have a few setups where 2 users work with files and I give all the files and directories owner of one and user of the other with permissions 0770 for directories and 0660 for files.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

If I ran perl script again,old logs should move with today date and new logs should generate.

Appreciate help for the below issue. Im using below code.....I dont want to attach the logs when I ran the perl twice...I just want to take backup with today date and generate new logs...What I need to do for the below scirpt.............. 1)if logs exist it should move the logs with extention... (1 Reply)
Discussion started by: Sanjeev G
1 Replies

2. UNIX for Dummies Questions & Answers

Best way to publish logs and reports from shell scripts?

Hello, I have been searching for some advice on this. I'm new to linux in a sys-admin kind of role, and I'm often asked to get information by running basic commands in the linux shell. For example, how many jobs running, grep a number of files, run a random program and output the results,... (4 Replies)
Discussion started by: allagher8
4 Replies

3. Solaris

"finger user1" pointing user1 and user2 as well why so?

Hello guys, on Solaris 10 os, I have this problem, When I finger one user it points to 2 user why so, -bash-3.2$ finger machova Login name: machovp In real life: raju Machova (LIB FinAcct User) Directory: /users/cz/182/machovp Shell: /usr/bin/ksh Never... (2 Replies)
Discussion started by: manalisharmabe
2 Replies

4. Solaris

How can i prevent logging user1 from console?

Dear all, i have two users user1 and user2 i want force user1 to login first by user2 and then su - user1 i want to prevent logging user1 from console directly (5 Replies)
Discussion started by: maxim42
5 Replies

5. Shell Programming and Scripting

Need to run a bash script that logs on as a non-root user and runs script as root

So I have a script that runs as a non-root user, lets say the username is 'xymon' . This script needs to log on to a remote system as a non-root user also and call up a bash script that runs another bash script as root. in short: user xymon on system A needs to run a file as root user and have... (2 Replies)
Discussion started by: damang111
2 Replies

6. Shell Programming and Scripting

KSH - How to call different scripts from master scripts based on a column in an Oracle table

Dear Members, I have a table REQUESTS in Oracle which has an attribute REQUEST_ACTION. The entries in REQUEST_ACTION are like, ME, MD, ND, NE etc. I would like to create a script which will will call other scripts based on the request action. Can we directly read from the REQUEST_ACTION... (2 Replies)
Discussion started by: Yoodit
2 Replies

7. Shell Programming and Scripting

Grep yesterday logs from weblogic logs

Hi, I am trying to write a script which would go search and get the info from the logs based on yesterday timestamp and write yesterday logs in new file. The log file format is as follows: """"""""""""""""""""""""""... (3 Replies)
Discussion started by: harish.parker
3 Replies

8. AIX

unix updates- Where can I find unix updates online for IBM servers?

I have a Unix based server running Sagitta and the server is giving me an error of 4b10004 and my research tells me this is an EPROM issue, which means the processor needs to be flashed or repaired. Once up and running where can I go to get updates for Unix? (1 Reply)
Discussion started by: crainer
1 Replies

9. Filesystems, Disks and Memory

scripts for rotation and compression of sys logs

As a UNIX newbie, how can I create a (cron)script that rotates my syslogs on AIX 4.3.3 on a 24 hour basis and compresses the old logs ? TIA ! (1 Reply)
Discussion started by: fireblade
1 Replies
Login or Register to Ask a Question