Results 1 to 4 of 4

Thread: Ownership of files

  1. #1
    Join Date
    Jun 2008
    Location
    Dublin, Ireland
    Posts
    298

    Default Ownership of files

    Hi,

    Just wondering... who should own the files in web server root, is it root or a normal user?

    /jlar

  2. #2

    Default Re: Ownership of files

    Anyone but the user apache runs under. Exception possible for files the webserver has to touch.

  3. #3
    ab@novell.com NNTP User

    Default Re: Ownership of files

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Either way. Generally speaking it's a bad idea for the web server user
    ('wwwrun' by default as I recall) to own the files, or be able to write
    or execute them, but otherwise as long as that user can read them you
    should be okay.

    Good luck.





    eeijlar wrote:
    > Hi,
    >
    > Just wondering... who should own the files in web server root, is it
    > root or a normal user?
    >
    > /jlar
    >
    >

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.2 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

    iD8DBQFJODND3s42bA80+9kRAkDoAKCCn4Eczm+QCvnG34lf0sS+UjM6qgCfceJm
    xYWVtiYgDcqEhhA8R8XXsyI=
    =Zksw
    -----END PGP SIGNATURE-----

  4. #4
    Join Date
    Mar 2008
    Location
    Vsters, Sweden ex. Highbury London UK
    Posts
    1,245

    Default Re: Ownership of files

    You can also change the default root to your public_html if you are the only user or use it as a virtual directory.
    Especially if your just doing personal stuff with the server

    Geoff
    Core 2 Duo 3.16GHz, 8GB DDR2, 3.5TB, GeForce 9600 GT, Amilo LCD 26", OS 11.1 x86_64, KDE4.2.4 (2)
    My wine tips & tricks

Posting Permissions

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