Operating System - HP-UX
1837396 Members
3074 Online
110116 Solutions
New Discussion

ownership of index file generated by fbackup

 
SOLVED
Go to solution
Diane Cardone
Occasional Advisor

ownership of index file generated by fbackup

When using the fbackup command I am creating an index file using -I, but once the file is generated it can only be read by root because the ownership/permissions on the file are root:sys rw--------. Is there any way to change this?

Thanks.
DKM
6 REPLIES 6
harry d brown jr
Honored Contributor
Solution

Re: ownership of index file generated by fbackup

I haven't tried this, but maybe you can:

touch /pathof/indexfile
chmod 666 /pathof/indexfile
fbackup

live free or die
harry
Live Free or Die
Diane Cardone
Occasional Advisor

Re: ownership of index file generated by fbackup

I guess my real problem lies in the fact that I am running fbackup within a script that is not run as root, so if I try to change the ownership it won't allow me to.

DKM
A. Clay Stephenson
Acclaimed Contributor

Re: ownership of index file generated by fbackup

I'm not on a box that I can test this against at the moment but I know that fbackup is not a setuid program; thus the file should be owned by the creator. I suspect that you have an existing index files; change the ownership and permission of that existing file (or remove the file itself) and then run your fbackup.

You might also need to set a less restictive umask within your backup script before fbackup is invoked.
If it ain't broke, I can fix that.
harry d brown jr
Honored Contributor

Re: ownership of index file generated by fbackup

The script can change the permissions:

chmod 666 /pathto/indexfile

Then any user can read/write it, if you only need read for others, then:

chmod 644 /pathto/indexfile

live free or die
harry
Live Free or Die
Diane Cardone
Occasional Advisor

Re: ownership of index file generated by fbackup

Harry,
I tried your suggestion for creating the file before executing the fbackup and that worked fine.

Thanks very much.
harry d brown jr
Honored Contributor

Re: ownership of index file generated by fbackup

Diane,

Glad to be of service, especially on a Sunday.

live free or die
harry
Live Free or Die