≡ Menu

Linux/UNIX: chmod error

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:

Share this tutorial on:

Your support makes a big difference:
I have a small favor to ask. More people are reading the nixCraft. Many of you block advertising which is your right, and advertising revenues are not sufficient to cover my operating costs. So you can see why I need to ask for your help. The nixCraft, takes a lot of my time and hard work to produce. If you use nixCraft, who likes it, helps me with donations:
Become a Supporter →    Make a contribution via Paypal/Bitcoin →   

Don't Miss Any Linux and Unix Tips

Get nixCraft in your inbox. It's free:



{ 2 comments… add one }
  • sanjay November 20, 2007, 3:20 pm

    how i can change the permission of a complete directory.
    and how i remove the whole directory

  • nixCraft November 20, 2007, 3:48 pm

    How can I change the permission of a complete directory.
    chmod -R perm dir-name

    how can i remove the whole directory
    /bin/rm -rf dirname

Security: Are you a robot or human?

Leave a Comment

You can use these HTML tags and attributes: <strong> <em> <pre> <code> <a href="" title="">


   Tagged with: