Find the answer to your Linux question:
Results 1 to 2 of 2
Can anyone tell me why I cant add files to my sftp server with my root, or sftp user accounts via filezilla, after "chown root:user /dir" and "chmod 750 /dir" ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2010
    Posts
    80

    Chmod/Chown permissions help.


    Can anyone tell me why I cant add files to my sftp server with my root, or sftp user accounts via filezilla, after "chown root:user /dir" and "chmod 750 /dir" as root user.
    I also have the CHrootDirectory option set to /dir as well in the sshd_config file

    The users are jail'd, but no one can add files, not even the root user, it returns permission is denied, if any, including root attempts to add a file.
    So I just have an empty sftp server x.x
    I SHOULD be able to add files with my root user I would think, but I cant.

  2. #2
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,652
    Never set up an FTP server but a couple of possibilities spring to mind.

    1. 750 may need to be 760 (read(4) + write(2) = 6)
    2. Won't it be the user (or group) that the FTP Server runs as that needs the permissions to /dir?

    try the following
    Code:
    chmod 760 /dir
    chgrp WHATEVER_GROUP_THE_FTP_SERVER_RUNS_UNDER /dir
    then bounce the FTP service and try again
    "I used to be with it, then they changed what it was.
    Now what was it isn't it, and what is it is weird and scary to me.
    It'll happen to you too."

    Grandpa Simpson



    The Fifth Continent

Posting Permissions

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