X-Spam-Check-By: sourceware.org Message-ID: <46DC73B0.60501@byu.net> Date: Mon, 03 Sep 2007 14:50:56 -0600 From: Eric Blake Reply-To: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Tyler Durden , cygwin AT cygwin DOT com Subject: Re: umount /cygdrive/c References: <701518 DOT 17390 DOT qm AT web56201 DOT mail DOT re3 DOT yahoo DOT com> In-Reply-To: <701518.17390.qm@web56201.mail.re3.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 http://cygwin.com/acronyms/#PPIOSPE - forwarding to list http://cygwin.com/acronyms/#TOFU - reformatting top-post http://cygwin.com/acronyms/#PCYMTWLL - reformatting long lines According to Tyler Durden on 9/3/2007 2:31 PM: > From: Eric Blake ^^^^ http://cygwin.com/acronyms/#PCYMTNQREAIYR - munging raw addresses > Probably because there isn't a way (you can't make drive letters > disappear). However, you can change what the cygdrive prefix is, using > 'mount -c', and some people on this list change it to / instead of > /cygdrive/. What are you hoping to accomplish by removing them, anyway? > > Hi, Eric. Thanks for your reply. I am setting up an SSHD and I don't want users to traverse directories by typing /cygdrive/c or any of the other drive letters. I know I can restrict them via NTFS but I have over 200 local accounts on this server and the directory permission is quite complicated. It would be lot easier if I could just restrict them to /something. But searching for doing this under sshd didn't really turn up anything that I could use. I tried to use the chroot command w/o any luck or the effect i wanted. Sorry, but on cygwin, chroot does NOT hide drives. If someone has access to a drive outside of cygwin, then there is no way that cygwin can prevent that access. You are mistaken if you think that changing the cygdrive prefix adds any security to your system. > > I just typed, mount -c /hidden and now my mountpoints are /hidden/c etc. this should do the trick. Thanks for your help. That only obscures the name, but doesn't hide it. - -- Don't work too hard, make some time for fun as well! Eric Blake ebb9 AT byu DOT net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG3HOr84KuGfSFAYARAm8RAKCewW9HRiyTy02pWLaZwzrrvMJJNwCfd7kY ddbDomn91z5/5ifpzSpOPh0= =3NKx -----END PGP SIGNATURE----- -- 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/