Results 1 to 3 of 3

Thread: apache2

  1. #1

    Default apache2

    Hi folks,
    I've installed apache2 server and it is nested in srv directory on OpenSUSE 12.1. It works fine except one thing, when the php script which has to create new file is executed from crontab new file has owner 'me' from group 'users' and when it is execute manualy from browser the user of new file is 'wwwrun' from group 'www'. How can I change this in sense that new created files always have owner 'me'?

  2. #2
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,079

    Default Re: apache2

    On Sun, 28 Dec 2014 20:46:01 +0000, zmajar wrote:

    > Hi folks,
    > I've installed apache2 server and it is nested in srv directory on
    > OpenSUSE 12.1. It works fine except one thing, when the php script which
    > has to create new file is executed from crontab new file has owner 'me'
    > from group 'users' and when it is execute manualy from browser the user
    > of new file is 'wwwrun' from group 'www'. How can I change this in sense
    > that new created files always have owner 'me'?


    How did you install Apache?

    You should also be aware that 12.1 is no longer a supported version -
    while someone here may be able to assist you, you should probably look at
    upgrading to 13.1 or 13.2 (as the current supported versions) in the near
    future. This is particularly important for a web server, as no security
    patches are being released for unsupported versions, so if there were a
    serious security issue like poodle or heartbleed, you probably won't get
    a patch for them.

    If by 'me' you mean your username, that's behavior that's fairly
    typical. You can make the group ownership sticky using the sticky bit in
    chmod on the directory, so you can make the group ownership stick to www
    for files created in the directory structure.

    Which php script are you talking about, though? Apache doesn't do that
    by default, so there's something else you're doing that you've not told
    us about....

    Jim



    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

  3. #3

    Default Re: apache2

    Quote Originally Posted by hendersj View Post
    On Sun, 28 Dec 2014 20:46:01 +0000, zmajar wrote:

    > Hi folks,
    > I've installed apache2 server and it is nested in srv directory on
    > OpenSUSE 12.1. It works fine except one thing, when the php script which
    > has to create new file is executed from crontab new file has owner 'me'
    > from group 'users' and when it is execute manualy from browser the user
    > of new file is 'wwwrun' from group 'www'. How can I change this in sense
    > that new created files always have owner 'me'?


    How did you install Apache?

    You should also be aware that 12.1 is no longer a supported version -
    while someone here may be able to assist you, you should probably look at
    upgrading to 13.1 or 13.2 (as the current supported versions) in the near
    future. This is particularly important for a web server, as no security
    patches are being released for unsupported versions, so if there were a
    serious security issue like poodle or heartbleed, you probably won't get
    a patch for them.

    If by 'me' you mean your username, that's behavior that's fairly
    typical. You can make the group ownership sticky using the sticky bit in
    chmod on the directory, so you can make the group ownership stick to www
    for files created in the directory structure.

    Which php script are you talking about, though? Apache doesn't do that
    by default, so there's something else you're doing that you've not told
    us about....

    Jim



    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C
    Hi Jim,

    I'll take your advice an first upgrade My OpenSUSE on 13.1 version.

    Thanks!

Tags for this Thread

Posting Permissions

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