Computing.Net > Forums > Unix > I am having a permissions problem

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

I am having a permissions problem

Reply to Message Icon

Name: Big_Z
Date: February 16, 2004 at 12:10:59 Pacific
OS: AIX 5.1
CPU/Ram: 8/4GB
Comment:

Hello,

I have a script called "change" that lives in the following directory:
/home/controlm/measurements/

The /home/controlm dir is the home dir for the controlm user ID.

There will be multiple people using the change script and they will execute the script from there own home directory (PATH to /home/controlm/measurements will be exported in .profile)

User will type in - change to envoke the script, the script will ask a few questions, create a file called changelog.<month> if it has not already been created and append the answers to the file.

Since I was the first person to run the script, the changelog.Feb file was created with me as the owner and gave it rw-r-r permissions.

If a different person runs 'change' from their home dir, then they are going to get a permissions error when the script try's to append their answers to the changelog.Feb file.

Is there any way around this? I can change it manually but that would defeat the purpose of having this automation in place.

Thanks for any help!
Big_Z



Sponsored Link
Ads by Google

Response Number 1
Name: aigles
Date: February 16, 2004 at 12:17:54 Pacific
Reply:

In the script add 'chmod +w changelog.<month>' after appending answers to the file.

Jean Pierre.


0
Reply to Message Icon

Related Posts

See More


Timestamp for files UNIX GUI problem



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: I am having a permissions problem

very urgent query as i am new here www.computing.net/answers/unix/very-urgent-query-as-i-am-new-here/7957.html

Volume Group data missing www.computing.net/answers/unix/volume-group-data-missing/6413.html

problem with grep in a for loop www.computing.net/answers/unix/problem-with-grep-in-a-for-loop/3967.html