Results 1 to 5 of 5

Thread: SFTP and permissions

  1. #1
    Join Date
    May 2012
    Beans
    271

    SFTP and permissions

    Hello everybody,

    While transferring files using SFTP, directories are set to 755 persmissions and files to 664, I would like to set them to 751 and 644 alternatively after the transfer is done, how can I proceed with that??

    Thanks in advance

  2. #2
    Join Date
    Sep 2006
    Beans
    7,199
    Distro
    Lubuntu Development Release

    umask

    You can look up umask in the manual page for the sftp-server. You would then set the umask in /etc/ssh/sshd_config, if you have access to the server. If you don't have access, then you need to work it out with the system administrator.

  3. #3
    Join Date
    May 2012
    Beans
    271

    Re: SFTP and permissions

    I found this tuto, but it does NOT work

    It stays at 664

    EDIT: I change the 002 to 022, it works for files (644) but directories are still in 755 instead of 751
    Last edited by alfirdaous; April 3rd, 2013 at 11:12 AM.

  4. #4
    Join Date
    Dec 2009
    Location
    germany
    Beans
    1,020
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: SFTP and permissions

    Quote Originally Posted by alfirdaous View Post
    I found this tuto, but it does NOT work

    It stays at 664

    EDIT: I change the 002 to 022, it works for files (644) but directories are still in 755 instead of 751
    hi
    i ain't know - but i think in the tutorial there is something misrememberd. --> restart the vfstd ??!
    ciao
    ups - i forgot - the changes must be made on the target side and sorry i mean /usr/sbin/vsftpd
    Last edited by rnerwein; April 4th, 2013 at 04:53 PM. Reason: ok it's /usr/sbin/vsftpd
    "What is the robbing of a bank compared to the FOUNDING of a bank?" Berthold Brecht

  5. #5
    Join Date
    May 2012
    Beans
    271

    Re: SFTP and permissions

    what is vfstd?

Tags for this Thread

Bookmarks

Posting Permissions

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