Linux/UNIX: chmod error

Posted on in Categories , last updated September 1, 2006

Q: Sometime when I use chmod command under Suse Linux, I am getting following error message:
changing permissions of ‘FILENAME’: Operation not permitted

A: If you are using UNIX you will get error as follows:
chmod: Not owner.

Remember, only the owner of a file or directory can set its permissions. Use ls -l to find the owner. Otherwise, login in as a root user and then setup permissions using chmod.

See also:

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

2 comment

Leave a Comment