LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] SCP

[ILUG] SCP

Conor Daly conor.daly at oceanfree.net
Thu May 16 19:25:46 IST 2002


Somebody on the secureshell list suggested this...

> Can anyone tell me if it's possible to run the sftp subsystem, but
disallow
> interactive logins?

        http://www.snailbook.com/faq/restricted-scp.auto.html


Someone else said...

>
> Give sftp-server as the users shell.

More generally, I think you can use a restricted shell that accepts
commands to run via the -c argument, like standard shells, but
will only run a few selected commands, like say, sftp-server and ls

The sendmail restricted shell "smrsh" might be adapted for this
porpose, or you could write a perl script (be careful about shell
metacharacters, and pass lists to system or exec, not strings.)

Conor
-- 
Conor Daly <conor.daly at oceanfree.net>

Domestic Sysadmin :-)
---------------------
Faenor.cod.ie
  5:01pm  up 24 days, 22:40,  1 user,  load average: 0.19, 0.05, 0.01
Hobbiton.cod.ie
  4:09pm  up 23 days,  6:36,  2 users,  load average: 0.05, 0.06, 0.07




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell