Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <00c201c1eb00$92b61b60$03dad741@2kiisikon> From: "Chris Ellsworth" To: References: <003401c1eaee$b6458550$03dad741 AT 2kiisikon> <20020423194237 DOT GA11970 AT redhat DOT com> Subject: Re: Cygdrive mounts Date: Tue, 23 Apr 2002 12:53:43 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 but if any unix user that know what im doing can doa mount and .. well now the obscure is not so obscure any more but do think the best option si to do ethe deny rights to the group that comes in from ssh ----- Original Message ----- From: "Christopher Faylor" To: Sent: Tuesday, April 23, 2002 12:42 PM Subject: Re: Cygdrive mounts > On Tue, Apr 23, 2002 at 12:27:45PM -0700, Michael A Chase wrote: > >On Tue, 23 Apr 2002 10:45:52 -0700 Chris Ellsworth wrote: > > > >> I am doing install of this for sshd on windows for clients for the > >> purpose of forwarding ports for access such as VNC, pcanywhere FTP and > >> other items and i dont want to give access to the other areas of the > >> drives. I tryed the umount command and have not sucessfully removed > >> it. maybe i am doing something but here is what i have done. > >> > >> [admin AT 2k-iis-ikon]~:{103}:$ mount > >> c:\cygwin\bin on /usr/bin type system (binmode) > >> c:\cygwin\lib on /usr/lib type system (binmode) > >> c:\cygwin on / type system (binmode) > >> c: on /cygdrive/c type user (textmode,noumount) > >> f: on /cygdrive/f type user (textmode,noumount) > >> [admin AT 2k-iis-ikon]~:{104}:$ umount -U > >> [admin AT 2k-iis-ikon]~:{105}:$ mount > >> c:\cygwin\bin on /usr/bin type system (binmode) > >> c:\cygwin\lib on /usr/lib type system (binmode) > >> c:\cygwin on / type system (binmode) > >> c: on /cygdrive/c type user (textmode,noumount) > >> f: on /cygdrive/f type user (textmode,noumount) > >> [admin AT 2k-iis-ikon]~:{106}:$ > > > >You are likely doomed to disappointment. Even if you disable /cygdrive/c, > >c:/xxx will probably still work. Perhaps sshd will allow you to specify a > >local root. You can link or mount whatever you want to allow access to > >from inside there. > > > >I tried "umount -U -c" and "umount -c", but neither worked for me, probably > >a local system problem. I was able to delete the information in the > >registry (HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2), > >but I don't know what other side effects might result so I'm putting it > >back right away. > > 'umount -U -c' and 'umount -c' are the same thing. > > If you want to remove something from the system mount table use the > options mentioned in 'umount -h' for manipulating the system mount > table. > > However, cygwin defaults to /cygdrive, so even if you remove /cygdrive > settings from the registry, /cygdrive will still work. > > It might be possible to mount /cygdrive to something like '/:::' or > something, obfuscating its use. > > cgf > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Bug reporting: http://cygwin.com/bugs.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/