Originally Posted by nagavinodh
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
adding the users username to this file disables ftp access:
# echo <username> >> /etc/vsftpd/ftpusers
to disable ssh access:
# chsh -s /sbin/nologin <username>