Cannot connect to posix subsystem
Hello cygwin gurus, First start of cygwin opens a DOS window, and the following error appears: posix: cannot connect to posix subsystem -bash: cd: /home/a12: No such file or directory a12@RRBACK /usr/bin $ pwd /usr/bin C:\cygwin\usr contains the following directories: bin, doc, include, info, lib, local, man, sbin, share, src, ssl, tmp, var instead of expected: a12 C:\cygwin\etc\passwd contains: SYSTEM:*:18:18:,S-1-5-18::/bin/false Administrators:*:544:544:,S-1-5-32-544::/bin/false a12:*:1006:544:a12,U-RRBACK\a12,S-1-5-21-1681026574-976757939- 617630493-1006:/home/a12:/bin/bash C:\cygwin\etc\group contains: SYSTEM:S-1-5-18:18: None:S-1-5-21-1681026574-976757939-617630493-513:513: Administrators:S-1-5-32-544:544: Backup Operators:S-1-5-32-551:551: Guests:S-1-5-32-546:546: Power Users:S-1-5-32-547:547: Replicator:S-1-5-32-552:552: Users:S-1-5-32-545:545: Windows Task Manager yields the following processes: ssh.exe, cygrunsrv.exe, sshd.exe, bash.exe Any hints ? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Cygwin deinstall
Hi Michael, Thank you for your reply. Following your suggestion I mail this entry to [EMAIL PROTECTED] Michael A Chase wrote: On Thu, 19 Dec 2002 11:41:52 +0100 a12 [EMAIL PROTECTED] wrote: I should have rephrased the question to: How do I remove C:\cygwin\var\log\OpenSSHd.log ? After some digging into security ownership of the file directories, I changed the owner of OpenSSHd.log from SYSTEM to Administrators. Then I removed the file. The removal of C:\cygwin\var\log was a piece of cake. The info above is not stated in http://cygwin.com/faq/faq_2.html#SEC19 May I propose a little update ? May I propose you ask your real question instead of what you did ask. Also keep your questions to the right list. Bug reporting: http://cygwin.com/bugs.html The FAQ answers the question you asked correctly. If you wanted to know how to remove a particular file, you should have asked that question. Michael A Chase wrote: On Wed, 18 Dec 2002 12:41:23 +0100 a12 [EMAIL PROTECTED] wrote: How do I remove completely Cygwin ? Read the FAQ: http://cygwin.com/faq/faq_2.html#SEC19 . It answeres that exact question. Please stop using the wrong list. If it weren't a FAQ, this quiestion would belong on [EMAIL PROTECTED] -- Mac :}) ** I normally forward private questions to the appropriate mail list. ** Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html Give a hobbit a fish and he eats fish for a day. Give a hobbit a ring and he eats fish for an age. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Domain user cannot login
Hi gurus, I installed cygwin incl. openssh and it runs OK for a local user 'sysaccount'. For a domain user 'magr40' I updated /etc/passwd: mkpasswd -d -u magr40 /etc/passwd and fetched all group id's: mkgroup -d group.domain /etc/passwd contains: SYSTEM:*:18:544:,S-1-5-18:: Administrators:*:544:544:,S-1-5-32-544:: Guest:*:501:513:U-GJ2QF0J\Guest,S-1-5-21-18958337-794100916-1409357915-501:/home/Guest:/bin/bash isoft:*:1002:513:RR isoft,U-GJ2QF0J\isoft,S-1-5-21-18958337-794100916-1409357915-1002:/home/isoft:/bin/bash patrol:*:1015:513:patrol,U-GJ2QF0J\patrol,S-1-5-21-18958337-794100916-1409357915-1015:/home/patrol:/bin/bash sshd:*:1016:513:sshd privsep,U-GJ2QF0J\sshd,S-1-5-21-18958337-794100916-1409357915-1016:/var/empty:/bin/bash sysaccount:*:1000:513:U-GJ2QF0J\sysaccount,S-1-5-21-18958337-794100916-1409357915-1000:/home/sysaccount:/bin/bash magr40:*:112085:10513:magr40,U-DOMAIN\magr40,S-1-5-21-220523388-688789844-725345543-102085:/home/magr40:/bin/bash /etc/group.domain does not contain group id 112085, so I changed it to 140218, and let /etc/group contain: SYSTEM:S-1-5-18:18: None:S-1-5-21-18958337-794100916-1409357915-513:513: Administrators:S-1-5-32-544:544: Backup Operators:S-1-5-32-551:551: Guests:S-1-5-32-546:546: Power Users:S-1-5-32-547:547: Replicator:S-1-5-32-552:552: Users:S-1-5-32-545:545: DL-IT-Service-oss-unix3:S-1-5-21-220523388-688789844-725345543-130218:140218: When I double-click on Cygwin icon I get: [9146@gj2qf0j]~:(1):$ ssh localhost You don't exist, go away! cygcheck -s -v -r cygcheck.out yields: cygcheck: dump_sysinfo: GetVolumeInformation() failed: 53 The created cygcheck.out is attached. Any hints will be greatly appreciated. Cygwin Win95/NT Configuration Diagnostics Current System Time: Sat Dec 28 23:30:50 2002 Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 3 Path: C:\WINNT\System32 C:\WINNT C:\WINNT\System32\Wbem C:\Program Files\Symantec\pcAnywhere\ C:\Program Files\Graphics Server 5.50\ C:\Program Files\Centura2.0\ C:\Program Files\Executive Software\DiskeeperLite\ C:\Program Files\Executive Software\Undelete\ C:\PROGRA~1\BMCSOF~1\Patrol\bin C:\PROGRA~1\BMCSOF~1\Patrol\utils C:\Program Files\Common Files\ACD Systems\EN\ C:\cygwin\bin SysDir: C:\WINNT\System32 WinDir: C:\WINNT CYGWIN = `binmode ntsec tty' HOME = `C:\' Path = `C:\WINNT\System32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Symantec\pcAnywhere\;C:\Program Files\Graphics Server 5.50\;C:\Program Files\Centura2.0\;C:\Program Files\Executive Software\DiskeeperLite\;C:\Program Files\Executive Software\Undelete\;C:\PROGRA~1\BMCSOF~1\Patrol\bin;C:\PROGRA~1\BMCSOF~1\Patrol\utils;C:\Program Files\Common Files\ACD Systems\EN\;C:\cygwin\bin' ALLUSERSPROFILE = `C:\Documents and Settings\All Users' APPDATA = `C:\Documents and Settings\magr40\Application Data' CLASSPATH = `C:\Program Files\PhotoDeluxe HE\AdobeConnectables;' CommonProgramFiles = `C:\Program Files\Common Files' COMPUTERNAME = `GJ2QF0J' ComSpec = `C:\WINNT\system32\cmd.exe' DiskeeperIcon = `C:\Program Files\Executive Software\DiskeeperLite\' HOMEDRIVE = `C:' HOMEPATH = `\' Lib = `C:\Program Files\sybase\LIB' LOGONSERVER = `\\HAN002AS' NUMBER_OF_PROCESSORS = `1' OS = `Windows_NT' Os2LibPath = `C:\WINNT\system32\os2\dll;' PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' PATROL_ADMIN = `patrol' PATROL_HOME = `C:\PROGRA~1\BMCSOF~1\Patrol\' PROCESSOR_ARCHITECTURE = `x86' PROCESSOR_IDENTIFIER = `x86 Family 6 Model 11 Stepping 1, GenuineIntel' PROCESSOR_LEVEL = `6' PROCESSOR_REVISION = `0b01' ProgramFiles = `C:\Program Files' PROMPT = `$P$G' SYBASE = `C:\Program Files\Sybase' SystemDrive = `C:' SystemRoot = `C:\WINNT' TEMP = `C:\TMP' TEMP.org = `C:\Documents and Settings\magr40\Local Settings\Temp' TMP = `C:\TMP' TMP.org = `C:\Documents and Settings\magr40\Local Settings\Temp' USERDNSDOMAIN = `domain.host.se' USERDOMAIN = `DOMAIN' USERNAME = `magr40' USERPROFILE = `C:\Documents and Settings\magr40' windir = `C:\WINNT' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 (default) = `/cygdrive' cygdrive flags = 0x0022 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/ (default) = `C:\cygwin' flags = 0x0002 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = `C:\cygwin/bin' flags = 0x0002 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = `C:\cygwin/lib' flags = 0x0002 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) = `/cygdrive' cygdrive flags = 0x0022 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) =
Domain user cannot login to remote PC
Hello gurus, In order to access a remote PC, I updated /etc/group and /etc/passwd on the remote PC. /etc/group contains: SYSTEM:S-1-5-18:18: None:S-1-5-21-1681026574-976757939-617630493-513:513: Administrators:S-1-5-32-544:544: Backup Operators:S-1-5-32-551:551: Guests:S-1-5-32-546:546: Power Users:S-1-5-32-547:547: Replicator:S-1-5-32-552:552: Users:S-1-5-32-545:545: Domain Users:S-1-5-21-220523388-688789844-725345543-513:10513: /etc/passwd contains: SYSTEM:*:18:544:,S-1-5-18:: Administrators:*:544:544:,S-1-5-32-544:: Admin:*:501:513:U-RRBACK\Admin,S-1-5-21-1681026574-976757939-617630493-501:/home/Admin:/bin/bash isoft:*:1007:513:RR isoft,U-RRBACK\isoft,S-1-5-21-1681026574-976757939-617630493-1007:/home/isoft:/bin/bash IUSR_RRBACK:*:1000:513:Internet Guest Account,U-RRBACK\IUSR_RRBACK,S-1-5-21-1681026574-976757939-617630493-1000:/home/IUSR_RRBACK:/bin/bash sshd:*:1008:513:sshd privsep,U-RRBACK\sshd,S-1-5-21-1681026574-976757939-617630493-1008:/var/empty:/bin/bash TsInternetUser:*:1001:513:TsInternetUser,U-RRBACK\TsInternetUser,S-1-5-21-1681026574-976757939-617630493-1001:/home/TsInternetUser:/bin/bash magr40:*:12085:10513:magr40,U-TCAD\magr40,S-1-5-21-220523388-688789844-725345543-102085:/home/magr40:/bin/bash When I connect from the local PC, it fails on magr40's password: [magr40@gj2qf0j]~:{33}:$ ssh magr40@rrback Could not create directory 'home/magr40/.ssh'. The authenticity of host 'rrback (1.2.3.4)' can't be established. RSA key fingerprint is ab:...:8d. Are you sure you want to continue connecting (yes/no)? yes Failed to add the host to the list of known hosts (home/magr40/.ssh/known_hosts). magr40@rrback's password: magr40's password in the domain Permission denied, please try again. I have created /home/magr40 and /home/magr40/.ssh, and the problem still persists. Should I have created these files on the remote PC manually ? What am I supposed to do to allow magr40 access the remote PC ? Any hints will be greatly appreciated. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Cygwin home dir=/cygwin/c (not /home/userid)
Hello, I have just installed the latest Cygwin release on one PC. It is up and running OK, except that all local users login into /cygdrive/c instead of /home/userid. The length of PATH in DOS is 97 characters, and in cygwin 148 characters: Path=C:\WINNT\System32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Centura2.0\;C:\cygwin\bin 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1 2 3 4 5 6 7 8 9 0 1 2 3 4 /usr/local/bin:/usr/bin:/bin:Path=C:/WINNT/System32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/System32/Wbem:/cygdrive/c/Program Files/Centura2.0/:/usr/bin What have I missed ? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Domain user cannot login
Hello Pierre, Thank you for your quick reply (and the private mail too!). Changing gid to 10513 and uid to 112085 did not correct the problem, but as you stated in the PM changing uid below 64K to 12085 made it: [magr40@gj2qf0jl]~:{31}:$ Once again, thank you for your replies. Pierre A. Humblet wrote: On Sat, Dec 28, 2002 at 11:41:42PM +0100, a12 wrote: Hi gurus, I installed cygwin incl. openssh and it runs OK for a local user 'sysaccount'. For a domain user 'magr40' I updated /etc/passwd: mkpasswd -d -u magr40 /etc/passwd and fetched all group id's: mkgroup -d group.domain /etc/passwd contains: magr40:*:112085:10513:magr40,U-DOMAIN\magr40,S-1-5-21-220523388-688789844-725345543-102085:/home/magr40:/bin/bash /etc/group.domain does not contain group id 112085, Why should it? 112085 is the user id. It should only appear in /etc/passwd. On the other hand the gid 10513 should appear in /etc/group. Isn't it in group.domain? Why don't you append group.domain to group? When I double-click on Cygwin icon I get: Uh? What icon? [9146@gj2qf0j]~:(1):$ ssh localhost You don't exist, go away! That's because ssh doesn't find your uid in /etc/passwd. Perhaps because you have changed the uid in passwd after having started cygwin. Pierre -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Cygwin home dir=/cygwin/c (not /home/userid)
Hello Igor, Thank you for your reply. Following your reply I have rebuilt /etc/group and /etc/passwd /etc/group: SYSTEM:S-1-5-18:18: none:S-1-5-21-18958337-794100916-1409357915-513:513: admins:S-1-5-32-544:544: backup:S-1-5-32-551:551: guests:S-1-5-32-546:546: power:S-1-5-32-547:547: replicator:S-1-5-32-552:552: users:S-1-5-32-545:545: domain:S-1-5-21-220523388-688789844-725345543-513:10513: /etc/passwd: SYSTEM:*:18:544:,S-1-5-18:: admins:*:544:544:,S-1-5-32-544:: guest:*:501:513:U-GJ2QF0J\Guest,S-1-5-21-18958337-794100916-1409357915-501:/home/Guest:/bin/bash isoft:*:1002:513:RR isoft,U-GJ2QF0J\isoft,S-1-5-21-18958337-794100916-1409357915-1002:/home/isoft:/bin/bash patrol:*:1015:513:patrol,U-GJ2QF0J\patrol,S-1-5-21-18958337-794100916-1409357915-1015:/home/patrol:/bin/bash sshd:*:1016:513:sshd privsep,U-GJ2QF0J\sshd,S-1-5-21-18958337-794100916-1409357915-1016:/var/empty:/bin/bash sysaccount:*:1000:513:U-GJ2QF0J\sysaccount,S-1-5-21-18958337-794100916-1409357915-1000:/home/sysaccount:/bin/bash magr40:*:12085:10513:magr40,U-TCAD\magr40,S-1-5-21-220523388-688789844-725345543-102085:/home/magr40:/bin/bash Whether I login locally as user 'sysaccount' or domain user 'magr40', the problem persists: HOME=/cygdrive/c HOMEDRIVE=C: HOMEPATH=\ /etc/profile is enclosed. Any more hints ? Igor Pechtchanski wrote: On Tue, 31 Dec 2002, a12 wrote: Hello, I have just installed the latest Cygwin release on one PC. The two issues you mention are unrelated. See below. It is up and running OK, except that all local users login into /cygdrive/c instead of /home/userid. Do you have the /etc/passwd and /etc/group files? If you do, are any of the local users in /etc/passwd? What is their home directory set to? Try rebuilding your /etc/passwd and /etc/group: $ for i in (/etc/passwd /etc/group); do mv $i ${i}-backup; done $ mkpasswd -l /etc/passwd $ mkgroup -l /etc/group and see if you still get that problem. The length of PATH in DOS is 97 characters, and in cygwin 148 characters: Path=C:\WINNT\System32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Centura2.0\;C:\cygwin\bin 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890 1 2 3 4 5 6 7 8 9 0 1 2 3 4 /usr/local/bin:/usr/bin:/bin:Path=C:/WINNT/System32:/cygdrive/c/WINNT:/cygdrive/c/WINNT/System32/Wbem:/cygdrive/c/Program Files/Centura2.0/:/usr/bin What have I missed ? The fact that Cygwin translates the Windows path to a POSIX path using the mount information. Also the fact that you have Path= as part of the VALUE of the PATH variable. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk! -- /usr/games/fortune -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ PATH=/usr/local/bin:/usr/bin:/bin:$PATH unset DOSDRIVE unset DOSDIR unset TMPDIR unset TMP #mwe: set the umask to allow for creation of files with 644 and directories # with 755. umask 022 USER=`id -un` #mwe: set a HOSTNAME variable to the host name in lower case letters export HOSTNAME=`hostname|tr '[A-Z]' '[a-z]'` # Set up USER's home directory if [ -z $HOME ]; then HOME=/home/$USER fi if [ ! -d $HOME ]; then mkdir -p $HOME fi #mwe: create a .inputrc file that allows for case insensitive file/directory #mwe: completion if [ ! -e $HOME/.inputrc ]; then echo 'set completion-ignore-case on' $HOME/.inputrc chmod 644 $HOME/.inputrc fi export HOME USER for i in /etc/profile.d/*.sh ; do if [ -f $i ]; then . $i fi done export MAKE_MODE=unix #mwe: There may be cases when you log on using ASH (/bin/sh) rather than BASH. # in this case, you'll have to set up the prompt and lack of aliases # differently. if [ ! -z $BASH ]; then #mwe: set the prompt to include [user@host], current working directory, # {history number} and either $ or #. export PS1='[$USER@$HOSTNAME]\w:{\!}:\$ ' test -f ./.bashrc . ./.bashrc #mwe: if aliases files exist, read them. test -f /etc/sh_aliases . /etc/sh_aliases test -f ./.aliases . ./.aliases else #mwe: Since Ash doesn't support aliases, we'll use a shell function to replace # the regular cd command with one that changes directory AND changes the # prompt to reflect the current directory. cd() { chdir $1 export PS1=[$USER@$HOSTNAME
Re: Cygwin home dir=/cygwin/c (not /home/userid)
Pierre, 'echo %HOME%' yields 'C:\' Modifying /etc/profile: # Set up USER's home directory # 020102 magr40 force to use /home/$USER #if [ -z $HOME ]; then HOME=/home/$USER #fi solves my problem, but is it the correct way to do it ? Pierre A. Humblet wrote: On Thu, Jan 02, 2003 at 11:15:09PM +0100, a12 wrote: Whether I login locally as user 'sysaccount' or domain user 'magr40', the problem persists: HOME=/cygdrive/c HOMEDRIVE=C: HOMEPATH=\ Isn't HOME already defined in the Windows environment, before starting Cygwin? Start a DOS shell and type echo %HOME% Pierre -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Cygwin home dir=/cygwin/c (not /home/userid)
Yes, removing HOME from Windows system variables did it. I thank you all cygwin gurus for support and valuable hints. Pierre A. Humblet wrote: a12 wrote: Pierre, 'echo %HOME%' yields 'C:\' Modifying /etc/profile: # Set up USER's home directory # 020102 magr40 force to use /home/$USER #if [ -z $HOME ]; then HOME=/home/$USER #fi solves my problem, but is it the correct way to do it ? It's correct but not particularly elegant as it duplicates what passwd is supposed to be for. I assume HOME is defined as a system variable in the Windows environment and it is the same for everybody. Is there a good reason for that? Otherwise undefine it and everything will be well. For reference, here is how HOME is set, in order of priority - When starting from Windows 1) From existing HOME in Windows environment, translated to Posix 2) If the user has an entry in passwd: a) from passwd, if the home directory field in non empty b) from HOMEDRIVE/HOMEPATH 3) / - telnetd and rlogind 1) From passwd, if it is a valid directory 2) / - sshd 1) From passwd, even if it is invalid. In that case /etc/profile may actually create it. Note that in all those cases HOME is never set in /etc/profile ! Pierre -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: install problems
Bill, Any user that belongs to group Administrators will do. William Joye wrote: I'm unable to install and run cygwin 1.3.18-1 unless I'm logged in as 'administrator'. If I try to run cygwin logged in as another user, I get the console window, but it appears to hang. I've tried both a clean 'default' installation and a clean 'all' installation. I'm running Win2k. My previous installation of cygwin was running fine. I also notice a number of 'weird' messages that flash during the 'post-install' phase. I've searched groups.google and the cygwin mailing lists without finding any references to this type of problem. Has anyone seen this type of behavior? I'm at a lost as to what to try next... Bill Joye [EMAIL PROTECTED] Smithsonian Astrophysical Observatory Harvard-Smithsonian Center for Astrophysics -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
SSH start in .bat ?
Hello gurus, For the time being I start SSH manually: open DOS window C:\cygwin\cygwin.bat ssh -T -L 5901:derqjzp:5900 -C -N isoft@derqjzp isoft's password I have tried to include the ssh command above in cygwin.bat but obviously bash does not read it. How do I make bash to read the ssh command in cygwin.bat ? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: SSH start in .bat ?
Igor, Thank you for your quick reply. It works perfectly. Now I would like to incorporate a start of vncviewer.exe after the bash command into the same .bat file. I have tried: C: chdir C:\Program Files\RealVNC vncviewer.exe chdir C:\cygwin\bin bash --login -c ssh -T -L 5901:derqjzp:5900 -C -N isoft@derqjzp but this start vncviewer, and waits until I enter hostid. bash is never started. Any hints here ? Pardon me if this question does not belong to this mailing list. Igor Pechtchanski wrote: On Mon, 13 Jan 2003, a12 wrote: Hello gurus, For the time being I start SSH manually: open DOS window C:\cygwin\cygwin.bat ssh -T -L 5901:derqjzp:5900 -C -N isoft@derqjzp isoft's password I have tried to include the ssh command above in cygwin.bat but obviously bash does not read it. How do I make bash to read the ssh command in cygwin.bat ? 'bash --login -c ssh -T -L 5901:derqjzp:5900 -C -N isoft@derqjzp' Try man bash for details. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk! -- /usr/games/fortune -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How do I start two commands in .bat ?
Daniel, vnc server is run on derqjzp C: chdir C:\cygwin\bin bash --login -i -c ssh -L 5901:derqjzp:5900 -C isoft@derqjzp /cygdrive/c/progra~1/realvnc/vncviewer.exe requests isoft's password, and start ssh C: chdir C:\cygwin\bin bash --login -i -c ssh -L 5901:derqjzp:5900 -C isoft@derqjzp ; /cygdrive/c/progra~1/realvnc/vncviewer.exe requests isoft's password, and shuts down the cygwin window. Any more hints ? Daniel Bößwetter wrote: Which machine is vnc supposed to run on? localhost or derqjzp? In the former case, you's say bash -c ssh isoft@derqjzp ; vncviewer in the latter case bash -c ssh isoft@derqjzp vncviewer What you wrote (below) looks like you tried to start vncviewer from the .bat-file. This line is never reached, because bash never returns (unless you terminate ssh and even then it wouldn'r work, because it's a cygwin virtual path). Hope it helps. Daniel a12 wrote: Hello gurus, In my ongoing process of starting ssh and vncviewer in one .bat file, I have created the following: rem @echo off chdir C:\cygwin\bin bash --login -i -c ssh -L 5901:derqjzp:5900 -C isoft@derqjzp /cygdrive/c/program files/realvnc/vncviewer.exe I enter the isoft's password, and ssh is started. vncviewer is not started. How do I make vncviewer started ? -- Daniel Boesswetter, mailto:[EMAIL PROTECTED] peppermind - Network Neue Medien, http://www.peppermind.de Hirschgartenallee 25, D-80639 Muenchen Tel. +49 89 17860 352, Fax. +49 89 178 1235 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How do I start two commands in .bat ?
Igor, My deepest apology for not following the rules of this list. I just say: mea culpa, mea maxima culpa. Yes, I have followed your suggestions in your earlier reply: rem @echo off start VNC /DC:\Program Files\RealVNC /B vncviewer.exe C: chdir C:\cygwin\bin bash --login -i -c ssh -L 5901:derqjzp:5900 -C isoft@derqjzp vncviewer.exe does start vncviewer.exe and shh. The only problem left is, that the ssh window is in background, and vncviewer window is in foreground, so I have move the ssh window to the foreground. Then I enter the isoft's password, switch to the vncviewer window, and establish vnc to derqjzp. Is it possible to make the ssh window to the foreground ? Your second suggestion: @echo off chdir C:\cygwin\bin bash --login -i -c (/cygdrive/c/program\ files/realvnc/vncviewer.exe ); ssh -L 5901:derqjzp:5900 -C isoft@derqjzp starts the vncviewer only. The ssh window does not appear at all. When I connect to localhost:1, I get the following error: Failed to connect to server. bash --login -i -c ssh -L 5901:derqjzp:5900 -C -N isoft@derqjzp ; (/cygdrive/c/progra~1/realvnc/vncviewer.exe ) yields the same error. Any more hints ? Igor Pechtchanski wrote: Did you follow up on the original hint (help start)? If you did, you would have come up with: @echo off chdir C:\cygwin\bin start C:\Program Files\realvnc\vncviewer.exe bash --login -i -c ssh -L 5901:derqjzp:5900 -C isoft@derqjzp As for backgrounding the program in bash, you should do it *before* you start ssh: @echo off chdir C:\cygwin\bin bash --login -i -c (/cygdrive/c/program\ files/realvnc/vncviewer.exe ); ssh -L 5901:derqjzp:5900 -C isoft@derqjzp Either of the above should work. For the future: the cygwin at cygwin dot com is really the only cygwin list even remotely appropriate for this kind of query. Also, if you start a thread on a mailing list, it's usually a good idea to continue that thread to its logical conclusion, as well as make sure the final solution is in the list archives (it will be in this case). Igor On Tue, 14 Jan 2003, a12 wrote: Daniel, vnc server is run on derqjzp C: chdir C:\cygwin\bin bash --login -i -c ssh -L 5901:derqjzp:5900 -C isoft@derqjzp /cygdrive/c/progra~1/realvnc/vncviewer.exe requests isoft's password, and start ssh C: chdir C:\cygwin\bin bash --login -i -c ssh -L 5901:derqjzp:5900 -C isoft@derqjzp ; /cygdrive/c/progra~1/realvnc/vncviewer.exe requests isoft's password, and shuts down the cygwin window. Any more hints ? Daniel Bößwetter wrote: Which machine is vnc supposed to run on? localhost or derqjzp? In the former case, you's say bash -c ssh isoft@derqjzp ; vncviewer in the latter case bash -c ssh isoft@derqjzp vncviewer What you wrote (below) looks like you tried to start vncviewer from the .bat-file. This line is never reached, because bash never returns (unless you terminate ssh and even then it wouldn'r work, because it's a cygwin virtual path). Hope it helps. Daniel a12 wrote: Hello gurus, In my ongoing process of starting ssh and vncviewer in one .bat file, I have created the following: rem @echo off chdir C:\cygwin\bin bash --login -i -c ssh -L 5901:derqjzp:5900 -C isoft@derqjzp /cygdrive/c/program files/realvnc/vncviewer.exe I enter the isoft's password, and ssh is started. vncviewer is not started. How do I make vncviewer started ? -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk! -- /usr/games/fortune -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
setup.exe hangs if disk is full
Hello cygwin gurus, If the installed partition becomes full during install, setup.exe hangs without any notice, and eventually aborts. Event log shows: The application,, generated an application error The error occurred on 01/15/2003 @ 15:48.02.382 The exception generated was c005 at address 00406762 (nosymbols) May be it's time for a little patch ? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: setup.exe fails
Hello Brian, Enclosed you will find output from: cygcheck -s -v -r -h cygcheck.out Brian Dessent wrote: a12 wrote: I have just fetched all Cygwin updates to a local directory, and started setup.exe to install them. setup.exe fails with following error: uname.exe - Cannot find start address Cannot find procedure start address -impure_ptr in DLL file cygwin1.dll That usually means you have an older/incompatible cygwin1.dll from some other piece of software hanging around in your path. Attach the cygcheck output as it says to at http://cygwin.com/problems.html if you want more help. Brian -- 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/ Cygwin Configuration Diagnostics Current System Time: Sun Feb 13 17:25:13 2005 Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4 Path: C:\oracle\ora81\bin\ C:\Program Files\Oracle\jre\1.1.7\bin\ C:\WINNT\system32 C:\WINNT C:\WINNT\System32\Wbem C:\Program Files\Centura2.0\ C:\Program Files\Graphics Server 5.50\ C:\Program Files\ImageMan 6.0.1\ C:\TVPE C:\Program Files\Common Files\GTK\bin . SysDir: C:\WINNT\system32 WinDir: C:\WINNT Here's some environment variables that may affect cygwin: CYGWIN = `binmode ntsec tty title' Path = `C:\oracle\ora81\bin\;C:\Program Files\Oracle\jre\1.1.7\bin\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Centura2.0\;C:\Program Files\Graphics Server 5.50\;C:\Program Files\ImageMan 6.0.1\;C:\TVPE;C:\Program Files\Common Files\GTK\bin;' Here's the rest of your environment variables: ALLUSERSPROFILE = `C:\Documents and Settings\All Users' APPDATA = `C:\Documents and Settings\magr40\Application Data' CLASSPATH = `C:\Program Files\PhotoDeluxe HE\AdobeConnectables;' CommonProgramFiles = `C:\Program Files\Common Files' COMPUTERNAME = `8VS2T0J' ComSpec = `C:\WINNT\system32\cmd.exe' HOME.org = `C:\' HOMEDRIVE = `C:' HOMEPATH = `\Documents and Settings\magr40' Lib = `C:\Program Files\sybase\LIB' LOGONSERVER = `\\8VS2T0J' NUMBER_OF_PROCESSORS = `1' OS = `Windows_NT' Os2LibPath = `C:\WINNT\system32\os2\dll;' PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' PATROL_ADMIN = `patrol' PATROL_HOME = `C:\PROGRA~1\BMCSOF~1\PATROL~1\' PROCESSOR_ARCHITECTURE = `x86' PROCESSOR_IDENTIFIER = `x86 Family 15 Model 2 Stepping 9, GenuineIntel' PROCESSOR_LEVEL = `15' PROCESSOR_REVISION = `0209' ProgramFiles = `C:\Program Files' PROMPT = `$P$G' SYBASE = `C:\Program Files\Sybase' SystemDrive = `C:' SystemRoot = `C:\WINNT' TEMP = `C:\TMP' TEMP.org = `C:\Documents and Settings\magr40\Local Settings\Temp' TMP = `C:\TMP' TMP.org = `C:\Documents and Settings\magr40\Local Settings\Temp' USERDNSDOMAIN = `tcad.telia.se' USERDOMAIN = `TCAD' USERNAME = `magr40' USERPROFILE = `C:\Documents and Settings\magr40' windir = `C:\WINNT' POSIXLY_CORRECT = `1' Scanning registry for keys with `Cygnus' in them... HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) = `/cygdrive' cygdrive flags = 0x0022 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = `C:\cygwin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = `C:\cygwin/bin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = `C:\cygwin/lib' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options Listing available drives... Drv Type Size Used Flags Name c: hd NTFS 28607Mb 85% CP CS UN PA FC c-disk d: cd N/AN/A e: net NTFS347146Mb 87% CP CS UN PA FC Vol1_d1 fd = floppy, hd = hard drive, cd = CD-ROM net= Network Share, ram= RAM drive,unk= Unknown CP = Case Preserving, CS = Case Sensitive, UN = Unicode PA = Persistent ACLS, FC = File Compression, VC = Volume Compression Mount entries: these map POSIX directories to your NT drives. -NT- -POSIX--Type- -Flags- C:\cygwin / system binmode C:\cygwin/bin /usr/bin system binmode C:\cygwin/lib /usr/lib system binmode . /cygdrive system binmode,cygdrive Looking to see where common programs can be found, if at all... Found: .\awk.exe Found: .\bash.exe Found: .\cat.exe Found: .\cp.exe Not Found: cpp (good!) Found: .\find.exe Not Found: gcc Not Found: gdb Found: .\grep.exe Not Found: ld Found: .\ls.exe Not Found: make Found: .\mv.exe
Re: setup.exe fails
Hello Brian, Thank you for your reply. Following your hints I: - stopped deactivated sshd service in Control Panel - started setup.exe - changed from Keep to Reinstall for all components and setup.exe worked as expected. Eventually I activated started the sshd service in Control Panel. Once again thank you very for your prompt accurate reponse. Brian Dessent wrote: a12 wrote: HOME.org = `C:\' HOMEDRIVE = `C:' HOMEPATH = `\Documents and Settings\magr40' Odd that you don't have $HOME set... k 2004/09/05 .\cygwin1.dll - os=4.0 img=1.0 sys=4.0 cygwin1.dll v0.0 ts=2004/9/5 5:17 Cygwin DLL version info: DLL version: 1.5.11 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 116 Shared data: 4 DLL identifier: cygwin1 Mount registry: 2 Cygnus registry name: Cygnus Solutions Cygwin registry name: Cygwin Program options name: Program Options Cygwin mount registry name: mounts v2 Cygdrive flags: cygdrive flags Cygdrive prefix: cygdrive prefix Cygdrive default prefix: Build date: Sat Sep 4 23:17:09 EDT 2004 Shared id: cygwin1S4 Okay, you've got cygwin1.dll v1.5.11 here... Warning: There are multiple cygwin1.dlls on your path I think that is due to you running cygcheck from your /usr/bin directory, in which case cygcheck gets confused and sees it twice, since /usr/bin and . are both in the path. The cygcheck logic could be a little improved here. cygwin 1.5.12-1 However, setup seems to think that you have v1.5.12 of the dll installed. Try running setup, put everything at keep, then go to just the 'cygwin' package itself and select reinstall. That ought to get the latest cygwin dll on your system, then you can run setup again a second time and let it upgrade whatever other packages need updating. There are still some bugs in setup where updating both the main cygwin dll and other packages at the same time causes it to get confused, I'm not sure if you hit one of those cases or not. Brian -- 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/ -- 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/
Cannot start cron
Hi gurus, After installing cron, I did 'ps -ef' and found that cron was not started. So I checked /usr/doc/Cygwin/cron.README, and I tried to start the Windows service using: cygrunsrv -I cron -p /usr/sbin/cron -a -D Then I checked Windows processes, and no cron.exe was there, so I tried to start the Windows service manually, and got: Could not start thecron service on Local Computer. The service did not return an error. This could be an internal Windows error or an internal service error. Following http://sources.redhat.com/ml/cygwin/2002-08/msg00329.html I created manually: mkdir -p /var/cron chmod 1777 /var/cron mkdir /var/cron/tabs chmod 1777 /var/cron/tabs and started Cygwin bash: [EMAIL PROTECTED] ~ $ cron seteuid: Permission denied What does the last error mean ? How do I start cron properly ? /Marek -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
cron install does not set up Win service
Hi gurus, I have installed cron 3.0.1-7, and found out that the appriopriate Windows service is not set up. I have checked /usr/doc/Cygwin/cron.README and established the service using: cygrunsrv -I cron -p /usr/sbin/cron -a -D cygrunsrv -S cron Is it possible to include it in cron post-install ? Marek -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: cron install does not set up Win service
Max, Thank you for your quick reply. Marek Max Bowsher wrote: a12 wrote: Hi gurus, I have installed cron 3.0.1-7, and found out that the appriopriate Windows service is not set up. I have checked /usr/doc/Cygwin/cron.README and established the service using: cygrunsrv -I cron -p /usr/sbin/cron -a -D cygrunsrv -S cron Is it possible to include it in cron post-install ? It is standard Cygwin policy that services are *not* installed by postinstall scripts. Max. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
How to use ssmtp ?
Hi gurus, Pardon my ignorance but I have searched thru cygwin.com and have not found any docs about using ssmtp. Any hints will be greatly appreciated. Marek -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to use ssmtp ?
Corinna, I have read man ssmtp and /usr/doc/Cygwin/ssmtp-2.38.7/, and I still feel perplexed how to send a mail. I have fetched Blat http://www.interlog.com/~tcharron/blat.html and an one-liner (b.bat) contains: blat.exe mpu.log -t [EMAIL PROTECTED] -f [EMAIL PROTECTED] -server mail.xyz.com -log blat.log -s Error detected in mpu_fh (Of course xyz.com and mail.xyz.com are not real names). Now, I would like to send a mail using ssmtp, but I do neither find the required info in 'man ssmtp' nor in /usr/doc/Cygwin/ssmtp-2.38.7/ More hints will be greatly appreciated. Marek Corinna Vinschen wrote: On Thu, Mar 13, 2003 at 09:33:54AM -0500, Charles Krug wrote: On Thu, Mar 13, 2003 at 03:28:45PM +0100, Ronald Landheer-Cieslak wrote: I have a hint for you: $ man ssmtp If I knew sendmail when I installed ssmtp, then that would have been a helpful suggestion. Manpages are an excellent resource if you already know the answer . . . You need to put two lines in the files ssmtp.conf, which should be in /etc/ssmtp [...] Anybody considered to have a look into /usr/doc/Cygwin? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developermailto:[EMAIL PROTECTED] Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to use ssmtp ?
Olaf, Thank you for your hint. echo test|ssmtp -s test [EMAIL PROTECTED] does send a mail. The From: field contains 'sys [EMAIL PROTECTED]'. As I want to contains it '[EMAIL PROTECTED]', I enter: echo test|ssmtp [EMAIL PROTECTED] -s test [EMAIL PROTECTED] and it works as expected. The To: field is empty. How do I set it ? The Subject: field is empty. How do I set it ? How do I send a file ? /Marek Olaf Foellinger wrote: On Fri, Mar 14, 2003 at 10:09:34AM +0100, a12 wrote: Corinna, I have read man ssmtp and /usr/doc/Cygwin/ssmtp-2.38.7/, and I still feel perplexed how to send a mail. I have fetched Blat http://www.interlog.com/~tcharron/blat.html and an one-liner (b.bat) contains: blat.exe mpu.log -t [EMAIL PROTECTED] -f [EMAIL PROTECTED] -server mail.xyz.com -log blat.log -s Error detected in mpu_fh (Of course xyz.com and mail.xyz.com are not real names). Now, I would like to send a mail using ssmtp, but I do neither find the required info in 'man ssmtp' nor in /usr/doc/Cygwin/ssmtp-2.38.7/ More hints will be greatly appreciated. echo test|ssmtp -s test [EMAIL PROTECTED] Gruss Olaf Föllinger -- Olaf Föllinger Berater S.E.S.A. Software und Systeme AG Alt-Moabit 91a D-10559 Berlin Germany Tel: +49 30 390722 -291 Fax: +49 30 390722 -222 Mobil: +49 173 6227080 http://www.sesa.de mailto: [EMAIL PROTECTED] -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to use ssmtp ?
Hi Andrew, Thank you for your post. Unfortunately I do neither find 'uuencode' nor 'uuenview' in www.cygwin.com I have also tried: cat file |ssmtp -s test [EMAIL PROTECTED] and: ssmtp -s test [EMAIL PROTECTED] file and neither of them send the requested file. Any hints ? Marek Andrew Markebo wrote: / a12 [EMAIL PROTECTED] wrote: | Olaf, | | Thank you for your hint. | | echo test|ssmtp -s test [EMAIL PROTECTED] | does send a mail. | | The From: field contains 'sys [EMAIL PROTECTED]'. As I want to | contains it '[EMAIL PROTECTED]', I enter: | echo test|ssmtp [EMAIL PROTECTED] -s test [EMAIL PROTECTED] | and it works as expected. | | The To: field is empty. How do I set it ? | The Subject: field is empty. How do I set it ? You put To: and Subject: as the first lines of what you send in to ssmtp, and have one empty line to the body. Like: --- To: [EMAIL PROTECTED] Subject: Testing Here comes the message - | How do I send a file ? One easy way, uuencode file | ssmtp, my way, I use uuenview to take care of the encoding, formatting and so on. I think.. :-) The manpage contains an example or two.. /Andy -- The eye of the beholder rests on the beauty! -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to use ssmtp ?
Tino, Thank you for your tip about Blat. The following command in cygwin window sends mail: /cygdrive/h/blat/blat.exe file -t [EMAIL PROTECTED] -f [EMAIL PROTECTED] -server mail.xyz.com -s Subject Marek Tino Lange wrote: I have fetched Blat http://www.interlog.com/~tcharron/blat.html and an one-liner (b.bat) contains: blat.exe mpu.log -t [EMAIL PROTECTED] -f [EMAIL PROTECTED] -server mail.xyz.com -log blat.log -s Error detected in mpu_fh (Of course xyz.com and mail.xyz.com are not real names). Now, I would like to send a mail using ssmtp, but I do neither find the required info in 'man ssmtp' nor in /usr/doc/Cygwin/ssmtp-2.38.7/ More hints will be greatly appreciated. echo test|ssmtp -s test [EMAIL PROTECTED] The To: field is empty. How do I set it ? The Subject: field is empty. How do I set it ? How do I send a file ? Forget about ssmtp! Really. As you just realize it's not easy to use and if you want to send files it's not useable at all, since it has a limit of mails = 4k size. Use either blat, which is really a cool tool and should work fine under cygwin too. It has all you need, is stable, reliable, just great software. Or if you like to have something more like a real sendmail-wrapper (just forwarding), you can easily write your own small wrapper in perl or python, which will be better than ssmtp in just a few lines of code... I can send you mine as an example, if you're interested. Cheers, Tino -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to use ssmtp ?
Jason, As I do not intend to send mail 4K and just to one recipient, please post an example stating how to send a file. Marek Jason Tishler wrote: Tino, On Fri, Mar 14, 2003 at 01:07:32PM +0100, Tino Lange wrote: Forget about ssmtp! Really. As you just realize it's not easy to use and if you want to send files it's not useable at all, since it has a limit of mails = 4k size. The above size limit is not quite true. From the ssmtp man page, we have the following: Header size is limited to 4K and a max of 100 addresses. Note that I have used ssmtp for years, sent thousands of messages through it, and *never* bumped up against the above limitations. Jason -- PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: How to use ssmtp ?
Tino, Google reveals several mailfile. Which one do you use ? Marek Tino Lange wrote: Jason Tishler wrote: Forget about ssmtp! Really. As you just realize it's not easy to use and if you want to send files it's not useable at all, since it has a limit of mails = 4k size. The above size limit is not quite true. From the ssmtp man page, we have the following: Header size is limited to 4K and a max of 100 addresses. Note that I have used ssmtp for years, sent thousands of messages through it, and *never* bumped up against the above limitations. Jason, Hmmm, yes, your right. But it's not possible to send mails like this: $ mailfile -adr [EMAIL PROTECTED] curl-7.9.8.tar.gz sendmail: Header too large Max is 4000 characters The program 'mailfile' wraps up the mail including attachment and calls ssmtp via ssmtp.exe -i [EMAIL PROTECTED] MAILTEXT That's why it's quite unusable for that kind of sending mails. sendmail or even a small python script using smtplib has no problem sending such mails. Cheers, Tino -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Mail sent by cron fails
Hi gurus, In the process of mailing messages using cron, I have created /var/cron/tabs/sysaccount: SHELL=/bin/sh # mail any output to 'sysaccount', no matter whose crontab this is MAILTO=sysaccount # 0 * * * * /cygdrive/h/blat/blat.exe ssmtp -f [EMAIL PROTECTED] -f [EMAIL PROTECTED] -server mail.fakedomain.se -s Subject However no mail is sent. I have tested blat manually and it sends mail as expected. /etc/ssmtp/revaliases contains comments only. /etc/ssmtp/ssmtp.conf contains: root=postmaster mailhub=mail.fakedomain.se hostname=rrback Windows Event Log contains the following entries: Source: sSMTP mail User: RRBACK\sysaccount Computer: RRBACK Description: The description for Event ID (0) in Source (sSMTP mail) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: sSMTP mail: PID 856: /usr/sbin/ssmtp sent mail for sysaccount. Source: /USR/SBIN/CRON User: NT AUTHORITY\SYSTEM Computer: RRBACK Description: The description for Event ID (0) in Source (USR/SBIN/CRON) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: /USR/SBIN/CRON: PID 1012: (sysaccount) MAIL (mailed 124 bytes of output but got status: 0x). What have I missed ? Marek -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Mail from cron yields error
Hi gurus, In the process of mailing messages using cron, I have created /var/cron/tabs/sysaccount: SHELL=/bin/sh # mail any output to 'sysaccount', no matter whose crontab this is MAILTO=sysaccount # 0 * * * * /cygdrive/h/blat/blat.exe ssmtp -f [EMAIL PROTECTED] -f [EMAIL PROTECTED] -server mail.fake.se -s Subject However no mail is sent. I have tested blat manually and it sends mail as expected. /etc/ssmtp/revaliases contains comments only. /etc/ssmtp/ssmtp.conf contains: root=postmaster mailhub=mail.fake.se hostname=rrback Windows Event Log contains the following entries: Source: sSMTP mail User: RRBACK\sysaccount Computer: RRBACK Description: The description for Event ID (0) in Source (sSMTP mail) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: sSMTP mail: PID 856: /usr/sbin/ssmtp sent mail for sysaccount. Source: /USR/SBIN/CRON User: NT AUTHORITY\SYSTEM Computer: RRBACK Description: The description for Event ID (0) in Source (USR/SBIN/CRON) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: /USR/SBIN/CRON: PID 1012: (sysaccount) MAIL (mailed 124 bytes of output but got status: 0x). What have I missed ? Marek -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
cron fails
Hi gurus, My crontab contains: SHELL=/bin/sh MAILTO=sysaccount 15 * * * * echo $USER $HOME/c.log I have checked /home/sysaccount, and there is no c.log there. What have I missed here ? Marek -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
ssmtp issued by cron fails
Hi gurus, My crontab contains: SHELL=/bin/sh MAILTO=sysaccount 15 * * * * echo $USER $HOME/c.log For some reasons this crontab fails, and cron issues a request to ssmtp to notify the user, as I can see in Windows Event Log: sSMTP mail : PID 1032 : /usr/sbin/ssmtp sent mail for sysaccount. /USR/SBIN/CRON : PID 1240 : (sysaccount) MAIL (mailed 89 bytes of output but got status 0x Why does ssmtp yield the error status above ? Marek -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
cron does not work
Hi gurus, I cannot make cron to execute. /var/cron/tabs/sysaccount contains: MAILTO=sys 10 * * * * ls -l a.log I have checked the entire c:, and have not found a.log anywhere. I have also checked Windows Event Log, and have not found any anomalies there. I have cygwin 1.3.21-1 and cron 3.0.1-7 up and running. cron is running as Windows service using: cygrunsrv -I cron -p /usr/sbin/cron -a -D cygrunsrv -S cron I have also run cron_diagnose.sh, found in http://sources.redhat.com/ml/cygwin/2002-12/msg01096.html, and it ended OK. Output from cygcheck -s -v -r cygcheck.txt is attached. Ay hints will be greatly appreciated. Marek Cygwin Win95/NT Configuration Diagnostics Current System Time: Fri Mar 21 13:53:44 2003 Windows 2000 Server Ver 5.0 Build 2195 Service Pack 2 Path: C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin C:\cygwin\usr\sbin c:\DMI\WIN32\bin c:\WINNT\system32 c:\WINNT c:\WINNT\System32\WBEM c:\ntreskit C:\cygwin\bin C:\cygwin\bin\id.exe output (nontsec) UID: 1011(sysaccount) GID: 513(none) 513(none) 544(admins) 545(users) C:\cygwin\bin\id.exe output (ntsec) UID: 1011(sysaccount) GID: 513(none) 513(none) 544(admins) 545(users) SysDir: C:\WINNT\System32 WinDir: C:\WINNT CYGWIN = `binmode ntsec tty title' HOME = `C:\cygwin\home\sysaccount' MAKE_MODE = `unix' PWD = `/home/sysaccount' USER = `sysaccount' ALLUSERSPROFILE = `C:\WINNT\Profiles\All Users' APPDATA = `C:\WINNT\Profiles\sysaccount\Application Data' COMMONPROGRAMFILES = `C:\Program Files\Common Files' COMPUTERNAME = `RRBACK' COMSPEC = `C:\WINNT\system32\cmd.exe' CVS_RSH = `/bin/ssh' HOMEDRIVE = `C:' HOMEPATH = `\' HOSTNAME = `rrback' LOGONSERVER = `\\RRBACK' MANPATH = `:/usr/ssl/man' NTRESKIT = `C:\ntreskit' NUMBER_OF_PROCESSORS = `1' OLDPWD = `/usr/bin' OS2LIBPATH = `C:\WINNT\System32\os2\dll;' OS = `Windows_NT' PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' PROCESSOR_ARCHITECTURE = `x86' PROCESSOR_IDENTIFIER = `x86 Family 6 Model 8 Stepping 10, GenuineIntel' PROCESSOR_LEVEL = `6' PROCESSOR_REVISION = `080a' PROGRAMFILES = `C:\Program Files' PROMPT = `$P$G' PS1 = `\[\033]0;\w\007 [EMAIL PROTECTED] \[\033[33m\w\033[0m\] $ ' SHLVL = `1' SYSTEMDRIVE = `C:' SYSTEMROOT = `C:\WINNT' TEMP = `c:\WINNT\Profiles\SYSACC~1\LOCALS~1\Temp' TERM = `cygwin' TMP = `c:\WINNT\Profiles\SYSACC~1\LOCALS~1\Temp' USERDOMAIN = `RRBACK' USERNAME = `sysaccount' USERPROFILE = `C:\WINNT\Profiles\sysaccount' WINDIR = `C:\WINNT' _ = `/usr/bin/cygcheck' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) = `/cygdrive' cygdrive flags = 0x0022 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = `C:\cygwin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = `C:\cygwin/bin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = `C:\cygwin/lib' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options a: fd N/AN/A c: hd NTFS1498Mb 97% CP CS UN PA FC Dell Server f: cd N/AN/A g: hd NTFS 33196Mb 25% CP CS UN PA FC Lagring h: hd FAT32 19992Mb 95% CPUN IDE1 i: hd NTFS 16284Mb 6% CP CS UN PA FC i-disk j: hd NTFS 10001Mb 11% CP CS UN PA FC IDE2 k: hd NTFS 18441Mb 8% CP CS UN PA FC k-disk C:\cygwin / system binmode C:\cygwin/bin /usr/bin system binmode C:\cygwin/lib /usr/lib system binmode . /cygdrive system binmode,cygdrive Found: C:\cygwin\bin\awk.exe Found: C:\cygwin\bin\bash.exe Found: C:\cygwin\bin\cat.exe Found: c:\ntreskit\cat.exe Warning: C:\cygwin\bin\cat.exe hides c:\ntreskit\cat.exe Found: C:\cygwin\bin\cp.exe Found: c:\ntreskit\cp.exe Warning: C:\cygwin\bin\cp.exe hides c:\ntreskit\cp.exe Not Found: cpp (good!) Found: C:\cygwin\bin\find.exe Found: c:\ntreskit\find.exe Warning: C:\cygwin\bin\find.exe hides c:\ntreskit\find.exe Not Found: gcc Not Found: gdb Found: C:\cygwin\bin\grep.exe Found: c:\ntreskit\grep.exe Warning: C:\cygwin\bin\grep.exe hides c:\ntreskit\grep.exe Not Found: ld Found: C:\cygwin\bin\ls.exe Found: c:\ntreskit\ls.exe Warning: C:\cygwin\bin\ls.exe hides c:\ntreskit\ls.exe Not Found: make Found: C:\cygwin\bin\mv.exe Found: c:\ntreskit\mv.exe Warning: C:\cygwin\bin\mv.exe hides c:\ntreskit\mv.exe Found: C:\cygwin\bin\rm.exe Found: c:\ntreskit\rm.exe Warning: C:\cygwin\bin\rm.exe hides c:\ntreskit\rm.exe Found: C:\cygwin\bin\sed.exe Found:
Default home dir: /cygdrive/c
Hi gurus, After installing successfully Cygwin on several NT4/2K hosts, I have encountered a strange problem: [EMAIL PROTECTED] ~ $ pwd /cygdrive/c instead of: /home/isoft Why ? Cygwin was installed using Windows user isoft, that belongs to Administrators group. A simple check of CYGWIN and PATH yields: echo %CYGWIN% binmode ntsec tty title echo %PATH% C:\WINNT\system32;C:\WINNT;c:\cygwin\bin /etc/group contains: SYSTEM:S-1-5-18:18: None:S-1-5-21-1476268339-1210066731-1381041710-513:513: Admins:S-1-5-32-544:544: Backup:S-1-5-32-551:551: Guests:S-1-5-32-546:546: Power:S-1-5-32-547:547: Replica:S-1-5-32-552:552: Users:S-1-5-32-545:545: /etc/passwd contains: SYSTEM:*:18:544:,S-1-5-18:: Admins:*:544:544:,S-1-5-32-544:: Administrator:*:1003:513:Fiktiv,U-NRM8_1\Administrator,S-1-5-21-1476268339-1210066731-1381041710-1003:/home/Administrator:/bin/bash isoft:*:1001:513:isoft,U-NRM8_1\isoft,S-1-5-21-1476268339-1210066731-1381041710-1001:/home/isoft:/bin/bash $ cd cygwin ls -l total 2 drwxr-xr-x2 isoftAdmins 0 May 30 13:45 bin drwxr-xr-x8 isoftAdmins 0 May 30 13:44 etc drwxr-xr-x4 isoftAdmins 0 May 30 13:45 lib drwxr-xr-x2 isoftAdmins 0 May 30 13:45 tmp drwxr-xr-x 16 isoftAdmins 0 May 30 13:45 usr drwxr-xr-x6 isoftAdmins 0 May 30 13:45 var Please note that in other hosts 'ls -l' yields: drwxr-xr-x2 Admins none0 May 30 13:45 bin drwxr-xr-x8 Admins none0 May 30 13:44 etc drwxr-xr-x4 Admins none0 May 30 13:45 lib drwxr-xr-x2 Admins none0 May 30 13:45 tmp drwxr-xr-x 16 Admins none0 May 30 13:45 usr drwxr-xr-x6 Admins none0 May 30 13:45 var The result of 'cygcheck -svr' is found in the attached file cygcheck.out cygcheck.out Description: application/unknown-content-type-myinfo.outline -- 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/
No /home created after install
Hello cygwin gurus, I have just fetched and installed Cygwin base. When I click on the Cygwin icon, 'pwd' yields /cygdrive/c, and 'ls -l' yields: total 76 drwxrwxrwx+ 2 Sysaccou Users 53248 Sep 21 12:17 bin -rwxrwxrwx1 Sysaccou Users 57 Sep 21 12:17 cygwin.bat -rwxrwxrwx1 Sysaccou Users7022 Sep 21 12:17 cygwin.ico drwxrwxrwx+ 7 Sysaccou Users4096 Sep 21 12:18 etc drwxrwxrwx+ 5 Sysaccou Users8192 Sep 21 12:17 lib drwxrwxrwx+ 2 Sysaccou Users 0 Sep 21 12:17 tmp drwxrwxrwx+ 12 Sysaccou Users4096 Sep 21 12:16 usr drwxrwxrwx+ 6 Sysaccou Users 0 Sep 21 12:17 var What have I missed ? -- 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/
Re: No /home created after install
Hello again, I have found the culprit. My DOS environment contained variable HOME, so echo %HOME% yielded: C:\ By renaming HOME to HOME.org, and rebooting the PC, followed by a new Cygwin install, the problem vanished. Have a nice day. a12 wrote: Hello cygwin gurus, I have just fetched and installed Cygwin base. When I click on the Cygwin icon, 'pwd' yields /cygdrive/c, and 'ls -l' yields: total 76 drwxrwxrwx+ 2 Sysaccou Users 53248 Sep 21 12:17 bin -rwxrwxrwx1 Sysaccou Users 57 Sep 21 12:17 cygwin.bat -rwxrwxrwx1 Sysaccou Users7022 Sep 21 12:17 cygwin.ico drwxrwxrwx+ 7 Sysaccou Users4096 Sep 21 12:18 etc drwxrwxrwx+ 5 Sysaccou Users8192 Sep 21 12:17 lib drwxrwxrwx+ 2 Sysaccou Users 0 Sep 21 12:17 tmp drwxrwxrwx+ 12 Sysaccou Users4096 Sep 21 12:16 usr drwxrwxrwx+ 6 Sysaccou Users 0 Sep 21 12:17 var What have I missed ? -- 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/ -- 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/
ssh-host-config requires cygminires.dll
Hello Cygwin users, I have installed openssl and openssh. Host configuration with: cd /bin ssh-host-config -y tells me about missing cygminires.dll Thereafter the configuration continues: Generating /etc/ssh_host_key Generating /etc/ssh_host_rsa_key Generating /etc/ssh_host_dsa_key Generating /etc/ssh_config file privilege separation is set to yes by default since OpenSSH 3.3. However, this requires a non-privileged account called 'sshd'. For more info on privilege separation read /usr/share/doc/openssh/README.privsep. Should privilege sparation be used? (yes/no) yes Generating /etc/sshd_config file Warning: The following functions require administrator privileges! Do you want to install sshd as service? (Say no if it's already installed as service) (yes/no) yes Which value should the environment variable CYGWIN have when sshd starts? It's recommended to set at least ntsec to be able to change user context without password. Default is ntsec. CYGWIN=binmode ntsec tty title The service has been installed under LocalSystem account. To start the service, call `net start sshd´or `cygrunsrv -S sshd´. Host configuration finished. Have fun! Then I start the sshd service: cygrunsrv -S sshd which errors off with: cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. Where do I find cygminires.dll ? How do I make cygrunsrv to start sshd correctly ? Belows follows output from 'cygcheck -svr': Cygwin Configuration Diagnostics Current System Time: Tue Sep 28 16:20:28 2004 Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4 Path:C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin C:\cygwin\usr\X11R6\bin c:\WINNT\system32 c:\WINNT c:\WINNT\System32\Wbem c:\Program Files\Symantec\pcAnywhere\ C:\cygwin\bin c:\PROGRA~1\BMCSOF~1\PATROL~1\bin c:\PROGRA~1\BMCSOF~1\PATROL~1\utils c:\Program Files\Centura2.0\ c:\Program Files\ImageMan 6.0.1\ c:\Program Files\Graphics Server 5.50\ c:\Program Files\AutoIT\ c:\Program Files\Executive Software\Undelete\ c:\Program Files\Executive Software\Diskeeper\ c:\Program Files\Common Files\Crystal Decisions\2.0\bin\ c:\Program Files\Common Files\GTK\bin Output from C:\cygwin\bin\id.exe (nontsec) UID: 1001(Sysaccount) GID: 513(None) 513(None) Output from C:\cygwin\bin\id.exe (ntsec) UID: 1001(Sysaccount) GID: 513(None) 0(root) 513(None) 544(Admins) 545(Users) SysDir: C:\WINNT\system32 WinDir: C:\WINNT CYGWIN = `binmode ntsec tty title' HOME = `C:\cygwin\home\Sysaccount' MAKE_MODE = `unix' PWD = `/home/Sysaccount' USER = `Sysaccount' ALLUSERSPROFILE = `C:\Documents and Settings\All Users' APPDATA = `C:\Documents and Settings\sysaccount.8VS2T0J\Application Data' COMMONPROGRAMFILES = `C:\Program Files\Common Files' COMPUTERNAME = `8VS2T0J' COMSPEC = `C:\WINNT\system32\cmd.exe' CVS_RSH = `/bin/ssh' HOME.ORG = `C:\' HOMEDRIVE = `C:' HOMEPATH = `\Documents and Settings\sysaccount.8VS2T0J' HOSTNAME = `8VS2T0J' INFOPATH = `/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:' LIB = `C:\Program Files\sybase\LIB' LOGONSERVER = `\\8VS2T0J' MANPATH = `/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr/ssl/man' NUMBER_OF_PROCESSORS = `1' OLDPWD = `/bin' OS2LIBPATH = `C:\WINNT\system32\os2\dll;' OS = `Windows_NT' PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' PATROL_ADMIN = `patrol' PATROL_HOME = `C:\PROGRA~1\BMCSOF~1\PATROL~1\' PRINTER = `SnagIt 7' PROCESSOR_ARCHITECTURE = `x86' PROCESSOR_IDENTIFIER = `x86 Family 15 Model 2 Stepping 9, GenuineIntel' PROCESSOR_LEVEL = `15' PROCESSOR_REVISION = `0209' PROGRAMFILES = `C:\Program Files' PROMPT = `$P$G' PS1 = `\[\033]0;\w\007 [EMAIL PROTECTED] \[\033[33m\w\033[0m\] $ ' SHLVL = `1' SYBASE = `C:\Program Files\Sybase' SYSTEMDRIVE = `C:' SYSTEMROOT = `C:\WINNT' TEMP.ORG = `C:\WINNT\TEMP' TEMP = `C:\DOCUME~1\SYSACC~1.8VS\LOCALS~1\Temp' TERM = `cygwin' TMP.ORG = `C:\WINNT\TEMP' TMP = `C:\DOCUME~1\SYSACC~1.8VS\LOCALS~1\Temp' USERDOMAIN = `8VS2T0J' USERNAME = `Sysaccount' USERPROFILE = `C:\Documents and Settings\sysaccount.8VS2T0J' WINDIR = `C:\WINNT' _ = `/usr/bin/cygcheck' POSIXLY_CORRECT = `1' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) = `/cygdrive' cygdrive flags = 0x0022 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = `C:\cygwin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = `C:\cygwin/bin' flags = 0x000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = `C:\cygwin/lib'
Re: ssh-host-config requires cygminires.dll
Hello Igor, Pardon me for my ignorance about not ataching the cygcheck output. I have run Cygwin setup.exe once again, and fetched installed minires and the new versions of openssh/openssl. The following ssh-host-config -y ended OK, so I tried to start the sshd service: cygrunsrv -S sshd and got the same error as before: cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. Any hints ? Igor Pechtchanski wrote: On Tue, 28 Sep 2004, a12 wrote: Hello Cygwin users, I have installed openssl and openssh. Host configuration with: cd /bin ssh-host-config -y tells me about missing cygminires.dll Thereafter the configuration continues: [snip] Host configuration finished. Have fun! Then I start the sshd service: cygrunsrv -S sshd which errors off with: cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. Where do I find cygminires.dll ? As always, the Cygwin package search page at http://cygwin.com/packages has the answer. Install the minires package. However, you shouldn't have to, because openssh requires minires anyway. Did you, by chance, unselect it when you installed openssh via setup? In general, it's a *bad* idea to unselect anything setup chooses to automatically install, unless you know exactly what you're doing. How do I make cygrunsrv to start sshd correctly ? The two problems are most likely related. Install minires and try again. Belows follows output from 'cygcheck -svr': For the future, please include this output as an *attachment*, not inline as you did, as requested in http://cygwin.com/problems.html. Igor -- 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/
Re: ssh-host-config requires cygminires.dll
Hello again, Following your hint, I checked /usr/share/doc/Cygwin/openssh.README, and entered: ssh-host-config -y ssh-user-config -y cygrunsrv -S sshd yielded: cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. I have also tried: cygrunsrv -S -D sshd with the following response: cygrunsrv: trailing commandline argument not allowed and: cygrunsrv -D -S sshd cygrunsrv: unknown option -- D Here are the contents of /var/log/sshd.log : Could not load host key: /etc/ssh_host_key Could not load host key: /etc/ssh_host_rsa_key Could not load host key: /etc/ssh_host_dsa_key Disabling protocol version 1. Could not load host key Disabling protocol version 2. Could not load host key sshd: no hostkeys available -- exiting. Windows Applications Log contains the following entries: Cannot find a description for event ID 0 in the source sshd. The local computer does not have necessary register information or message DLL files required to show messages from a remote computer. More information: sshd : PID 660 : starting service `sshd' failed: execv: 1, Operation not permitted. Windows System Log contains the following entries: The service CYGWIN sshd ended unexpectedly. It has done 1 time(s). The following action will be done in 0 milliseconds. No action. Any new hints ? Igor Pechtchanski wrote: On Tue, 28 Sep 2004, a12 wrote: Hello Igor, Pardon me for my ignorance about not ataching the cygcheck output. I have run Cygwin setup.exe once again, and fetched installed minires and the new versions of openssh/openssl. The following ssh-host-config -y ended OK, so I tried to start the sshd service: cygrunsrv -S sshd and got the same error as before: cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. Any hints ? Yes, three: /usr/share/doc/Cygwin/openssh.README /var/log/sshd.log The Windows Event log One of the above should contain clues as to what went wrong. Igor Igor Pechtchanski wrote: On Tue, 28 Sep 2004, a12 wrote: Hello Cygwin users, I have installed openssl and openssh. Host configuration with: cd /bin ssh-host-config -y tells me about missing cygminires.dll Thereafter the configuration continues: [snip] Host configuration finished. Have fun! Then I start the sshd service: cygrunsrv -S sshd which errors off with: cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. Where do I find cygminires.dll ? As always, the Cygwin package search page at http://cygwin.com/packages has the answer. Install the minires package. However, you shouldn't have to, because openssh requires minires anyway. Did you, by chance, unselect it when you installed openssh via setup? In general, it's a *bad* idea to unselect anything setup chooses to automatically install, unless you know exactly what you're doing. How do I make cygrunsrv to start sshd correctly ? The two problems are most likely related. Install minires and try again. Belows follows output from 'cygcheck -svr': For the future, please include this output as an *attachment*, not inline as you did, as requested in http://cygwin.com/problems.html. Igor -- 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/
Re: ssh-host-config requires cygminires.dll
Hello Brian, /usr/share/doc/Cygwin/openssh.README states: If you start sshd as deamon via cygrunsrv.exe you MUST give the -D option to sshd. Otherwise the service can't get started at all. chown SYSTEM /etc/ssh_host*_key chmod 600 /etc/ssh_host*_key followed by: cygrunsrv -S sshd started the sshd service OK. I have also verified the connection by: ssh localhost ssh_host_*_key.pub are owned by the user that has run ssh-host-config Is it OK ? Brian Dessent wrote: a12 wrote: I have also tried: cygrunsrv -S -D sshd with the following response: cygrunsrv: trailing commandline argument not allowed and: cygrunsrv -D -S sshd cygrunsrv: unknown option -- D Why? There is no such option -D to cygrunsrv. Run cygrunsrv --help for a summary. Here are the contents of /var/log/sshd.log : Could not load host key: /etc/ssh_host_key Could not load host key: /etc/ssh_host_rsa_key Could not load host key: /etc/ssh_host_dsa_key Disabling protocol version 1. Could not load host key Disabling protocol version 2. Could not load host key sshd: no hostkeys available -- exiting. You'll need to change the permissions on those files. They should have read/write access to SYSTEM and nothing else. If you don't know what you're doing, try the following: chown SYSTEM /etc/ssh_host*_key chmod 600 /etc/ssh_host*_key Brian -- 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/ -- 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/
Re: ssh-host-config requires cygminires.dll
Thank you very much for your reply. Brian Dessent wrote: a12 wrote: /usr/share/doc/Cygwin/openssh.README states: If you start sshd as deamon via cygrunsrv.exe you MUST give the -D option to sshd. Otherwise the service can't get started at all. That isn't telling to you use -D on the cygrunsrv command line directly. It means that the sshd arguments should contain that parameter. I.e. you must include -D in the setting of the -a parameter, such as cygrunsrv -I sshd -d CYGWIN sshd -p /usr/sbin/sshd -a -D -D is not a cygrunsrv option, it is the predicate of the -a option. ssh_host_*_key.pub are owned by the user that has run ssh-host-config Is it OK ? If you ran the above commands they should be owned by SYSTEM. The idea here is that those files contain the private half of the host's public/private keypair, and this is sensitive data. So the file should be readable only by the account that runs the ssh daemon. If you are the only local user then it doesn't really matter much as you can be trusted, but on an actual multiuser posix system you would want to restrict the host key files accordingly. Brian -- 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/ -- 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/
Re: ssh-host-config requires cygminires.dll
Hello again, I have just checked the ownership of .pub files, and they are readable by everyone. Brian Dessent wrote: Brian Dessent wrote: ssh_host_*_key.pub are owned by the user that has run ssh-host-config Is it OK ? If you ran the above commands they should be owned by SYSTEM. The idea here is that those files contain the private half of the host's public/private keypair, and this is sensitive data. So the file should be readable only by the account that runs the ssh daemon. If you are the only local user then it doesn't really matter much as you can be trusted, but on an actual multiuser posix system you would want to restrict the host key files accordingly. Sorry, I realize I misread. The .pub files are the public half of the keypair, and should be world-readable by anyone. The ones that don't end in .pub are the private half of the keypair and should be restricted. Brian -- 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/ -- 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/
Re: ssh-host-config requires cygminires.dll
Hello Igor, /usr/share/doc/Cygwin/openssh.README states: If you start sshd as deamon via cygrunsrv.exe you MUST give the -D option to sshd. Otherwise the service can't get started at all. chown SYSTEM /etc/ssh_host*_key chmod 600 /etc/ssh_host*_key solved my problem. Igor Pechtchanski wrote: On Wed, 29 Sep 2004, a12 wrote: Hello again, Following your hint, I checked /usr/share/doc/Cygwin/openssh.README, and entered: ssh-host-config -y ssh-user-config -y cygrunsrv -S sshd yielded: cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. I have also tried: cygrunsrv -S -D sshd with the following response: cygrunsrv: trailing commandline argument not allowed and: cygrunsrv -D -S sshd cygrunsrv: unknown option -- D And where did you find this particular command? Cygrunsrv indeed doesn't have a -D option -- you probably meant to pass that to sshd (which you should have done in the cygrunsrv --install line, and which ssh-host-config should do anyway). Here are the contents of /var/log/sshd.log : Could not load host key: /etc/ssh_host_key Could not load host key: /etc/ssh_host_rsa_key Could not load host key: /etc/ssh_host_dsa_key Disabling protocol version 1. Could not load host key Disabling protocol version 2. Could not load host key sshd: no hostkeys available -- exiting. You may want to check that this is new. Delete /var/log/sshd.log (you may need to take ownership of it first), and let the sshd service create it anew. Windows Applications Log contains the following entries: Cannot find a description for event ID 0 in the source sshd. The local computer does not have necessary register information or message DLL files required to show messages from a remote computer. More information: sshd : PID 660 : starting service `sshd' failed: execv: 1, Operation not permitted. ^ Ah, well, there's your clue. One of the executables (and remember, DLLs in Windows are technically executables too) probably doesn't have the right permissions. I suggest checking: a) the user mounts for the SYSTEM user (there shouldn't be any) b) the system mounts (they should exist) c) the permissions on /usr/sbin/sshd and all the DLLs it needs (they should be executable by all) d) the permissions on /usr, /usr/sbin, /usr/bin, and all the directories containing the DLLs that sshd needs (again, should be executable by all) If none of the above helps, please try starting sshd from the command line in a SYSTEM-owned bash shell (search the list archives for sysbash). Igor Windows System Log contains the following entries: The service CYGWIN sshd ended unexpectedly. It has done 1 time(s). The following action will be done in 0 milliseconds. No action. Any new hints ? Igor Pechtchanski wrote: On Tue, 28 Sep 2004, a12 wrote: Hello Igor, Pardon me for my ignorance about not ataching the cygcheck output. I have run Cygwin setup.exe once again, and fetched installed minires and the new versions of openssh/openssl. The following ssh-host-config -y ended OK, so I tried to start the sshd service: cygrunsrv -S sshd and got the same error as before: cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. Any hints ? Yes, three: /usr/share/doc/Cygwin/openssh.README /var/log/sshd.log The Windows Event log One of the above should contain clues as to what went wrong. Igor Igor Pechtchanski wrote: On Tue, 28 Sep 2004, a12 wrote: Hello Cygwin users, I have installed openssl and openssh. Host configuration with: cd /bin ssh-host-config -y tells me about missing cygminires.dll Thereafter the configuration continues: [snip] Host configuration finished. Have fun! Then I start the sshd service: cygrunsrv -S sshd which errors off with: cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. Where do I find cygminires.dll ? As always, the Cygwin package search page at http://cygwin.com/packages has the answer. Install the minires package. However, you shouldn't have to, because openssh requires minires anyway. Did you, by chance, unselect it when you installed openssh via setup? In general, it's a *bad* idea to unselect anything setup chooses to automatically install, unless you know exactly what you're doing. How do I make cygrunsrv to start sshd correctly ? The two problems are most likely related. Install minires and try again. Belows follows output from 'cygcheck -svr': For the future, please include this output as an *attachment*, not inline as you did, as requested in http://cygwin.com/problems.html. Igor -- 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/
Unexpected output on ssh exit
Hello, I have just installed Cygwin and ssh. ssh is working as expected, except when I terminate the connection, I get the following output: [EMAIL PROTECTED] $ exit Connection to rdb closed. \[\033]0;\w\007 [EMAIL PROTECTED] \[\033[33m\w\03[0m\] As far as I can understand the output is supposed to set up my Cygwin window due to PS1 content. Why does it not work ? Contents of cycheck -s and env is enclosed. Marek Cygwin Win95/NT Configuration Diagnostics Current System Time: Wed Oct 15 13:00:54 2003 Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 3 Path: C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin C:\cygwin\usr\X11R6\bin c:\WINNT\system32 c:\WINNT c:\WINNT\System32\Wbem c:\Program Files\Symantec\pcAnywhere\ c:\Program Files\ImageMan 6.0.1\ c:\Program Files\Graphics Server 5.50\ c:\Program Files\Centura2.0\ c:\Program Files\Executive Software\Diskeeper\ C:\cygwin\bin . Output from C:\cygwin\bin\id.exe (nontsec) UID: 112085(magr40) GID: 10513(TCAD) 10513(TCAD) Output from C:\cygwin\bin\id.exe (ntsec) UID: 112085(magr40) GID: 10513(TCAD) 544(Admins) 547(Power) 10513(TCAD) SysDir: C:\WINNT\system32 WinDir: C:\WINNT CYGWIN = `binmode ntsec tty title' HOME = `C:\cygwin\home\magr40' MAKE_MODE = `unix' PWD = `/home/magr40' USER = `magr40' Use `-r' to scan registry c: hd NTFS 28607Mb 24% CP CS UN PA FC c-disk d: cd N/AN/A e: net NTFS 347146Mb 81% CP CS UN PA FC Vol1_d1 k: net NTFS 104140Mb 6% CP CS UN PA FC Vol7_d7 l: net NTFS4102Mb 30% CP CS UN PA FC m: net NTFS4651Mb 30% CP CS UN PA FC n: net NTFS4102Mb 32% CP CS UN PA FC c030604 o: net NTFS4651Mb 30% CP CS UN PA FC d030604 p: net NTFS 18441Mb 8% CP CS UN PA FC h-disk r: net NTFS 347146Mb 70% CP CS UN PA FC Vol3_d3 t: net N/AN/A u: hd NTFS 28607Mb 24% CP CS UN PA FC c-disk C:\cygwin / system binmode C:\cygwin/bin /usr/bin system binmode C:\cygwin/lib /usr/lib system binmode . /cygdrive system binmode,cygdrive Found: C:\cygwin\bin\awk.exe Found: C:\cygwin\bin\bash.exe Found: C:\cygwin\bin\cat.exe Found: C:\cygwin\bin\cp.exe Not Found: cpp (good!) Found: C:\cygwin\bin\find.exe Not Found: gcc Not Found: gdb Found: C:\cygwin\bin\grep.exe Not Found: ld Found: C:\cygwin\bin\ls.exe Not Found: make Found: C:\cygwin\bin\mv.exe Found: C:\cygwin\bin\rm.exe Found: C:\cygwin\bin\sed.exe Found: C:\cygwin\bin\sh.exe Found: C:\cygwin\bin\tar.exe 842k 2003/09/30 C:\cygwin\bin\cygcrypto-0.9.7.dll 45k 2001/04/25 C:\cygwin\bin\cygform5.dll 35k 2002/01/09 C:\cygwin\bin\cygform6.dll 48k 2003/08/09 C:\cygwin\bin\cygform7.dll 28k 2003/07/20 C:\cygwin\bin\cyggdbm-3.dll 30k 2003/08/11 C:\cygwin\bin\cyggdbm-4.dll 19k 2003/03/22 C:\cygwin\bin\cyggdbm.dll 15k 2003/07/20 C:\cygwin\bin\cyggdbm_compat-3.dll 15k 2003/08/11 C:\cygwin\bin\cyggdbm_compat-4.dll 69k 2003/08/10 C:\cygwin\bin\cyggettextlib-0-12-1.dll 12k 2003/08/10 C:\cygwin\bin\cyggettextpo-0.dll 134k 2003/08/10 C:\cygwin\bin\cyggettextsrc-0-12-1.dll 17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll 29k 2003/08/10 C:\cygwin\bin\cyghistory5.dll 958k 2003/08/10 C:\cygwin\bin\cygiconv-2.dll 22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll 37k 2003/08/10 C:\cygwin\bin\cygintl-2.dll 26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll 20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll 29k 2003/08/09 C:\cygwin\bin\cygmenu7.dll 156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll 175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll 226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll 202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll 224k 2003/08/09 C:\cygwin\bin\cygncurses7.dll 15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll 12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll 19k 2003/08/09 C:\cygwin\bin\cygpanel7.dll 67k 2003/09/10 C:\cygwin\bin\cygpcre-0.dll 63k 2003/04/11 C:\cygwin\bin\cygpcre.dll 15k 2003/09/10 C:\cygwin\bin\cygpcreposix-0.dll 61k 2003/04/11 C:\cygwin\bin\cygpcreposix.dll 22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll 108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll 148k 2003/08/10 C:\cygwin\bin\cygreadline5.dll 171k 2003/09/30 C:\cygwin\bin\cygssl-0.9.7.dll 60k 2003/08/09 C:\cygwin\bin\cygz.dll 949k 2003/09/20 C:\cygwin\bin\cygwin1.dll Cygwin DLL version info: DLL version: 1.5.5 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 94 Shared data: 3 DLL identifier: cygwin1 Mount registry: 2 Cygnus registry name: Cygnus Solutions Cygwin registry name: Cygwin Program options name: Program Options Cygwin mount registry name: mounts v2 Cygdrive flags: cygdrive flags
Re: Unexpected output on ssh exit
Hello again, cygcheck outout was attached: --BC9934B7708941537F33A900 Content-Type: text/plain; charset=us-ascii; name=cygcheck.031015 Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename=cygcheck.031015 My shell is still /bin/bash: $ echo $SHELL /bin/bash The problem has vanished. Because I rebooted my PC ? Marek Larry Hall wrote: At 07:05 AM 10/15/2003, a12 you wrote: Hello, I have just installed Cygwin and ssh. ssh is working as expected, except when I terminate the connection, I get the following output: [EMAIL PROTECTED] $ exit Connection to rdb closed. \[\033]0;\w\007 [EMAIL PROTECTED] \[\033[33m\w\03[0m\] As far as I can understand the output is supposed to set up my Cygwin window due to PS1 content. Why does it not work ? Contents of cycheck -s and env is enclosed. - Actually, when we say please attach the cygcheck output, we want it *attached*, not enclosed. We also prefer 'cygcheck -srv'. What's your shell? Seems like it's /bin/sh. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- 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/
Re: Install of predefined packages
Hello Larry, Thank you for your reply. I have read (and reread) the mentioned post and all following posts. The proposed solution is to create a local mirror, and let it be included into the list of available mirrors during execution of Cygwin setup.exe I would like to have a setup.exe that allows the installer to install all packages from the local mirror only and not let the installer choose which packages to install (as is done with Cygwin setup.exe). Another solution would be to create my own setup.exe, if I do know what Cygwin setup.exe does. Can you provide that information ? [EMAIL PROTECTED] wrote: Actually, this has been discussed, though I expect it was probably at [EMAIL PROTECTED] You may want to look there. A quick search of the archives unearthed the URL below, which I believe is your question as well. http://www.cygwin.com/ml/cygwin-apps/2002-09/msg00214.html If you have further questions about this that aren't answered in that thread or the setup documentation at the Cygwin web site, please post them to cygwin-apps.com. I've redirected the address for this email to [EMAIL PROTECTED] in the event that you need to continue this thread. Larry Original Message: - From: a12 [EMAIL PROTECTED] Date: Fri, 13 Dec 2002 15:40:59 +0100 To: [EMAIL PROTECTED] Subject: Install of predefined packages Hello cygwin gurus, Pardon my ignorance but after scanning mailing lists online, I have not found any hints to my question. I would like to roll out a predefined set of packages to a number of WinNT/Win2K PC. I have fetched setup.exe, and obtained the desired packages to H:\cygwin, and installed them into C:\cygwin . I used setup.exe to mark the desired packages. Now I would like to omit marking the desired packages, and just install all the packages. Is it possible ? Any hints will be greatly appreciated. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ mail2web - Check your email from the web at http://mail2web.com/ .
Cygwin deinstall
Hi gurus, How do I remove completely Cygwin ?
How do I start two commands in .bat ?
Hello gurus, In my ongoing process of starting ssh and vncviewer in one .bat file, I have created the following: rem @echo off chdir C:\cygwin\bin bash --login -i -c ssh -L 5901:derqjzp:5900 -C isoft@derqjzp /cygdrive/c/program files/realvnc/vncviewer.exe I enter the isoft's password, and ssh is started. vncviewer is not started. How do I make vncviewer started ?
Cannot access Sun server via VNC
Hello X users, I have just installed XFree, and I can access a Sun server using: XWin.exe -query host When I try to access another Sun server using Cisco VPN, only X window is shown, but I do not get any login window from the server. Is it possible to access a Sun server using VPN ? Regards, Marek
Re: Cannot access Sun server via VNC
Hello Alexander, Thank you very much for your quick reply. I will try your hint tonight. Regards, Marek Alexander Gottwald skrev: On Mon, 2 May 2005, a12 wrote: Hello X users, I have just installed XFree, and I can access a Sun server using: XWin.exe -query host When I try to access another Sun server using Cisco VPN, only X window is shown, but I do not get any login window from the server. Is it possible to access a Sun server using VPN ? Have you tried the -from parameter? Have ou made sure the host allows remote XDMCP access? You should first walk through the FAQs starting with http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-xdmcp-no-valid-address bye ago
Cannot connect to a Sun server using xterm
Hello X users, I access a Sun server using: XWin.exe -query sun-host I login, and start an application in the Sun server correctly. When I start xterm using startxwin.bat, and then I start xterm to a Sun server using: xterm -e /bin/telnet sun-host I get a new xterm window from the Sun server, and I login to the Sun server correctly. Then I start a graphical application in the Sun server, and I get the following error: *** OI_init: Error, cannot connect to X server ntc: couldn't open a connection to a X server What have I missed ? Regards, Marek
Re: Cannot connect to a Sun server using xterm
Hello Alexander, Thank you very much for your reply. Following your hints, I entered in the xterm window in the PC: xterm -e ssh -Y sun-host Then a SSH window appeared in the PC: The authenticity of host 'borsen1 (a.b.c.d)' can't be established. RSA key fingerprint is x:y:z:... . Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'borsen1,a.b.c.d' (RSA) to the list of known hosts. Password: Whatever I entered as the password, the password question reappeared, and eventually the ssh window was closed. When I installed Cygwin ssh, I did not use any password. Any hints ? Regards, Marek Alexander Gottwald skrev: On Mon, 2 May 2005, a12 wrote: Hello X users, I access a Sun server using: XWin.exe -query sun-host I login, and start an application in the Sun server correctly. When I start xterm using startxwin.bat, and then I start xterm to a Sun server using: xterm -e /bin/telnet sun-host I get a new xterm window from the Sun server, and I login to the Sun server correctly. Then I start a graphical application in the Sun server, and I get the following error: *** OI_init: Error, cannot connect to X server ntc: couldn't open a connection to a X server What have I missed ? telnet does know nothing about the xserver. Use ssh instead. xterm -e ssh -Y sun-host This will connect using the secure ssh protocol and tunnel all X11 traffic thought the ssh connection. If this does not work check the FAQ entries about ssh connections http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-ssh-no-x11forwarding bye ago
Re: Cannot connect to a Sun server using xterm
Hello again, Following your reply below, I created an userid in the Sun server, and entered: xterm -e ssh -Y sun-host In order to test the graphical aplication in the Sun server, I closed both X windows, entered startxwin.bat in a DOS window, and entered in the first X window: xterm -e ssh -Y userid@sun-host sun-host Then I replied to the password request, and the X window from the Sun server just closed. I have also tried: xterm -e ssh userid@sun-host -Y sun-host replied to the password request, and the X window from the Sun server closed too. Any hints ? Regards, Marek Alexander Gottwald skrev: On Mon, 2 May 2005, a12 wrote: Password: Whatever I entered as the password, the password question reappeared, and eventually the ssh window was closed. When I installed Cygwin ssh, I did not use any password. Any hints ? You are connecting to the sun server and must provide the password from the sun server. most likely the same as with telnet bye ago
Re: Cannot connect to a Sun server using xterm
Hi, When I enter in the PC window: ssh -Y [EMAIL PROTECTED] I get a request for password, and I am logged into the Sun host. Then I start the graphical application in the Sun host, and I get the following error message: X11 connection rejected because of wrong authentication. X connection to localhost:10.0 broken (explicit kill or server shutdown). So I checked the DISPLAY variable, and as it was set to 'localhost:10.0', I changed it to 'a.b.c.d:10.0', and restarted the application in the Sun host. A while later, I got the following error message: *** OI_init: Error, cannot connect to X server ntc: couldn't open a connection to a X server ntc is the name of the graphical application. As far as I understand, ntc cannot connect to a X server. Any hints ? Regards, Marek Alexander Gottwald skrev: On Mon, 2 May 2005, Henry Camacho wrote: I've done the following using our Sun hosts with success... ssh -Y -l root sunhost Right. But using root for doing non-administrative tasks is a high security risk. xterm -e ssh -Y userid@sun-host sun-host What does this mean: - start xterm (in the background) - in xterm start ssh to host sun-host with user userid - on sunhost start command sunhost the last part is the problem $ xterm -e ssh -Y userid@sun-host should work much better xterm -e ssh userid@sun-host -Y sun-host replied to the password request, and the X window from the Sun server closed too. after ssh failed, the xterm is closed because it was not interactive. You should try starting ssh from the cygwin prompt first. This will keep the error message. open cygwin prompt $ ssh userid@sun-host -Y sun-host Oops this should be $ ssh -Y [EMAIL PROTECTED] or like mentioned above $ ssh -Y -l userid sun-host bye ago
Re: Cannot access Sun server via VNC
Hello again, I have just tried your hint using: Win.exe -query sun-host -from localip where localip is the IP address received from Cisco VPN client. Sun host IP address is a.b.c.d, and localip is a.e.f.g XWin errors off, and the contents of /tmp/XWin.log are: Welcome to the XWin X Server Vendor: The Cygwin/X Project Release: 6.8.2.0-2 Contact: cygwin-xfree@cygwin.com XWin was started with the following command line: XWin -query host1 -from a.b.c.d ddxProcessArgument - Initializing default screens winInitializeDefaultScreens - w 1024 h 768 winInitializeDefaultScreens - Returning _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root Fatal server error: Xserver: failed to bind to -from address: a.b.c.d winDeinitMultiWindowWM - Noting shutdown in progress Then I tried to use the IP address that my ISP gave me: XWin.exe -query host1 -from a.e.f.g The contents of /tmp/XWin.log are the same as above. As I am connected to Internet using a router, I also tried: XWin.exe -quesry host1 -from 192.168.0.3 This time a get a X window, and the cursor appears as a cross hair. After some seconds, I get an error message, and the contents of /tmp/XWin.log are: Welcome to the XWin X Server Vendor: The Cygwin/X Project Release: 6.8.2.0-2 Contact: cygwin-xfree@cygwin.com XWin was started with the following command line: XWin -query host1 -from 192.168.0.3 ddxProcessArgument - Initializing default screens winInitializeDefaultScreens - w 1024 h 768 winInitializeDefaultScreens - Returning _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root (II) XF86Config is not supported (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information (==) FontPath set to /usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/TTF/,/usr/X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/CID/,/usr/X11R6/lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/ MIT-SHM extension disabled due to lack of kernel support XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel (--) Setting autorepeat to delay=500, rate=31 (--) winConfigKeyboard - Layout: 041d (041d) (--) Using preset keyboard for Swedish (Sweden) (41d), type 4 (--) 3 mouse buttons found Could not init font path element /usr/X11R6/lib/X11/fonts/TTF/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list! Fatal server error: XDMCP fatal error: Session failed Session 2 failed for display 192.168.0.3:0: Cannot open display winDeinitMultiWindowWM - Noting shutdown in progress Any hints ? Regards, Marek a12 wrote: Hello Alexander, Thank you very much for your quick reply. I will try your hint tonight. Regards, Marek Alexander Gottwald wrote: On Mon, 2 May 2005, a12 wrote: Hello X users, I have just installed XFree, and I can access a Sun server using: XWin.exe -query host When I try to access another Sun server using Cisco VPN, only X window is shown, but I do not get any login window from the server. Is it possible to access a Sun server using VPN ? Have you tried the -from parameter? Have ou made sure the host allows remote XDMCP access? You should first walk through the FAQs starting with http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-xdmcp-no-valid-address bye ago
Re: Cannot access Sun server via VNC
Hello again, Following your reply below, I entered: DISPLAY=localhost:0.0 ssh -Y [EMAIL PROTECTED] and then entered the password for userid. Then I received the following messages: Warning: No xauth data; using fake authentication data for X11 forwarding. tput: unknown terminal cygwin tput: unknown terminal cygwin tput: unknown terminal cygwin Eventually I started the graphical application in the Sun host, and got the following messages: connect localhost port 6000: Connection refused X connection to localhost:10.0 broken (explicit kill or serever shutdown). Shall I set the terminal type to something else ? May the refused connection on port 6000 be caused by a firewall setting ? Regards, Marek Alexander Gottwald wrote: On Mon, 2 May 2005, a12 wrote: Fatal server error: XDMCP fatal error: Session failed Session 2 failed for display 192.168.0.3:0: Cannot open display winDeinitMultiWindowWM - Noting shutdown in progress Any hints ? It seems you're out of luck. XDMCP is a strange protocol and esp. network address translation (as used with VPN) will complicate the process. You'll have to use ssh with X11Forwarding bye ago
Re: Cannot connect to a Sun server using xterm
Hello again, I logged into sun host again, and entered: xauth remove localhost:10.0 [not del] Then I started the graphical application, and I still get the following error: X11 connection rejected because of wrong authentication. X connection to localhost:10.0 broken (explicit kill or server shutdown). Any hints ? Regards, Marek Alexander Gottwald wrote: On Mon, 2 May 2005, a12 wrote: Hi, When I enter in the PC window: ssh -Y [EMAIL PROTECTED] I get a request for password, and I am logged into the Sun host. Then I start the graphical application in the Sun host, and I get the following error message: X11 connection rejected because of wrong authentication. X connection to localhost:10.0 broken (explicit kill or server shutdown). So I checked the DISPLAY variable, and as it was set to 'localhost:10.0', I changed it to 'a.b.c.d:10.0', and restarted the application in the Sun host. Guess what? localhost:10.0 was all right and a.b.c.d:10.0 is wrong. There may be some older authentication info left. Maybe this helps: $ xauth del localhost:10.0 bye ago
Could not init font path element
Hello X users, When I enter: XWin.exe -query sun-host I see in the Cygwin window: Could not init font path element /usr/X11R6/lib/X11/fonts/TTF/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list! Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list! Pardon my ignorance, but where do I find these fonts ? Regards, Marek
Clipboard is not enabled
Hello X users, When I enter: XWin.exe -query sun-host I see in the Cygwin window: winProcEstablishConnection - Hello winProcEstablishConnection - Clipboard is not enabled, returning. Is it a normal procedure, or should I enable the clipboard by some means ? Regards, Marek
Re: Clipboard is not enabled
Hello, Thank you very much for your quick adequate reply. Regards, Marek Alexander Gottwald wrotev: On Tue, 3 May 2005, a12 wrote: Hello X users, When I enter: XWin.exe -query sun-host I see in the Cygwin window: winProcEstablishConnection - Hello winProcEstablishConnection - Clipboard is not enabled, returning. Is it a normal procedure, or should I enable the clipboard by some means ? This is just a message for informing the user and developers what's going on and give well defined output on why the clipboard is not working. If you want clipboard integration start XWin with XWin.exe -clipboard -query sun-host bye ago
Re: Could not init font path element
Hello, Thank you very much for your quick adequate reply. Regards, Marek Alexander Gottwald wrotev: On Tue, 3 May 2005, a12 wrote: Could not init font path element /usr/X11R6/lib/X11/fonts/TTF/, removing from list! xorg-x11-fscl Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list! xorg-x11-fscl Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from list! There are no such fonts in the distribution Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list! xorg-x11-f100 bye ago
Re: Cannot connect to a Sun server using xterm
Hello again, I have no .Xauthority in $HOME in my PC. I logged into the Sun host using: ssh -Y [EMAIL PROTECTED] removed .Xauthority in $HOME there, logged out logged in again. When I started the graphical application in the Sun host, I received the following error: *** OI_init: Error, cannot connect to X server ntc: couldn't open a connection to a X server So, I checked that there still is no .Xauthority in $HOME in the Sun host, logged out, and logged in using: $ DISPLAY=:0.0 ssh -Y [EMAIL PROTECTED] and I received the following message: Warning: No xauth data; using fake authentication data for X11 forwarding. Last login: Tue May 3 15:54:34 2005 from 131.115.36.154 /usr/openwin/bin/xauth: creating new authority file /export/home/neat/.Xauthority When I started the graphical application, I received the following message: connect /tmp/.X11-unix/X0: No such file or directory X connection to localhost:10.0 broken (explicit kill or server shutdown). What about this message ? Regards, Marek Alexander Gottwald wrote: On Tue, 3 May 2005, a12 wrote: Hello again, I logged into sun host again, and entered: xauth remove localhost:10.0 [not del] Then I started the graphical application, and I still get the following error: X11 connection rejected because of wrong authentication. X connection to localhost:10.0 broken (explicit kill or server shutdown). Any hints ? Maybe you have to remove $HOME/.Xauthority on windows and unix side. I've not seen the message for some time now and can't tell which side has the wrong credentials. Maybe DISPLAY=:0.0 ssh ... helps (instead of DISPLAY=localhost:0.0) bye ago
Re: Cannot connect to a Sun server using xterm
Hello, Pardon my ignorance, but what am I supposed to do to solve the problem ? Regards, Marek Alexander Gottwald skrev: On Tue, 3 May 2005, a12 wrote: connect /tmp/.X11-unix/X0: No such file or directory X connection to localhost:10.0 broken (explicit kill or server shutdown). What about this message ? This just means your local server is not running. Same as before with can't connect to localhost:6000. But this time DISPLAY was :0.0, not localhost:0.0 bye ago
Re: Cannot connect to a Sun server using xterm
Which means: use XDMCP don't use xterm. Please correct me, if I am wrong. Regards, Marek Alexander Gottwald skrev: On Wed, 4 May 2005, a12 wrote: Hello, Pardon my ignorance, but what am I supposed to do to solve the problem ? Start XWin.
Re: Cygwin deinstall
Hi Michael, Thank you for your reply. Following your suggestion I mail this entry to [EMAIL PROTECTED] Michael A Chase wrote: On Thu, 19 Dec 2002 11:41:52 +0100 a12 [EMAIL PROTECTED] wrote: I should have rephrased the question to: How do I remove C:\cygwin\var\log\OpenSSHd.log ? After some digging into security ownership of the file directories, I changed the owner of OpenSSHd.log from SYSTEM to Administrators. Then I removed the file. The removal of C:\cygwin\var\log was a piece of cake. The info above is not stated in http://cygwin.com/faq/faq_2.html#SEC19 May I propose a little update ? May I propose you ask your real question instead of what you did ask. Also keep your questions to the right list. Bug reporting: http://cygwin.com/bugs.html The FAQ answers the question you asked correctly. If you wanted to know how to remove a particular file, you should have asked that question. Michael A Chase wrote: On Wed, 18 Dec 2002 12:41:23 +0100 a12 [EMAIL PROTECTED] wrote: How do I remove completely Cygwin ? Read the FAQ: http://cygwin.com/faq/faq_2.html#SEC19 . It answeres that exact question. Please stop using the wrong list. If it weren't a FAQ, this quiestion would belong on [EMAIL PROTECTED] -- Mac :}) ** I normally forward private questions to the appropriate mail list. ** Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html Give a hobbit a fish and he eats fish for a day. Give a hobbit a ring and he eats fish for an age.