resticting user to login using putty on port 21(ftp)

Hi,

I am having small query and wheather it is possible ? that user can transfer the files using ftp client examples (filezilla) , but he can not use putty to login using ftp and run the commands,

Regards,

Manoj

There's no way to achieve that - as long as you have ftp daemon, anyone can access it via telnet.
Some FTP clients have command line as well, so your users will be able to execute commands, to some extent, and depending on the client. You should rather think of restricted access, and only to trusted persons.

  1. Use a ftp-server that has no escape to exit to a shell
  2. Give the user '/sbin/nologin' as "shell" (last column in /etc/passwd for this user)