Results 1 to 3 of 3

Thread: pure-ftpd umask not working

  1. #1

    Default pure-ftpd umask not working

    I have pure-ftpd running as a daemon with the following entry in the pure-ftpd.conf file:

    Umask                       113:002
    However when I create a file it has these permissions:

    -rw-r--r-- 1 chapan users 306 Apr 30 09:04 x.txt
    I am running opensuse 12.2.

  2. #2
    Join Date
    Jun 2008

    Default Re: pure-ftpd umask not working

    Isee a special warning in that config file:
    # File creation mask. <umask for files>:<umask for dirs> .
    # 177:077 if you feel paranoid.
    # Note: on SUSE systems umask is overrided by pam_umask inherited from
    # /etc/pam.d/common-session. In case the system-wide default does not
    # fit you, you can either
    # 1.) add line 'session optional umask=$value' into
    # /etc/pam.d/pure-ftpd, so all changes in common-session will apply
    # for pure-ftpd as well, but config file will be still ignored
    # 2.) replace the line 'session include common-session' in
    # /etc/pam.d/pure-ftpd by the content of /etc/pam.d/common-session,
    # remove the line 'session optional' and uncomment the
    # line below
    #Umask                       177:077
    Is that something you took into consideration?
    Henk van Velden

  3. #3

    Default Re: pure-ftpd umask not working

    That was it, thanks.

Posting Permissions

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