Find the answer to your Linux question:
Results 1 to 4 of 4
Hi all, I installed pure-ftpd with Mysql in my fedora 12. In have the following value in my pure-ftpd.conf file # Cage in every user in his home directory ChrootEveryone ...
  1. #1
    Just Joined!
    Join Date
    Aug 2010
    Posts
    2

    change folder permission in PURE-FTPD [ urgent]

    Hi all,

    I installed pure-ftpd with Mysql in my fedora 12.
    In have the following value in my pure-ftpd.conf file

    # Cage in every user in his home directory
    ChrootEveryone yes

    It was created the user folders with permission 644.
    But i need to change this to 775 at the time of creating the folder.

    ie,

    the folder was created now

    -rw-r--r-- 1 peter peter 1131291 Apr 15 22:31 random-file

    I need to change [ rw-r--r-- ] to [ drwxrwxr-x ] at the time of creating the folder.

    Any ideas?

  2. #2
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    855
    Quote Originally Posted by man pure-ftpd

    -j

    if the home directory of an user doesn't exist, automatically create it. The newly created home directory belongs to the user, and permissions are set according to the current directory mask. To avoid local attacks, the parent directory should never belong to an untrusted user.
    Tagging your messages as urgent is considered a violation of netiquette. Reading man pages gives answers faster anyway.

  3. #3
    Just Joined!
    Join Date
    Aug 2010
    Posts
    2
    Quote Originally Posted by Segfault View Post
    Tagging your messages as urgent is considered a violation of netiquette. Reading man pages gives answers faster anyway.
    ok how can i change the newly created folder permission to 775.

  4. #4
    Just Joined!
    Join Date
    Jun 2010
    Posts
    8
    to change old folders: man chmod; chmod -r 755 folder
    to create correctly new folders: man pure-ftpd; pure-ftpd -U 133:022

    (which is the default anyway) maybe the I'm not interpreting correctly the information in the -j command. download.pureftpd.org/pub/pure-ftpd/doc/README

    Anyways, everyone should learn this is what happens when you write "[urgent]"

Posting Permissions

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