Wow, wow, wow :-)

It works wery well. Thank you wery much.

I tried the solution from first response but it desn't work. In the second:
I don't know thet it protect me against login?

By the way, I don't know option [-t]. I'm using openssh 2.9p2 and in my
manuals it isn't documented.



Grzegorz Sikora

Communications Products and Services Department
Polska Telefonia Cyfrowa Sp. z o.o.

Specialist
mob.+48 602 20 6060
tel. +48 22 413 6060
email: [EMAIL PROTECTED]



-----Original Message-----
From: Peter, Attila [mailto:[EMAIL PROTECTED]]
Sent: 7 sierpnia 2001 12:02
To: 'Sikora, Grzegorz SD'; [EMAIL PROTECTED]
Subject: RE: how to copy files without login


Grzegorz:

Let's suppose you want these users to copy files only to a certain
directory.
(You wouldn't allow them to upload files anywhere, would you?)

You need to create a custom login shell (call it scp_shell) for these users:
--------------------
#!/bin/sh
#
exec /usr/bin/scp -t UPLOAD_DIR
--------------------
You can put this script to /usr/local/bin and you have to register it in
/etc/shells.

With this solution your users can upload files but only relative to
UPLOAD_DIR directory.
You can replace UPLOAD_DIR with $HOME if you want them to
upload to their home directories instead of a common one. Or you can
create a symlink in the home directory of the user pointing to a user
specific location outside of $HOME.

On the client side you may omit the remote destination when you invoke scp
because UPLOAD_DIR will be used.
The command your users have to issue is:
'scp SOURCE your_server:'
You need the colon at the end !!

Hope this helps.

Attila Peter
EDS


-----Original Message-----
From: Sikora, Grzegorz SD [mailto:[EMAIL PROTECTED]]
Sent: Montag, 6. August 2001 15:07
To: [EMAIL PROTECTED]
Subject: how to copy files without login


Hello,

I'd like use scp to allow copy files by some users (I know this users) to my
server. But I don't want permit them to login to my serwer. 
Is it possible to configure openssh in this way?

Grzegorz Sikora

Reply via email to