This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes Error in executing chmod  in UNIx Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Error in executing chmod  in UNIx" Watch "Error in executing chmod  in UNIx" New topic
Author

Error in executing chmod in UNIx

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

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


Save India From Corruption - Anna Hazare.
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

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.


[My Blog]
All roads lead to JavaRanch
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

There are some basic explanations in wikipedia : Chmod
 
GeeCON Prague 2014
 
subject: Error in executing chmod in UNIx