FTP-only account with welcome message

FTP-only account with welcome message

Post by Reinhard Eigne » Fri, 21 Dec 2001 06:06:26



Hi all!

I'm running Tru64 5.1 and I want to make an user account with
ftp access only (no telnet function and so on).
If the ftp user will login he should get a welcome message like 'welcome on
....'
All ftp users sould get this message.

Any ideas?
Thanks in advance!

Reinhard

 
 
 

FTP-only account with welcome message

Post by Emmanuel Choqu » Fri, 21 Dec 2001 18:17:57



> Hi all!

> I'm running Tru64 5.1 and I want to make an user account with
> ftp access only (no telnet function and so on).
> If the ftp user will login he should get a welcome message like 'welcome on
> ....'
> All ftp users sould get this message.

> Any ideas?
> Thanks in advance!

> Reinhard

Banner message sould be in /etc/banner. You'll have to create it,
default is not in there.

add /usr/bin/true in /etc/shells to get getusershell(3) happy (called
by ftpd)
create your ftponly user with /usr/bin/true as default shell(adduser
script)
This user must not appear in /etc/ftpusers which logs exactly the
opposite of his name : users that won't be able to use ftp.

Actually, RTFM man ftpd will tell you everything :-)

Cheers

Emmanuel

 
 
 

FTP-only account with welcome message

Post by Reinhard Eigne » Sat, 22 Dec 2001 07:22:26


Hi!

I tried it as described in the ftpd man page. Now I get a ftp prompt and I
can type ftp or anonymous as user and then ftp says "guest login ok, send
ident as password"
What means "ident"?? I cannot type in any password.
my ftp-user doesn't have a password.
Can anyone tell me, what's wrong??




Quote:> > Hi all!

> > I'm running Tru64 5.1 and I want to make an user account with
> > ftp access only (no telnet function and so on).
> > If the ftp user will login he should get a welcome message like 'welcome
on
> > ....'
> > All ftp users sould get this message.

> > Any ideas?
> > Thanks in advance!

> > Reinhard

> Banner message sould be in /etc/banner. You'll have to create it,
> default is not in there.

> add /usr/bin/true in /etc/shells to get getusershell(3) happy (called
> by ftpd)
> create your ftponly user with /usr/bin/true as default shell(adduser
> script)
> This user must not appear in /etc/ftpusers which logs exactly the
> opposite of his name : users that won't be able to use ftp.

> Actually, RTFM man ftpd will tell you everything :-)

> Cheers

> Emmanuel

 
 
 

FTP-only account with welcome message

Post by Trevor Osatch » Sat, 22 Dec 2001 09:19:10


On Thu, 20 Dec 2001 23:22:26 +0100, "Reinhard Eigner"


>Hi!

>I tried it as described in the ftpd man page. Now I get a ftp prompt and I
>can type ftp or anonymous as user and then ftp says "guest login ok, send
>ident as password"
>What means "ident"?? I cannot type in any password.
>my ftp-user doesn't have a password.
>Can anyone tell me, what's wrong??

Nothing.  It is customary to use your email address as a password on
anonymous servers.  Just a friendly 'I was here' when you access
public information.





>> > Hi all!

>> > I'm running Tru64 5.1 and I want to make an user account with
>> > ftp access only (no telnet function and so on).
>> > If the ftp user will login he should get a welcome message like 'welcome
>on
>> > ....'
>> > All ftp users sould get this message.

>> > Any ideas?
>> > Thanks in advance!

>> > Reinhard

>> Banner message sould be in /etc/banner. You'll have to create it,
>> default is not in there.

>> add /usr/bin/true in /etc/shells to get getusershell(3) happy (called
>> by ftpd)
>> create your ftponly user with /usr/bin/true as default shell(adduser
>> script)
>> This user must not appear in /etc/ftpusers which logs exactly the
>> opposite of his name : users that won't be able to use ftp.

>> Actually, RTFM man ftpd will tell you everything :-)

>> Cheers

>> Emmanuel

Trevor Osatchuk

Any man whose errors take ten years to correct is quite a man.
          - J. Robert Oppenheimer, speaking of Albert Einstein

 
 
 

FTP-only account with welcome message

Post by Reinhard Eigne » Sat, 22 Dec 2001 14:50:06


Quote:> >Hi!

> >I tried it as described in the ftpd man page. Now I get a ftp prompt and
I
> >can type ftp or anonymous as user and then ftp says "guest login ok, send
> >ident as password"
> >What means "ident"?? I cannot type in any password.
> >my ftp-user doesn't have a password.
> >Can anyone tell me, what's wrong??

> Nothing.  It is customary to use your email address as a password on
> anonymous servers.  Just a friendly 'I was here' when you access
> public information.

