Operating System - HP-UX
1823912 Members
3498 Online
109666 Solutions
New Discussion юеВ

Re: rcp: can't set times on /home/appl/dira/dirb

 
ikbea
Frequent Advisor

rcp: can't set times on /home/appl/dira/dirb

In a HPUX 10.20 server,

/home/appl/dira ownerA:groupA mode=777
/source/dirb ownerA:groupA mode=777
/source/dirb/files ownerA:groupA mode=777

A user 'ownerB' with groupA, run
$rm -f /home/appl/dira/*
$rcp -p -r server:/source/dirb /home/appl/dira

rcp: can't set times on /home/app/dira: Not owner

When ownerB run,
$mkdir /home/appl/dira/dirb
$rcp -p server:/source/dirb/files /home/appl/dira/dirb

'files' are copied.




2 REPLIES 2
T G Manikandan
Honored Contributor

Re: rcp: can't set times on /home/appl/dira/dirb

do you have any file/dir beneath that path owned by a different user.

check for the rcp patch,has two fixes.

PHNE_23003 HPUX11.0
Steven E. Protter
Exalted Contributor

Re: rcp: can't set times on /home/appl/dira/dirb

Check the numeric user id for the user on both machines.

when rcp takes schmo's files on server a and moves them to serverb it doesn't know schmo from anyone. It knows numeric ids and I'd bet based on past exerience that the numeric ids are not consistent, causing this problem.

The fix is to use vipw to make user ownerb have the same numeric uid across both systems.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com