ismahwati
asked on
moving files around
Hi..
i try to move one large .dmp file
to other disk space.
let say from /export/m.dmp to /tmp directory
in export the files is owned by sysops
$ -rwxr-xr-x 1 sysops dba
when i cp the file to /tmp
the owner is root.
i try to move using sysops id but get error
'no permission,access denied'
how can i grant back the file to sysops.
tq
sun newbie
i try to move one large .dmp file
to other disk space.
let say from /export/m.dmp to /tmp directory
in export the files is owned by sysops
$ -rwxr-xr-x 1 sysops dba
when i cp the file to /tmp
the owner is root.
i try to move using sysops id but get error
'no permission,access denied'
how can i grant back the file to sysops.
tq
sun newbie
Use
cp -p file newfile
with p the owner and group
is same
cp -p file newfile
with p the owner and group
is same
ASKER
i try the cp -p file newfile..
but i does not maintain the owner
it change the sysops to root / other.
tq
but i does not maintain the owner
it change the sysops to root / other.
tq
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
tq
it helps
it helps
ASKER
tq
it helps
it helps
ASKER
tq
it helps
it helps
the tar command instead.
delete the file in tmp first,
rm /tmp/m.dmp
make a copy of the file in /export, and put it to /tmp,
cd /export
tar cf - m.dmp | (cd /tmp ; tar xvf -)
the above commands will do the job for you.
=====
yuzh