LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   FTP (https://www.linuxquestions.org/questions/linux-newbie-8/ftp-753291/)

nagavinodh 09-07-2009 07:47 AM

FTP
 
Hi,
Here We are using SSH client which has FTP.so easily able to transfer the file and change permissions.I would like to disable FTP for particular user.and also I would like to trace their activities.Is there anyway for that?.

Simon Bridge 09-07-2009 08:34 AM

Quote:

Originally Posted by nagavinodh (Post 3672961)
Hi,
Here We are using SSH client which has FTP. so easily able to transfer the file and change permissions. I would like to disable FTP for particular user. and also I would like to trace their activities. Is there anyway for that?.


You aleady have a thread where you are asking about how to trace user activities.

You do not normally get ftp as part of the ssh client. ftp is more common with an ftp client. However, many gnu/linux distributions use ftp as an alias to sftp.

So it is not clear if you want to disable regular ftp so a user is forced to use secure channels, or if you want to prevent a user from using ssh completely. Or perhaps you want to exclude a user from logging in remotely?

Whatever - if you have vftpd (likely) then you'll have a file called

/etc/vsftpd/ftpusers

adding the users username to this file disables ftp access:

# echo <username> >> /etc/vsftpd/ftpusers

to disable ssh access:

# chsh -s /sbin/nologin <username>


All times are GMT -5. The time now is 09:44 AM.