LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-05-2002, 07:11 AM   #1
syphon00
Member
 
Registered: Aug 2002
Posts: 33

Rep: Reputation: 15
change welcome message


just a quick question about changing the ftp welcome message
where is the file and how do I direct to it?

thanks
 
Old 09-05-2002, 08:08 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
see the file /etc/ftpaccess

# Messages displayed to the user
message /welcome.msg login


this says to output the file /var/ftp/welcome.msg to the user when they login


this applies to FTP server (Version wu-2.6.1-16.7x.1)
 
Old 09-05-2002, 09:43 AM   #3
syphon00
Member
 
Registered: Aug 2002
Posts: 33

Original Poster
Rep: Reputation: 15
that files does not exist in the directory u mentioned
so I created one but it doesn't show when I log in to FTP
 
Old 09-05-2002, 09:47 AM   #4
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
which ftp server are you using? might help us helping you!
 
Old 09-05-2002, 09:59 AM   #5
syphon00
Member
 
Registered: Aug 2002
Posts: 33

Original Poster
Rep: Reputation: 15
wu-ftp
and I have looked around on the net and some say that
the msg file should be in the etc folder

thanks
 
Old 09-05-2002, 10:25 AM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
that really depends on the path given in the ftpaccess file

message /welcome.msg login

this says that the file welcome.msg will be in the root folder of ftp which is /var/ftp/ on my system

so I have a file /var/ftp/welcome.msg

check to see where a user is when they login and put it there
 
Old 09-05-2002, 10:26 AM   #7
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
if a user logs in to their home folder then the file will need to be in their home folder

you might want to use .message so it is hidden
 
Old 09-05-2002, 10:34 AM   #8
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
normall anonymous ftp is locked into an ftp root folder, you do not want to have anonymous users accessing files outside of it so the needed files are provided in $ftproot
 
Old 09-05-2002, 10:39 AM   #9
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
if you want it in etc then put it in /var/ftp/etc

and change the ftpaccess file to

message /etc/welcome.msg login

however a user logging in with a browser will not know to look for a message in etc and will not be likely to see it

if they open your server in a browser and see welcome.msg then maybe they will read it
 
Old 09-05-2002, 10:58 AM   #10
syphon00
Member
 
Registered: Aug 2002
Posts: 33

Original Poster
Rep: Reputation: 15
Talking

thanks a lot, that worked really well
one more question though, when I hide the message file
using .welcome.msg it no longer shows up when logging
into the ftp
 
Old 09-05-2002, 12:24 PM   #11
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
you mean you cannot see the file listed, or it does not display the message when you login?

I would make it visible if your clients are using a browser, I would hide it if they login with a shell to their root folder

for anonymous ftp I would make it visible
 
Old 09-05-2002, 01:09 PM   #12
syphon00
Member
 
Registered: Aug 2002
Posts: 33

Original Poster
Rep: Reputation: 15
I mean if I hide the file the welcome message won't display when
I login,
I'm setting this up for a guest account.
 
Old 09-05-2002, 03:46 PM   #13
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
put this in /etc/ftpaccess

message .message cwd=*

then make the .message file in ftp root folder
 
Old 09-06-2002, 07:22 AM   #14
syphon00
Member
 
Registered: Aug 2002
Posts: 33

Original Poster
Rep: Reputation: 15
actually that line was akready in ftpaccess, didn't seem to make a differences though
 
Old 09-06-2002, 11:55 AM   #15
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I created a file on mine in /var/ftp called .message

when I login I see the message. Not sure what the problem could be unless it's file permissions

Last edited by DavidPhillips; 09-06-2002 at 03:34 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change welcome message for Proftpd bgriesi Linux - Networking 2 07-14-2014 04:14 AM
Change Forbidden message helpme0904 Linux - Newbie 1 11-16-2005 12:57 PM
Change Welcome Message Zebe SUSE / openSUSE 1 03-25-2005 10:21 PM
Change PHP error message. agallant Programming 1 03-10-2005 04:21 PM
how to change ssh welcome message jolly Linux - General 1 04-13-2003 08:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration