Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error in executing chmod in UNIx

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I am newbie to UNIX , so please excuse if my query is wrong .

I tried to give permission to a User using chmod . But it throwing me an error displaying as
chmod: WARNING: can't access =
chmod: WARNING: can't access rwx,


Please let me know how the chmod command in unix works ,
Because when i logged in as kiran and executed the command
chmod kiran=rwx

 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The chmod syntax is completely different from yours There are different ways to do it. If you type "man chmod", you can check the correct syntax. What permission do you want to change ? A file ? A directory ? Who's owning it ? You have to think if you want to give permission to everybody else, or just everybody else in the same group. Do an "ls -l" an you'll see who's owning the file/directory.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are some basic explanations in wikipedia : Chmod
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic