ECS Home Automation and Security Archives
  learn more | view messages for this month | NetBloc® | terms of use | search

Google
 


  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects

Subject:
From:
Date:
Re: [ecs] Linux "permission denied" ??
Rick Mortensen
Wed, 22 Oct 2003 22:54:30 -0700

Mark,

I am going to cover a bunch so don't take anything the wrong way since I may
cover something you already know.  Consider the following:
drwxr-xr-x   3 rmorten  user     512 Mar 21  2003 ftpproxy

The 'd' indicates the entry is a directory;
r - read
w - write
x - execute (in the case of a directory that means you can 'cd' to that
directory)

The following 9 characters are broken down into three groups from left to
right:
The first group (rwx) shows the permissions for the owner of the file
(rmorten)
The second group (r-x) shows the permissions for the group the file belongs
to (user)
The third group (r-x) shows the permissions for everyone else on the system

I am guessing the problem in your case is the directory 'ecs' belongs to a
user other than the one you are attempting to create the file with.

Something else that may help you understand how the chmod command works is
this:
Each of the letters (in groups of three) are in position as if they were a
binary number:
x=1
w=2
r=4

So lets say you want to change the 'ecs' dir so anyone on your system can
read the dir, create and modify files in the dir, and cd to that dir.  You
want to leave the other two groups alone so here is the command:
chmod 757 ecs (assuming you are in the dir above 'ecs').  Another and more
likely command would be:
chmod 777 ecs - This opens the directory up to everyone on the system.

Each of the digits in the above commands come from adding the numbers
associated with the desired permission (read, write, and execute) for each
permission group (file owner, group owner, and everyone).

One important thing to remember is only two user may execute this on a given
file or directory:  The file owner and the user 'root'.

Another way to 'fix' this is to have either the file owner or root 'give'
the file to the user you are using.  Use 'chown' to accomplish this:  chown
user ecs

If you need to change the group access, you need to use chgrp: chgrp group
ecs

Hope this helps...

Rick Mortensen
www.can-be-scanned.com/HomeAutomation
----- Original Message -----
From: "Mark Gilmore" <mark@markgilmore.net>
To: <ecs@netbloc.com>
Sent: Wednesday, October 22, 2003 10:23
Subject: [ecs] Linux "permission denied" ??


> I have a /tmp and /ecs dir in my Knoppix home dir,
> both of which have the exact same permisions ("drwxr-xr-x").
> I can create new files in /tmp.
> But I get a "Permission denied" if I try to create one in /ecs.
> Any ideas ?
> Thanks,
>
> Mark Gilmore
> http://OmnipotenceSoftware.com
>


----------------------------------------------------------------------------
----


>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.528 / Virus Database: 324 - Release Date: 10/16/2003
>


  subject (prev) or (next) | time (prev) or (next) | author (prev) or (next) | view more subjects




Services provided by [NetBloc]®! NetBloc Solutions Inc.
Terms of use. Indexing software (c) 1999 Lin-De, Inc
.