Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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
    Either at home or at work or down the pub
    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
    chmod 760 /dir
    then bounce the FTP service and try again
    Should you be sitting wondering,
    Which Batman is the best,
    There's only one true answer my friend,
    It's Adam Bloody West!

    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