But the ftp doesn't accept any password. The "normal" users are working
fine.
the /etc/passwd:
.
.
.
ftp::202:15::/usr/users/ftp:/bin/sh

Is this correct?
What else I have to do, that the ftp login works?`





> >> > Hi all!

> >> > I'm running Tru64 5.1 and I want to make an user account with
> >> > ftp access only (no telnet function and so on).
> >> > If the ftp user will login he should get a welcome message like
'welcome
> >on
> >> > ....'
> >> > All ftp users sould get this message.

> >> > Any ideas?
> >> > Thanks in advance!

> >> > Reinhard

> >> Banner message sould be in /etc/banner. You'll have to create it,
> >> default is not in there.

> >> add /usr/bin/true in /etc/shells to get getusershell(3) happy (called
> >> by ftpd)
> >> create your ftponly user with /usr/bin/true as default shell(adduser
> >> script)
> >> This user must not appear in /etc/ftpusers which logs exactly the
> >> opposite of his name : users that won't be able to use ftp.

> >> Actually, RTFM man ftpd will tell you everything :-)

> >> Cheers

> >> Emmanuel

> Trevor Osatchuk

> Any man whose errors take ten years to correct is quite a man.
>           - J. Robert Oppenheimer, speaking of Albert Einstein

 
 
 

FTP-only account with welcome message

Post by Emmanuel Choqu » Sat, 22 Dec 2001 20:48:55


What do you want exactly :

2 options for ftp access :

-1- The one descibed in my answer is a ftp only access, with sign on :
the user will have to sign and enter his password. This password is
created by root using standard passwd ftponly <CR>

-2- Anonymous access, in this case the ftp username is 'anonymous' and
password prompt is not an actual password, but the polite anonymous
ftp accesser will leave his email account ( actually loosing the
anonymousness of the access! ).'ftp' is declared in /etc/passwd, but
'anonymous' is the username you must use. BTW, set ~ftp and
subdirectory as described in man ftpd, otherwise there are *huge*
security holes and issues.


> > >Hi!

> > >I tried it as described in the ftpd man page. Now I get a ftp prompt and
>  I
> > >can type ftp or anonymous as user and then ftp says "guest login ok, send
> > >ident as password"
> > >What means "ident"?? I cannot type in any password.
> > >my ftp-user doesn't have a password.
> > >Can anyone tell me, what's wrong??

> > Nothing.  It is customary to use your email address as a password on
> > anonymous servers.  Just a friendly 'I was here' when you access
> > public information.

> But the ftp doesn't accept any password. The "normal" users are working
> fine.
> the /etc/passwd:
> .
> .
> .
> ftp::202:15::/usr/users/ftp:/bin/sh

> Is this correct?
> What else I have to do, that the ftp login works?`

 
 
 

FTP-only account with welcome message

Post by Reinhard Eigne » Tue, 25 Dec 2001 02:03:22


Hi!

I want one ftp only user and if it's possible one anonymous ftp account.
My ftp program (windows commander) is not able to connect with user
anonymous and eMail as password.
The security hole is not so high, because this AlphaStation is in my private
network, and you can only access the computer via ISDN dial-in. My router
checks via CHAP trhe connection. Via internet it's not possible because the
router uses PAT.

I'll try that again!
Thanks for helping and a merry Christmas!



> What do you want exactly :

> 2 options for ftp access :

> -1- The one descibed in my answer is a ftp only access, with sign on :
> the user will have to sign and enter his password. This password is
> created by root using standard passwd ftponly <CR>

> -2- Anonymous access, in this case the ftp username is 'anonymous' and
> password prompt is not an actual password, but the polite anonymous
> ftp accesser will leave his email account ( actually loosing the
> anonymousness of the access! ).'ftp' is declared in /etc/passwd, but
> 'anonymous' is the username you must use. BTW, set ~ftp and
> subdirectory as described in man ftpd, otherwise there are *huge*
> security holes and issues.




- Show quoted text -

Quote:> > > >Hi!

> > > >I tried it as described in the ftpd man page. Now I get a ftp prompt
and
> >  I
> > > >can type ftp or anonymous as user and then ftp says "guest login ok,
send
> > > >ident as password"
> > > >What means "ident"?? I cannot type in any password.
> > > >my ftp-user doesn't have a password.
> > > >Can anyone tell me, what's wrong??

> > > Nothing.  It is customary to use your email address as a password on
> > > anonymous servers.  Just a friendly 'I was here' when you access
> > > public information.

> > But the ftp doesn't accept any password. The "normal" users are working
> > fine.
> > the /etc/passwd:
> > .
> > .
> > .
> > ftp::202:15::/usr/users/ftp:/bin/sh

> > Is this correct?
> > What else I have to do, that the ftp login works?`