rowly 0 Junior Poster in Training

Hi Guys,

i was trying to create vsftpd server with virtual users to be specific.
reference : http://www.mmncs.com/2011/07/how-to-setup-an-ftp-server-with-virtual-usersno-accounts-using-vsftpd-on-ubuntu/2/

i got to a point where am having a problem with the PAM configuration

cp /etc/pam.d/vsftpd /etc/pam.d/vsftpd_orig ------passed
cat /dev/null > /etc/pam.d/vsftpd ------failed

thats the error am getting:

tom@tom:~$ cat /dev/null > /etc/pam.d/vsftpd
[1] 9193
gt: command not found
[1]+ Done cat /dev/null
-bash: /etc/pam.d/vsftpd: Permission denied
tom@tom:~$

tom@tom:~$ sudo cat /dev/null > /etc/pam.d/vsftpd
-bash: /etc/pam.d/vsftpd: Permission denied
tom@tom:~$

so i try with sudo and using > instead of >

anyhelp would be appreciated !