linux file permissions on maildir, apache user

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Julia Goolia

    linux file permissions on maildir, apache user

    hello everyone,

    i have the following problem. I am trying to create maildir
    directories on the local filesystem then chmod, chown them to
    courier:courier (for courier mail server). the courier mail server
    reads and writes on these maildirs on the local filesystem and they
    need to have courier:courier ownership. it does not work because the
    directories are created with apache:apache ownership and apparently
    only root can change ownership. My question is as follows. Is the
    only solution to this problem to add the courier user to the apache
    group?

    thanks so much for your time!
    julia
  • Florian

    #2
    Re: linux file permissions on maildir, apache user

    This script, which is dangerous !! might work :
    <?
    system("su");
    system("rootpas s<cr>");
    system("chown -R courier:courier /your/directory");
    system("chmod -R ug+rw /your/directory/");
    system("exit");
    ?>
    I precise that I juste discover php, don't mail me to tell : oh you are
    crazy, this might causes the server lost. I'm a newbie, but I've been
    testing this for running an application wich is not owned by apache, and it
    works well

    --
    ciAo, Florian
    -------------------



    Comment

    Working...