Re: scp/sftp : how to allow GET only ?

From: David Magda (dmagda+trace050401_at_ee.ryerson.ca)
Date: 05/31/05

  • Next message: S P Arif Sahari Wibowo: "Re: Brute force attack, exponential delay for reconnect?"
    Date: Mon, 30 May 2005 20:48:06 -0400
    
    

    bluefrederic@yahoo.fr writes:

    > Hi, I would like to configure scp or sftp to allow GET of remote
    > files only, while all remote ssh commands and PUT of local files are
    > denied. Does anyone know how to proceed ? Thanks a lot - Frederic

    Change the permissions of the files and directories that you want
    protected so the users logging in don't have write permissions (chmod
    444 file, chmod 555 dir).

    -- 
    David Magda <dmagda at ee.ryerson.ca> 
    Because the innovator has for enemies all those who have done well under 
    the old conditions, and lukewarm defenders in those who may do well 
    under the new. -- Niccolo Machiavelli, _The Prince_, Chapter VI 
    

  • Next message: S P Arif Sahari Wibowo: "Re: Brute force attack, exponential delay for reconnect?"

    Relevant Pages

    • Re: File and Folder permissions..
      ... Do not set fixed permissions that may be wrong, use chmod g+w to add write access for the group. ... Backup,,, A cronjob that change ctime every hour will tag all files as candidates for incremental backup, only change the files that need to be changed. ... A file has one owner, and if someone need to change it, just make a copy and change the copy, so your wife now are the owner of her version. ...
      (alt.os.linux.suse)
    • Re: apache permission problem please help
      ... Ok as anyone reading this thread knows i have huge mess on hands. ... chmod -R 701 home ... mailclients but i moved one and had to modify the permissions all over ... >>apache was unable to use these files. ...
      (freebsd-questions)
    • Re: setting file permissions on a web server
      ... If permissions are kept intact you can ... you transfer first and chmod on the server. ... Since I'm running Windows, I assume that I can't run the chmod line on my own computer. ... My web server uses Unix, but is it possible for me to have access to a command line for the server? ...
      (comp.lang.python)
    • Re: Safe Mode & File Upload
      ... with permissions 0755 and I can create files with a Script owned by the ... SafeMode says, that the directory belongs to the PHP-Interpreter. ... I know that chmod() doesn't change the owner, ...
      (comp.lang.php)
    • Re: Lose execute privileges on owner files?
      ... I have a bash shell script that I chmod to 777. ... What are the permissions of the parent directory? ... alarm in some manner (send you mail, write to file - I'd have it include ...
      (comp.os.linux)