The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 04-23-2009
devtakh devtakh is offline
Registered User
  
 

Join Date: Oct 2007
Location: Bangalore
Posts: 514
Quote:
Originally Posted by #moveon View Post
I have created a file and set the permission to read and write only for user and group. Here is how I did it:

chmod filename 660

I used ls -l to see and the changes are right so, why is it saying permission denied when I try to change into it. When I type cd filename, I am told permission denied. Why?
the correct syntax is
chmod 660 filename

also, make sure you(user) is the owner or belong to the group of the filename.


cheers,
Devaraj Takhellambam