This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mount point


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@rfk.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]