* Captive Accounts
@ 1998-06-05 4:00 Stuart Grierson
1998-06-05 4:00 ` Serguei Patchkovskii
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Stuart Grierson @ 1998-06-05 4:00 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=x-user-defined, Size: 522 bytes --]
We have a requirement to set up an account so remote users can only
download files via ftp.� I have done this by make their shell
/bin/false, and editing the /etc/shells file.� This allows ftp, but not
telnet.� The only problem that I can see with this is that they can't
change their password� -� that and the ability to move around in ftp and
grab sensitive files:)
Does anyone have any ideas on how to set this sort of 'captive account'
up??
Cheers,
Jason Wicks
email: jason.wicks@vpx.secv.telememo.au
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Captive Accounts
1998-06-05 4:00 Captive Accounts Stuart Grierson
@ 1998-06-05 4:00 ` Serguei Patchkovskii
1998-06-05 4:00 ` Sergey Yu. Bobrovnikov
1998-06-10 4:00 ` Gino Bernucci C.
2 siblings, 0 replies; 4+ messages in thread
From: Serguei Patchkovskii @ 1998-06-05 4:00 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 943 bytes --]
Stuart Grierson (grierson@ozemail.com.au) wrote:
: /bin/false, and editing the /etc/shells file.� This allows ftp, but not
: telnet.� The only problem that I can see with this is that they can't
: change their password� -� that and the ability to move around in ftp and
: grab sensitive files:)
: Does anyone have any ideas on how to set this sort of 'captive account'
: up??
Since the DU ftpd apparently does not support RESTRICT keyword in /etc/ftpusers,
you'll have to pick up an ftp server which does. wu-ftpd should do. Setting
/usr/bin/passwd as the login shell for the ftp-only users will allow them to
change their password. This however may create security problems on some unices
(I do not know if this is true for DU), so to be on the safe side you may want
to make a small *statically* *linked* login wrapper which will clear the
environment and exec /usr/bin/passwd (or yppasswd, if you use NIS).
Cheers,
/Serge.P
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Captive Accounts
1998-06-05 4:00 Captive Accounts Stuart Grierson
1998-06-05 4:00 ` Serguei Patchkovskii
@ 1998-06-05 4:00 ` Sergey Yu. Bobrovnikov
1998-06-10 4:00 ` Gino Bernucci C.
2 siblings, 0 replies; 4+ messages in thread
From: Sergey Yu. Bobrovnikov @ 1998-06-05 4:00 UTC (permalink / raw)
Stuart Grierson wrote:
> We have a requirement to set up an account so remote users can only
> download files via ftp. I have done this by make their shell
> /bin/false, and editing the /etc/shells file. This allows ftp, but not
> telnet. The only problem that I can see with this is that they can't
> change their password - that and the ability to move around in ftp and
> grab sensitive files:)
>
> Does anyone have any ideas on how to set this sort of 'captive account'
> up??
>
> Cheers,
>
> Jason Wicks
> email: jason.wicks@vpx.secv.telememo.au
I think You need to set /bin/passwd as a shell.
Sergey.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Captive Accounts
1998-06-05 4:00 Captive Accounts Stuart Grierson
1998-06-05 4:00 ` Serguei Patchkovskii
1998-06-05 4:00 ` Sergey Yu. Bobrovnikov
@ 1998-06-10 4:00 ` Gino Bernucci C.
2 siblings, 0 replies; 4+ messages in thread
From: Gino Bernucci C. @ 1998-06-10 4:00 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 944 bytes --]
Stuart Grierson escribi� en mensaje <35776F39.52F97B17@ozemail.com.au>...
>We have a requirement to set up an account so remote users can only
>download files via ftp. I have done this by make their shell
>/bin/false, and editing the /etc/shells file. This allows ftp, but not
>telnet. The only problem that I can see with this is that they can't
>change their password - that and the ability to move around in ftp and
>grab sensitive files:)
>
>Does anyone have any ideas on how to set this sort of 'captive account'
>up??
>
>Cheers,
>
You must add at the bottom of the .profile:
exec passwd
and make the user shell : /bin/ksh, for example
With this changes, the user have the ability to make a telnet to your
server, but he/she only can change his/her password.
The ability to move around in ftp can be restricted changing the permission
of the files and directories that you don't want the users can access.
Regards,
Gino
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1998-06-10 4:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-06-05 4:00 Captive Accounts Stuart Grierson
1998-06-05 4:00 ` Serguei Patchkovskii
1998-06-05 4:00 ` Sergey Yu. Bobrovnikov
1998-06-10 4:00 ` Gino Bernucci C.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox