Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change the permission on files

Status
Not open for further replies.

110877

MIS
Nov 14, 2001
25
AU
I have a problem at work...I hope one of you out there will be able to help me. Much appreciated for you help (in advance)

Here is my problem. We use samba and the program which generate these files is lotus notes and it dumps the output in /dos/mlmerge (which is on AIX-F80). For example,

This is the permission on the shared directory with windows;
drwxrwsrwx 3 psd pronto 8704 May 14 06:03 mlmerge

Here are the permission on the files which I want to change;
-rw-r--r-- 1 rgray pronto 5272 May 13 12:02 SPEC-ABC.NOT
-rw-r--r-- 1 rgray pronto 3786 May 13 12:02 SPEC-ABC.PRC

I want to write a script so anyone apart from root and the owner of the files can change the permission on these files to 777 or whatever they need it to be. That is I don't want them to log in as root and I don't want to be interupt to change the permission on these files every time they need to do this.

Does any one have any idea as to how I approach this and how to write a script in which the users can execute that will change the permission to 777.

Cheers,
110877

 
There are several solutions to this. If all the files always need these permissions then you should tell Samba to give them permissions 777.

If you want users to be able to change it then you should look into 'sudo'. Do a search for sudo. You can download it on
Cheers

Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
Why not set the umask when they are created?

--
| Mike Nixon
| Unix Admin
|
----------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top