Operating System - HP-UX
1834403 Members
2773 Online
110067 Solutions
New Discussion

Unable to move files althought I'm root

 
dctw
Frequent Advisor

Unable to move files althought I'm root

I encountered a scenario here where I need to housekeep some files created by my users.

The file is like this :-
-rws--x--- 1 root sap 2263536 Nov 5 2004 saposcol

I tried to move the files away while login as root but I get an error saying :-

cp: bad copy to /sapinst/sapmntASP/exe_orig/saposcol: read: Permission denied

The permission for the destination was correct.

Other than that, I do encounter before a situation where I was unable to write some files to a particular folder as root.

Any idea how to solve this?
Thank you for your help.
7 REPLIES 7
whiteknight
Honored Contributor

Re: Unable to move files althought I'm root

dctw,

check syslog.log see got any hardware failure or the disk has possibly disconnected.

please check!!

WK
Problem never ends, you must know how to fix it
Patrick Wallek
Honored Contributor

Re: Unable to move files althought I'm root

Is the directory you are unable to write to an NFS mount? If so, then you probably do not have access to the NFS mount as root. If it is NFS mounted, then check the /etc/exports file on the NFS server and see if there is a 'root=' entry on the line for the directory you are having issues with.
dctw
Frequent Advisor

Re: Unable to move files althought I'm root

syslog is clean.
Vijay Dsouza
Frequent Advisor

Re: Unable to move files althought I'm root

This is something to do with permission only ! for testing purpose set read permission to all and then try a copy.

Cheers

Vijay
dctw
Frequent Advisor

Re: Unable to move files althought I'm root

Hi Patrick,

The directory is a NFS mount. But the export server refers back to this very same server.

I've checked the permission. It looks fine though.

Here's the content for /etc/exports

% cat /etc/exports
#/usr/sap/interface -anon=65534,root=asmyp101
dctw
Frequent Advisor

Re: Unable to move files althought I'm root

HI all,

I manage to move the files already.
What I did was instead of moving out the files from the NFS mountpoint, I moved it our from the /export/folder.

Thank you so much for the assistance.
Patrick Wallek
Honored Contributor

Re: Unable to move files althought I'm root

If this is the line:

#/usr/sap/interface -anon=65534,root=asmyp101

Then it is commented and will not work.