delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/01/03/12:27:36

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <4.3.1.2.20020103121525.0169aee8@pop.ma.ultranet.com>
X-Sender: lhall AT pop DOT ma DOT ultranet DOT com
X-Mailer: QUALCOMM Windows Eudora Version 4.3.1
Date: Thu, 03 Jan 2002 12:24:24 -0500
To: Tiffany Chan <ikbea88 AT yahoo DOT co DOT uk>, cygwin AT cygwin DOT com
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: mount point
In-Reply-To: <20020103132548.70764.qmail@web21204.mail.yahoo.com>
Mime-Version: 1.0

At 08:25 AM 1/3/2002, Tiffany Chan wrote:
>My hard disk have c: d: e: f: drive. In Cygwin, 
>
>$ mount
>D:\cygwin\bin on /usr/bin type system (binmode)
>D:\cygwin\lib on /usr/lib type system (binmode)
>D:\cygwin on / type system (binmode)
>D:\oracle on /oracle type system (textmode)
>e: on /cygdrive/e type system (textmode)
>f: on /cygdrive/f type system (textmode)
>c: on /cygdrive/c type user (textmode, nomount)
>d: on /cygdrive/d type user (textmode, nomount)
>
>Use user account (not administrator), i cannot "cd" to
>c: and d: drive initially. After i logon w2k console
>using that user account, I can "cd" to c: and d: drive
>using the user account.
>
>I don't want user "cd" to c: and d: drive (except for
>winnt\system32 or some useful folder, I will mount it
>later). What can I do ?
>
>I don't want to set permission using "w2k security
>tabs", especially files and folders under c:\winnt.
>
>What can I do ? Thanks.


If you're trying to restrict access to certain paths, mount won't help
you here.  mount only maps a DOS-style path to a POSIX one.  Whether or
not a DOS-style path is mounted to a POSIX equivalent, the user can 
always access the path using DOS syntax.  So one can get to the C drive
using "C:\\" in the Cygwin shells or "C:\" at a DOS prompt ("C:/" is also
a valid syntax for Cygwin tools).

If you want security, you need to set the security in the O/S.
Check out setfacl.exe to manipulate permissions from the command line
if that's preferable.



Larry Hall                              lhall AT rfk DOT com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
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/

- Raw text -


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