How to make Directory message working for vsftp

General support questions
mhasan1981
Posts: 3
Joined: 2017/11/07 02:26:39

How to make Directory message working for vsftp

Postby mhasan1981 » 2017/11/07 14:04:23

Hi,
I was trying to display a message for each FTP directory but failed as I am not sure about the location of the message. Where should I keep the "message" file?

I tried as below

dirmessage_enable=YES
message_file=.message

#cd /etc/vsftpd
#touch message
#vim message
" Hi be nice "
#chmod 777 message

I would be happy if anyone sends me an example config. Thanks

// MD HASAN

User avatar
TrevorH
Forum Moderator
Posts: 21206
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to make Directory message working for vsftp

Postby TrevorH » 2017/11/07 14:06:51

Where should I keep the "message" file?


In the directory.

message_file=.message
...
#touch message
#vim message


message != .message

File names that start with a . are hidden from normal view. You didn't create one called .message.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

mhasan1981
Posts: 3
Joined: 2017/11/07 02:26:39

Re: How to make Directory message working for vsftp

Postby mhasan1981 » 2017/11/07 23:26:43

Hi TrevorH,
Thanks a lot for your reply. I am a very beginner for centos and haven't made it works yet. Could please add a sample config here for me?

Thanks in advance.

mhasan1981
Posts: 3
Joined: 2017/11/07 02:26:39

Re: How to make Directory message working for vsftp

Postby mhasan1981 » 2017/11/08 00:54:49

Hi TrevorH,

Just have made it working. I didn't consider .message as a hidden file. Thanks again.