delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/12/29/22:11:34

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=0.1 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Date: Thu, 30 Dec 2010 04:10:51 +0100 (CET)
From: "Kurt Franke" <Kurt-Franke AT web DOT de>
To: cygwin AT cygwin DOT com
Message-ID: <1387537919.3697182.1293678651973.JavaMail.fmail@mwmweb034>
Subject: privilege problem with permanent virtual drives defined as DOS devices
MIME-Version: 1.0
Sensitivity: Normal
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

Hello,


a privilege problem occures with permanent virtual drives defined
as DOS devices.

$> uname -a
CYGWIN_NT-6.0 meow2 1.7.7(0.230/5/3) 2010-08-31 09:58 i686 Cygwin


when have defined dos devices to access a particular path as a 
permanent virtual drive in each session like the following example:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices]
"K:"="\\??\\C:\\\\oracle\\doc\\10.2\\doc"

no access is possible with a normal user or an admin user with a 
restricted token - only users with an elevated admin token can 
access it

if explicitly mounted a "No such file or directory" is issued when
trying to access the mount point via ls or df while not using an 
elevated admin token 

as normal user

$_%> df /k
df: `/k': No such file or directory
df: no file systems processed

as elevated admin

$_#> df /k
Filesystem           1K-blocks      Used Available Use% Mounted on
K:                   110687816  81352392  29335424  74% /k


if not explicitly mounted no cygdrive entry occures for such users 



this privilege problem didn't occure with version before 1.7

$> uname -a
CYGWIN_NT-6.0 meow2 1.5.24(0.156/4/2) 2007-01-31 10:57 i686 Cygwin



regards

kf

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

- Raw text -


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