delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:mime-version:in-reply-to:references:date | |
:message-id:subject:from:to:content-type; q=dns; s=default; b=nG | |
xx0lpJuXBdy36AOvPK53JS9/bXWSR4+/W1SYLsdqneKDrAFrKCqFVunGxeWWJq7i | |
5QYmP2HX50iIHAdB94MuXZdotCSZ+sq7dErVCtlIHWn8+0wN2nnDONHuYyYA0AXv | |
WgD8ECqf4zmuAFlB0eA9GY/1UICHcpkSYeTWjMHMU= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:mime-version:in-reply-to:references:date | |
:message-id:subject:from:to:content-type; s=default; bh=/WpSUh4u | |
Qh1hNrm8E/cJybbWZEo=; b=dmap/fCT6CvqX1mMA6PiFIgBCKWaNopB/B9dkVLp | |
QuJ3v3vT5a38Tnuk04c6SemsvdnMKw+4/IibL7JVGUy+pOZDSpmeLW0GC9qi1FLv | |
1Aj2YrLEG1e3gDhhOYPwbJGnxvtfAwNZxxwCMT8bhsZwGjBVdzYQVdB6KD80Ag1Z | |
PRc= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=1.8 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_FILL_THIS_FORM_SHORT autolearn=ham version=3.3.2 spammy=stromeko AT nexgo DOT de, stromekonexgode, U*stromeko, Stromeko AT nexgo DOT de |
X-HELO: | mail-ob0-f178.google.com |
X-Google-DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=rgHp04kmsu5zD4SwHDzlqM+jmdIf1TXP48gkgXIx0eA=; b=JpZeG+iiSP8ThtU6CNUANX44KVAVMliwpNSn26Gj38bDJhm14lJnrvbrUpe8tDQcE+ Ko/WvYIwb2zRRZmruM54PhbQNa+CsXOyXsy4BbzjY2ne/f27Xpq1JEElMC6KL/kz9Bry kejSvF2jKiam1w1dz4QmqwyBP7wupQwUpG+iDG6c0k1KL4g7xetOcSUABC756AQqZ/3E 0vtiuUwwPlqcbTzz+65K0DrtQX3E5OES8zVNpqZqrLeA+7P/QUTmGeO9Rdj+JCkTPBLY DBO9Als32v843x9oSfJv76qA1LWHBXV6J+cd07NzegADer/0hdCiBo/1U0m0tP66aTqw Rp0A== |
X-Gm-Message-State: | AOPr4FXN2fff16JGSngVmEd3if5XIyG+6LCUWFPH3729d/k8yWOMf6lX8OAkeai4OaweslPjRsHlx1Ugp58Cag== |
MIME-Version: | 1.0 |
X-Received: | by 10.182.120.106 with SMTP id lb10mr11508431obb.19.1460748910395; Fri, 15 Apr 2016 12:35:10 -0700 (PDT) |
In-Reply-To: | <87r3e7lan9.fsf@Rainer.invalid> |
References: | <CAN2X4tEmO4H8=757x_CYFWPHtcOr+YMRfR2b07Vg7rFcrNY6tg AT mail DOT gmail DOT com> <loom DOT 20160414T170618-303 AT post DOT gmane DOT org> <CAN2X4tFfqgPS5Jc9=rodiv_4mE-mb3akSD925oA1tWy6C5jebA AT mail DOT gmail DOT com> <87ega8t99o DOT fsf AT Rainer DOT invalid> <CAN2X4tHMu32aFfAnbz0fC3heNLBHrXPxVkcQvp8+RgT_o7rNbw AT mail DOT gmail DOT com> <87a8kwt39s DOT fsf AT Rainer DOT invalid> <CAN2X4tExtHpod9R_LLwt4sFvEJKp_bSh=UpyLFys5SbK1A1XnQ AT mail DOT gmail DOT com> <87r3e7lan9 DOT fsf AT Rainer DOT invalid> |
Date: | Fri, 15 Apr 2016 15:35:10 -0400 |
Message-ID: | <CAN2X4tGz2OJZ-m_hFjC9+ZcbjCZvHoNY_dQ8HW7vdsr9XwWMYg@mail.gmail.com> |
Subject: | Re: Cygwin-2.5.0 net share wbadmin no longer working post update |
From: | Alexandria Gutierrez <alegutier AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
I been working on this today and have figured a few things out: The issue appears to be only be affecting us when we use ssh keys to authenticate. When we do not have keys for authentications the command gets executed successfully: Here is the full command I am sending over ssh: ssh USER AT cygservername -q -n -v '/cygdrive/c/windows/Sysnative/wbadmin DELETE CATALOG -quiet ; [[ -f /cygdrive/c/windows/Sysnative/nfsadmin ]] && /cygdrive/c/windows/Sysnative/nfsadmin client stop ; /cygdrive/c/windows/Sysnative/wbadmin START BACKUP -user:USER -password:PASSWORD -backuptarget:\\\\SERVERNAME\\PATH\\TO\\SHARE -allCritical -systemstate -quiet; [[ -f /cygdrive/c/windows/Sysnative/nfsadmin ]] && /cygdrive/c/windows/Sysnative/nfsadmin client start' 2>&1 When I have ssh keys available for USER to authenticate without a password, I reseive the same error: "ERROR - The user name or password is unexpected because the backup location is not a remote shared folder." But when I remove the keys, and I am prompted for password, the command executes correctly. This is very strange, and I am not quite sure that could be triggering this. Event viewer does not show anything. Is there anyway I can enable debug on sshd? for example /usr/bin/ssh -d ? Thank you again for the ongoing assistance On Fri, Apr 15, 2016 at 1:10 AM, Achim Gratz <Stromeko AT nexgo DOT de> wrote: > Alexandria Gutierrez writes: >> On the original script I am using -backuptarget=\\\\SERVERNAME\\PATH\\TO\\SHARE >> to avoid the use of quotes. I have several cygwin version installed >> across multiple windows nodes. All of them work correctly. > > That only takes care of the first level of quote removal and escape > processing. This already takes place on the Linux box where you send > the command. The command sent through ssh will consequently come out as > -backuptarget=\\SERVERNAME\PATH\TO\SHARE on the other side. This gets > again processed by some shell (whatever you've configured as the login > shell for your user that ssh logs in as and also the shell the user runs > on the local machine). So, depending on how exactly things are > configured, you'll likely end up with something like > -backuptarget=\SERVERNAMEPATHTOSHARE (the single backslashes might stay > in some cases). > >> On the 2 new cygwin-2.5.0 nodes using the same script (already working >> with 2.4.0 and older) does not work. One was a cygwin upgrade, and the >> other was a clean install. > > You seem to be relying on some side effect / configuration that is > present on the older installs, but not the newer. The difference is > most likely what the system determines as your passwd entry and any > startup scripts that user may have. Also, it makes a difference of > whether you request a TTY for the ssh process or not. > >> Just as an update, even if I connect directly via ssh to the node and >> and run either: >> >> /cygdrive/c/windows/Sysnative/wbadmin START BACKUP -user:USERNAME >> -password:PASSWORD -backuptarget:'\\SERVERNAME\PATH\TO\SHARE' >> -allCritical -systemstate -quiet >> or >> /cygdrive/c/windows/Sysnative/wbadmin START BACKUP -user:USERNAME >> -password:PASSWORD -backuptarget:\\\\SERVERNAME\\PATH\\TO\\SHARE >> -allCritical -systemstate -quiet > > Since it seems you really need two levels of quotes and the wbadmin > command does not need to have quotes in it (just guessing, and it may > actually need another pair of quotes if the path contains spaces), maybe > > -backuptarget:"'\\SERVERNAME\PATH\TO\SHARE'" > > is enough. > >> it does not work. I do understand what you mean that SSH will strip >> the quotes. > > If you want to see the command line that ssh gets, you > can add "-v" to the invocation. If you want to see what gets run on the > other side, try some variant of > > ssh -v user AT host /bin/procps -elfww\; your_command > > > Regards, > Achim. > -- > +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ > > SD adaptation for Waldorf microQ V2.22R2: > http://Synth.Stromeko.net/Downloads.html#WaldorfSDada > > -- > Problem reports: http://cygwin.com/problems.html > FAQ: http://cygwin.com/faq/ > Documentation: http://cygwin.com/docs.html > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |