LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Can sftp into root account, but not created user? (https://www.linuxquestions.org/questions/linux-server-73/can-sftp-into-root-account-but-not-created-user-926396/)

ashamanmiller 02-03-2012 01:21 PM

^ I was following the FTP section verbatim in the guide I posted, so...

grim76 02-03-2012 01:39 PM

Ok then you are talking about 2 different things..... Are you talking about proftpd or SFTP? They are not the same thing and should not be substituted for each other.

ashamanmiller 02-03-2012 02:19 PM

I was just following the directions from the guide I posted verbatim.

ashamanmiller 02-03-2012 02:20 PM

I don't know why that just posted twice. Anyway, I've been using SFTP. I guess I wasn't paying to close of attention, then. So, what do I need to do? Thanks!

grim76 02-03-2012 09:19 PM

Like I said previously. I don't think you can use SFTP with /bin/false. I am pretty sure that if you change the shell to something other than /bin/false that SFTP should work.

Keep in mind that FTP, and FTPS are different than SFTP. SFTP is a subsystem of SSH and therefore has to follow the rules of SSH.

What that guide appears to be trying to do is to setup FTP users not SFTP users.

ashamanmiller 02-04-2012 11:04 AM

Great, I'm getting somewhere! Yay! So, what should I change bin/false to? Maybe I should remove it completely?

grim76 02-04-2012 11:05 AM

You should change it to an appropriate shell. /bin/bash etc...

ashamanmiller 02-04-2012 11:21 AM

Then, using sftp, what file would I edit to jail the users in their home directory I created? Thanks!

grim76 02-04-2012 11:51 AM

I have not done SFTP chroot on your linux distribution. http://www.dkpw.co.uk/wp/?p=3428 appears to give solid information on this topic.

I have only done SFTP chroot on RHEL and equivalent systems so hopefully this link will work for you.


All times are GMT -5. The time now is 12:21 PM.