Operating System - HP-UX
1832413 Members
2843 Online
110042 Solutions
New Discussion

fbackup restoration in sam did not copy access permissions correctly

 
Samudrala Seshpani
Occasional Advisor

fbackup restoration in sam did not copy access permissions correctly

hi,

I do backup using fbackup.

Restoration i did with sam restore specific files.

After restoration some of the files showed file owner as root instead of its original owner. May be because I used root to restore. But by right the owner name of the file should be the backed up owner. Surprising this file permissions only changed for few and not all files. I have 2 questions on this.

1. How to aviod this happen?
2. How to get list of files that have owner root so that I can check the file permission restored correctly. (This is to make sure are there still some files restored with root owner instead of its original owner.

Thanks in advance

3 REPLIES 3
RolandH
Honored Contributor

Re: fbackup restoration in sam did not copy access permissions correctly

Hi Samudrala,

1)if you restore with sam interactively,
you have a button which is called "set additional parameters". There you can choose
the option "Preserve Original File Ownership".

2)
# cd /tmp
# find / -uid 0 >/tmp/rootowner.list
Or for a special home dir
# find /home/users -uid 0 >/tmp/userroot.list


HTH
Roland
Sometimes you lose and sometimes the others win
Robert-Jan Goossens
Honored Contributor

Re: fbackup restoration in sam did not copy access permissions correctly

Hi,

When you selected "action recover files or directorys" --> specify Tape Device options

There is is also a " set additional parameters" here you can" click the option "Preserve Original File Ownership"

Hope it helps,

Robert-Jan.
Kevin O'Donovan
Regular Advisor

Re: fbackup restoration in sam did not copy access permissions correctly

Hi,

maybe the files already existed, with root owning them? I'm not altogether clear on exactly what the situation is but I have seen where files already exist, new versions copied over them, but the ownership & permissions aren't changed.

Of course that was manual copy over rather then restoring with fbackup so might be no help but a possible answer why some were owned by root but not all.

hope that helps,
Kevin.