Linux/UNIX: chmod error

by Vivek Gite · 2 comments

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:

Featured Articles:

Want to read Linux tips and tricks, but don't have time to check our blog everyday? Subscribe to our daily email newsletter to make sure you don't miss a single tip/tricks. Subscribe to our weekly newsletter here!

{ 2 comments… read them below or add one }

1 sanjay 11.20.07 at 3:20 pm

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

2 vivek 11.20.07 at 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

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous FAQ:

Next FAQ:

nixCraft FAQ PDF Collection Now Available To All