Linux/UNIX: chmod error

by Vivek Gite on February 17, 2006 · 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:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

{ 2 comments… read them below or add one }

1 sanjay November 20, 2007

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

Reply

2 vivek November 20, 2007

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

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 8 + 7 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.



Previous post:

Next post: