From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: [EXTERNAL] Re: Issues hiding /dev virtual directory from SFTP users
Date: Tue, 28 Nov 2017 14:27:00 -0000 [thread overview]
Message-ID: <20171128142706.GU547@calimero.vinschen.de> (raw)
In-Reply-To: <2512145081DA00479295CF769D4C8F350128B364F1@BNVMMSX0A61086A.polysci.com>
[-- Attachment #1: Type: text/plain, Size: 1702 bytes --]
Please, don't top-post.
On Nov 28 12:50, snorthrop@moog.com wrote:
>> From: Andrey Repin [mailto:anrdaemon@yandex.ru]
>> Sent: Monday, November 27, 2017 7:00 PM
>> To: Northrop, Shad <snorthrop@moog.com>; cygwin@cygwin.com
>> Subject: [EXTERNAL] Re: Issues hiding /dev virtual directory from SFTP users
>>
>> Greetings, snorthrop@moog.com!
>>
>> > Hello,
>>
>> > I am trying to get sftp secured using OpenSSH. I have been able to jail
>> > the users to their home directory and remove the cygdrive virtual directory
>> > from showing but I have been unable to get the /dev virtual directory
>> > removed from the users when they SFTP. In the past I have been able to just
>> > add "/dev /null none bind" to the fstab file but that no longer works.
>>
>> > Can anyone suggest how I may be able to accomplish this with CYGWIN_NT-6.3 and openssh 7.6p 1-1 ?
>>
>> If you jail the user to their home directory, they shouldn't be able to see
>> the Cygwin root in first place.
>> I don't understand your issue.
>
> Andrey,
>
> They are not able to see the cygdrive. They are able to see the /dev
> virtual directory and all of the device mounts within it.
And why do you want to remove that? There's nothing in /dev your users
shouldn't see, but there's stuff in there required for certain
functionality. For instance, bash handles /dev/std{in,out,err} and
people may rely on this. Also, any application using the default paths
for POSIX shmem, semaphores and message queues will stop working.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
prev parent reply other threads:[~2017-11-28 14:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-27 21:22 snorthrop
2017-11-28 0:05 ` Andrey Repin
2017-11-28 12:50 ` [EXTERNAL] " snorthrop
2017-11-28 14:27 ` Corinna Vinschen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171128142706.GU547@calimero.vinschen.de \
--to=corinna-cygwin@cygwin.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).