Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    4

    Default SFTP Sub Users

    I created a sub user of an account. I want to allow that person to transfer files to his directory, which was created when that account was created.

    However, when I sftp to the site, I get "permission denied" errors.

    I can use sftp using the username of which the sub-user is a member.

    This is the first time we've tried this. Is there any other configuration or setup that needs to be done at the administrative level?

  2. #2
    Member
    Join Date
    May 2007
    Posts
    114

    Default

    Quote Originally Posted by fxars View Post
    I created a sub user of an account. I want to allow that person to transfer files to his directory, which was created when that account was created. However, when I sftp to the site, I get "permission denied" errors. I can use sftp using the username of which the sub-user is a member.

    This is the first time we've tried this. Is there any other configuration or setup that needs to be done at the administrative level?
    Not sure if I understand you correctly, but it looks like you are trying to use FTP over SSH for a secondary Ftp account. Unfortunately, this will not work. Secondary FTP accounts can only use plain FTP through Port 21.

    If you are actually using plain FTP, then ensure that the secondary FTP username is in the syntax username@domain.com, otherwise it won't connect.

  3. #3
    Member
    Join Date
    Sep 2009
    Posts
    11

    Default SFTP home folder permissions problem

    For all of our SFTP accounts, when either an 'ls' or 'dir command is executed in the default home folder, the server gives the error:
    sftp> ls
    Couldn't stat remote file: No such file or directory
    sftp>

    If you CD to any sub folder, there are no issues and everything works just fine.

    I cannot even CD back into the home folder:
    sftp> pwd
    Remote working directory: /test_acct
    sftp> cd upload
    sftp> cd ..
    Couldn't stat remote file: No such file or directory
    sftp>
    What is odd is that if I enable FTP on the same accounts using the same folders, everything works normally.

    What is it about using SFTP and the default home directory that is causing this, and how do I fix it?

    Thanks!

    George..
    ______________________________________________________________________________________________

    snoozer dog beds | printing companies washington | how to beat a drug test
    Last edited by dannydesiliva; 09-07-2009 at 02:37 AM.

Similar Threads & Tags
Similar threads

  1. Filed with Developers [Case 46939] SFTP access for virtual FTP users
    By forlinuxsupport in forum Feature Requests for cPanel/WHM
    Replies: 21
    Last Post: 08-03-2011, 11:18 AM
  2. Creating SFTP
    By danielk in forum New User Questions
    Replies: 20
    Last Post: 07-30-2010, 02:16 PM
  3. chroot'ing users after SFTP?
    By jez9999 in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 04-02-2009, 07:55 AM
  4. Sftp
    By seby in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-01-2007, 02:21 AM
  5. sftp access for ftp users of a domain
    By radical in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-04-2005, 11:49 AM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube