FTP file permissions

Ask a Question related to AIX, Design and Development.

  1. #1

    Default FTP file permissions


    whenever a user uses FTP to transfer a file to the UNIX box, that file
    always gets 640 permissions. I want those files to get 666 permissions.
    How can I do that? The umask of the user is set to 00, which does not
    seem to have any effect on that user's files when logged in via FTP.







    -Mark


    --
    Posted via [url]http://dbforums.com[/url]
    sengstock3 Guest

  2. Similar Questions and Discussions

    1. File permissions
      I have files located on an old HD that are encrypted. When I reinstalled XP I no longer have access to these files. I can see them but not access...
    2. file permissions - ack!
      Hello. This is driving me a little nuts.... Cannot create, write to or unlink any files using PHP. Can open and close files within my web space...
    3. PHP file permissions?
      I've made a copy of a log file and tried to display it through a php file, but nothing comes up. I know passthru command works because I can run it...
    4. Setting the file permissions of a file I'm writing to
      Is it possible to specify the permissions of a file I create when I: open ("FOO", "> ./bar") or die ("Could not create file"); Thanks in...
    5. how do you deal with file permissions?
      I have some problems with files, like alert_sid.log, it is owned by oracle:dba, I'm a member of dba group, but I can't modiy or delete alert file...
  3. #2

    Default Re: FTP file permissions

    sengstock3 wrote:
    > whenever a user uses FTP to transfer a file to the UNIX box, that
    > file always gets 640 permissions. I want those files to get 666
    > permissions. How can I do that? The umask of the user is set to
    > 00, which does not seem to have any effect on that user's files
    > when logged in via FTP.

    [url]http://tinyurl.com/mw5c[/url]
    Al Sharka Guest

  4. #3

    Default Re: FTP file permissions

    sengstock3 <member25238@dbforums.com> wrote:

    Change /etc/inetd.conf for the ftp stanza and use the -u option, for example;

    ftp stream tcp nowait root /usr/sbin/ftpd ftpd -u 007

    gets a 660 permissions for us. Try 000 for your 666 permissions.

    This is from the man pages for ftpd.

    -u OctalVal Sets the ftpd daemon's umask. The OctalVal variable must be
    specified as an octal value to define the umask. The default umask is an octal
    value of 027, which results in file permissions of rw-r-----.


    Ron

    : whenever a user uses FTP to transfer a file to the UNIX box, that file
    : always gets 640 permissions. I want those files to get 666 permissions.
    : How can I do that? The umask of the user is set to 00, which does not
    : seem to have any effect on that user's files when logged in via FTP.







    : -Mark


    : --
    : Posted via [url]http://dbforums.com[/url]
    Ron Guest

  5. #4

    Default Re: FTP file permissions


    do you think I need to wait until users are off the system before
    running 'refresh -s' (to inform the inetd daemon of the changes), or is
    it safe to run that during the day?


    --
    Posted via [url]http://dbforums.com[/url]
    sengstock3 Guest

  6. #5

    Default Re: FTP file permissions

    You can run it with users on the system - I've done it lots of times without
    problems.

    sengstock3 <member25238@dbforums.com> wrote:

    : do you think I need to wait until users are off the system before
    : running 'refresh -s' (to inform the inetd daemon of the changes), or is
    : it safe to run that during the day?


    : --
    : Posted via [url]http://dbforums.com[/url]
    Ron Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139