Mail Archives: cygwin/2007/09/03/16:50:39
-----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 <ebb9 AT byu DOT net>
^^^^
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/
- Raw text -