Got an error as "chown: file : Not owner" while executing 'chown' command
986782Jan 23 2013 — edited Jan 24 2013Hi There,
Could you please anyone help me out for query.
I got an error as "chown: file : Not owner" while executing the 'chown' command in .ksh script.
the below command i used in .ksh script
chown sr53717 /apps/aaa/bbb/ccc/ddd/welcome.gz
Note : owner of the /apps/aaa/bbb/ccc/ddd/ is sr53717
owner of the file(which is placed in /apps/aaa/bbb/ccc/ddd/ ) welcome.gz is sr54996
and whenever i tried to change the ownership of welcome.gz from sr54996 to sr53717 by using chown. I got the above error.
FYR, i have given the details of my machine below.
SunOS 5.8 Generic_117350-62 sun4u sparc SUNW,Sun-Fire-V440
please help me with your valuable answers.