delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/01/01/13:30:25

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Sat, 1 Jan 2005 13:30:15 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Sameer Tupe <sameertupe AT yahoo DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Cygwin SSHD server - Restricting User access to their home directory
In-Reply-To: <1442622650.20050101172426@familiehaase.de>
Message-ID: <Pine.GSO.4.61.0501011323550.2820@slinky.cs.nyu.edu>
References: <1442622650 DOT 20050101172426 AT familiehaase DOT de>
MIME-Version: 1.0

On Sat, 1 Jan 2005, Sameer Tupe wrote:

> Hi,
>      I am having SSHD running on my machine and i am using CORE FTP
> light to connect to my server. I am able to connect but problem here is
> after successful connect i can go to any place in C:\cygwin. Even guest
> login can access home/Administrator directory which is highly
> undesirable for me.
>
>      I want to restrict the access of my user to his local home
> directory and whatever symbolic links present in that should be allowed.
> Apart from symboloc link user should not be able to go out of his own
> home directory and in the worst case in other users home directory.
>
>      Can soemone help me.  I tried this on WinXp home edition.

First off, please take a look at the Cygwin problem reporting guidelines
at <http://cygwin.com/problems.html>, particularly the bit about attaching
(as an uncompressed text attachment) the output of "cygcheck -svr" on your
machine.

Secondly, you should be clearer about what you need done.  If you simply
want to make sure that the particular user can't access given directories,
change the access mode on those directories ("chmod o-rwx /home/Admin").
If you want the user to not be able to get out of their home directory at
all, you'll need to set up a chroot jail -- search the archives for
"chroot".
	Igor
P.S. Oh, and Happy New Year, everyone!
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019