Find the answer to your Linux question:
Results 1 to 4 of 4
this sounds like such an idiotic question... but i've tryed everything i know and still can't make it work. attempting to give user normal read/write permission to directory /home/www and ...
  1. #1
    Just Joined! brokndodge's Avatar
    Join Date
    Feb 2006
    Location
    Arkansas, USA
    Posts
    78

    file permissions in debian

    this sounds like such an idiotic question... but i've tryed everything i know and still can't make it work.

    attempting to give user normal read/write permission to directory /home/www and it's children.
    Code:
    #chown -R www:www /home/www
    #chmod -R 660 /home/www
    #
    as i read it 660 = rw-rw----

    ls -la confirms all of this:
    Code:
    drw-rw---- 12 www       www        4096 2006-05-30 10:36 www
    so i added user normal to group www
    Code:
    #adduser normal www
    Adding user `normal' to group `www'...
    Done.
    #
    and do an id to confirm it:
    Code:
    #id normal
    uid=1000(normal) gid=1000(normal) groups=1000(normal),20(dialout),24(cdrom),
    25(floppy),29(audio),44(video),46(plugdev),110(www)
    #
    the www group is listed at the end... just where it should be

    so I su to test it
    Code:
    #su normal
    $touch /home/www/test.html
    touch: cannot touch `/home/www/test.html': Permission denied
    $
    someone please tell me what i missed... i know i can chmod 770 /home/www and write to it. but why not 660? it's as if user normal isn't a member of the www group.

    i'm mostly trying to do this so that i don't have to su all of my commands. right now i've got to create my content then su root to move it all from my home directory to /home/www. it's getting to be time consuming as there is a lot of content. this is a production server so i don't want to leave it chmoded 770 even for a lil while.

  2. #2
    Linux Guru antidrugue's Avatar
    Join Date
    Oct 2005
    Location
    Montreal, Canada
    Posts
    3,212
    I doesn't work because to "get pass" a directory you have to have the right to execute it.
    "To express yourself in freedom, you must die to everything of yesterday. From the 'old', you derive security; from the 'new', you gain the flow."

    -Bruce Lee

  3. #3
    Just Joined! brokndodge's Avatar
    Join Date
    Feb 2006
    Location
    Arkansas, USA
    Posts
    78
    i guess my thinking was skewed... I can chmod 770 and still only be allowing access to owner and group... geeze... i'm always making it harder than it is.

    thx bruce lee

    well, there is a tutorial for user permissions then.

  4. #4
    Just Joined! brokndodge's Avatar
    Join Date
    Feb 2006
    Location
    Arkansas, USA
    Posts
    78
    ok... i chmoded 770 and i can touch /html/www at the cli but x still won't let me in. what is causeing that

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •