X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=Afek71xxw8TdfUw+zyG2IOPO4S6XNyHJg3RqwCNnQxo ccAaaqcwBkYj7cHv7likNpZ40KZMPNDQZjkiI14ZBB18s7kJuO/1i+uK1B94lsyR L3taqVoXqOCUgCjO41Uo3AFwXQ/ip6+IiHJydRubk7HEooaUEU2+58MKUg3w9ZMQ = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=w0rkHrGwSYeyTS0BgHH3CUUnxBo=; b=nN6U9bPWLK17a52Cu 2q1UxYV/IKNf3tmolz4P+m/xcLRl5KBeA/e8cQScZt/wjV3D4UaNcZAt+BMNinwt pYlVC/4PaSc7aZWXAxK48TBaz+/fmZX3qTa0At1fWl0proacVuTQ3mZUSUXf/gX3 LW5Z+yT3i9MkMEZPxzGGwDNGTU= 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: Ishtar.hs.tlinx.org Message-ID: <5435B577.5010008@tlinx.org> Date: Wed, 08 Oct 2014 15:06:47 -0700 From: Linda Walsh User-Agent: Thunderbird MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: login -p disabling leads to Windows failures -- as it expects its ENV to remain instact for new processes References: <543596B3 DOT 1020705 AT tlinx DOT org> <54359B65 DOT 40504 AT redhat DOT com> In-Reply-To: <54359B65.40504@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Eric Blake wrote: > On 10/08/2014 01:55 PM, Linda Walsh wrote: > >> I get this message the 1st time logging in via 'rlogin': >> > > You do realize, of course, that rlogin is a security hole, and that you > really ought to consider using something more secure like ssh if you are > trying to use it outside the boundaries of a heavily-firewalled intranet? > http://cc-ipcp.icp.ac.ru/Section1.2.html > No, ??? security hole? Depends on your security policy. People cannot talk about rlogin being a "security hole" -- only in the context of specific usage. "/bin/sh" "is a security hole" under the wrong security policy... It's not the program, but how it is used! Don't blame the poor program! ;-) In any event, only local-subnet, non-routable hosts are in the ".rhosts". Had problems making localhost work, but might try again.... I'm trying to use it to login from the same machine into itself. and heavily-firewalled?... um... not exactly, but it isn't on the internet (has to use an http-proxy to get out)... Theoretically, a tunnel could be created through the proxy (http or socks), that could allow someone to run the command to access the local host. or if I ran MS's TCP6 helper that sets up connectivity through firewalls via proxies automatically when you get win7 out of the box (not sure about sp1.. might have made it non-default)... But....the real problem is "login"... Corinna "corrupted" the cygwin version: -p Used by getty(8) to tell login not to destroy the environment. This is disabled in the Cygwin version. --- Thus I log in, but random things fail because standard Windows security environment that windows expects to be there, ISN'T. ...even cygwin uses many of these vars to setup the user's environment. Things like: Path after cygwin clears it: (Note, since windows loads it's libraries via the PATH, Note Windows dirs are not in path: PATH=/Users/law.Bliss/bin/lib:/usr/sbin:.:/prog64/vim:/usr/bin:/sbin:/prog (Normal path using a console window: > echo $PATH /Users/law.Bliss/bin/lib:/usr/sbin:.:/prog64/vim:/usr/bin:/sbin:/prog/sysinternals/cmd:/prog/sysinternals:/Windows/system32:/Windows:/Windows/System32/Wbem:/Windows/System32/WindowsPowerShell/v1.0:/Prog/Common Files/DivX Shared:/Prog/NVIDIA Corporation/PhysX/Common:/Prog64/VanDyke Software/Clients:/Prog64/NVIDIA GPU Computing Toolkit/CUDA/v4.0/bin:/Prog/NVIDIA Corporation/Cg/bin:/Prog/NVIDIA Corporation/Cg/bin.x64:/Prog/QuickTime:/Prog/Microsoft SQL Server/110/Tools/Binn:/Prog/Microsoft SQL Server/110/DTS/Binn:/Program Files/Microsoft SQL Server/110/Tools/Binn:/Prog/Microsoft SQL Server/110/DTS/Binn:/Users/law.Bliss/bin:/usr/local/bin:/etc/local/func_lib --- If cygwin wants to clear env and start with an unchanged copy out of the registry, that's fine... but leaving them (there were about 2x more than I list below) out make many programs designed for cygwin (on windows), fail like: bin/dumphive: line 11: USERPROFILE: unbound variable 3564 (process ID) old priority 19, new priority 19 bin/dumphive: line 11: USERPROFILE: unbound variable Root has problems getting any shell: > rlogin -l root athenae Password: rlogin: connection closed. > rlogin -l Bliss\\root athenae Password: cygwin warning: MS-DOS style path detected: /Windows/System32/cygwin/usr/spool/mail/Bliss/root Preferred POSIX equivalent is: /Windows/System32/cygwin/usr/spool/mail/Bliss/root CYGWIN environment variable option "nodosfilewarning" turns off this warning. Consult the user's guide for more details about POSIX paths: http://cygwin.com/cygwin-ug-net/using.html#using-pathnames rlogin: connection closed. --- There's that warning again... missing vars: ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\law.Bliss\AppData\Roaming CLASSPATH=.;"C:\Prog\Java\jre7\lib\ext\QTJava.zip";C:\Program Files (x86)\ COMMONPROGRAMFILES=C:\Program Files\Common Files CYGWIN=system nodosfilewarning winsymlinks:native export CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files HISTFILE=/Users/law.Bliss/.histAthenae_cons0 HOMEDRIVE=C: HOMEPATH=\Users\law.Bliss LOCALAPPDATA=C:\Users\law.Bliss\AppData\Local LOGONSERVER=\\ISHTAR OS=Windows_NT PATH=/Users/law.Bliss/bin/lib:/usr/sbin:.:/prog64/vim:/usr/bin:/sbin:/prog PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC PROGRAMFILES=C:\Program Files PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\ PUBLIC=C:\Users\Public ProgramData=C:\ProgramData ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files QTJAVA=C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip SESSIONNAME=Console SHELL=C:/Bin/Bash.exe SYSTEMDRIVE=C: TEMP=/tmp TERM=cygwin TMP=/tmp USERDOMAIN=Bliss USERDOMAIN_ROAMINGPROFILE=Bliss USERNAME=law USERPROFILE=C:\Users\law.Bliss VIMRUNTIME=C:/Prog64/Vim -- 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