chown "NOT OWNER" ERROR

I m login as root and tring to perform following command

chown -R raza mypath/dirnet/test
chown: mypath/dirnet/test: Not owner


how do I change a directory ownership
razaAsked:
Who is Participating?
 
jonkeConnect With a Mentor Commented:
IT sounds as if you are trying to change the permissions on an NFS mounted file system. If the filesystem is mounted from another machine onto yours, you willnot have permissions to change ownership of it as you are not root on that machine. Do a df -k to check this out.
0
 
samriCommented:
raza,

    check jonke's comment first.

  BTW, you want to just change the ownerwship (chown) just the directory or everything that lies under that dir tree.  The chown cmd that you are using will recursively change the ownership each and every thing under that dir /mypath/dirnet/test

just curious.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.