Set up FTP user with ProFTPD on Ubuntu
173
Just had this problem with Ubuntu 12.04.2 and ProFTP. I had my FTP user's shell set to /bin/false and ProFTP wouldn't allow that to connect (it showed Error 530).
What I did was followed I uncommented this on my /etc/proftpd/proftpd.conf:
RequireValidShell Off
And I also added /bin/false
to my /etc/shells file.
Restart ProFTP and you're good!
Hope this saves someone time.
Related videos on Youtube
Author by
Fahad Murtaza
Updated on September 17, 2022Comments
-
Fahad Murtaza almost 2 years
I have date in format
2013-08-05 12:45:56
. But I want to store this in format2013-08-05 00:00:00
in database.The thing I want is, I don't want to save the time in database.
I am using:
cmd.Parameters.AddWithValue("@VoucherDate", VoucherDate.Date);
But still it is saving the time. Any suggestions?
-
Fahad Murtaza almost 11 yearsis there no any other way that I pragmatically save ONLY the date?
-
Mikael Östberg almost 11 yearsThis is not an optimal solution and the reason for this is because dates should be stored as dates (which is actually a 3 byte number). This answer casts the date into a string which is just wrong for all purposes but presentation. Please see the answer from @christiandev instead.
-
Daniele almost 11 years@Mikael Östberg You are right, i just showed a fast solution, the
ToShortDateString
should be used for presentation pourpouse as you stated