Permissions Issue

Hi Experts,

I have one ftp user which will FTP the files to two subdirectories of some other user.

Say i have one user "xyz" . It FTP's the file to the directory of "abc" user. I have added xyz user in abc group.

-rw-r--r-- 1 xyz abc 0 Jul 26 10:05 mo
-rw-r--r-- 1 xyz abc 0 Jul 26 11:06 jo

Now the problem is i have one utility which doesn't work on file owned by any other user than abc:(.

So, what should i do in my script so that it will change the permissions of the incoming file.

As abc is not the root user and it cant change the permissions for xyz user.

In need of urgent help.

Thanks.

You should be able change the permissions of a file as long as you have write permissions to the directory...

mv mo mo.tmp
cp mo.tmp mo
chmod 666 mo