<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cygwin Issue with Windows group names in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/Cygwin-Issue-with-Windows-group-names/m-p/115899#M24708</link>
    <description>&lt;P&gt;Hi Andrew - thanks for responding. Double quotes was what I was looking for, I used single quotes to wrap the group names and never even thought to use double around entire command. Now tried it works a treat.&lt;/P&gt;&lt;P&gt;We do use ssh just this legacy way of running a script for 7-mode has hung around we were advised to use cygwin as an alternative but your comments will certainly be noted.&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;Kaye&lt;/P&gt;</description>
    <pubDate>Wed, 17 Feb 2016 15:05:33 GMT</pubDate>
    <dc:creator>kaye1</dc:creator>
    <dc:date>2016-02-17T15:05:33Z</dc:date>
    <item>
      <title>Cygwin Issue with Windows group names</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Cygwin-Issue-with-Windows-group-names/m-p/115828#M24700</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We use Windows server as admin consoles for our NetApp controllers, when running scripts on 7-mode we still use rsh. Due to a recent upgrade of Server 2008 R2 to 2012 R2 we have deployed Cygwin64 for use as a shell to run rsh commands against our 7-mode controllers. All is well apart from the issue the UNIX shell has with certain domain names with characters and spaces.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When running a script to setup for e.g. a CIFS share access change, I’d use the cmd /c syntax with a path to the cmd file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Within the cmd file a few lines as an example to show the error received in Cygwin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;rsh FilerA cifs shares -add testadmin$ /vol/qtree&lt;/P&gt;&lt;P&gt;rsh FilerA cifs access testadmin$ '#Storage Admin' full&lt;/P&gt;&lt;P&gt;rsh FilerA cifs access testadmin$ 'Domain Secur' change&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Example shown of the standard error Cygwin displays&lt;/P&gt;&lt;P&gt;C:\cygwin64\&amp;gt;rsh FilerA cifs access&amp;nbsp; testadmin$ '#Storage Admin' full&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Usage:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cifs access &amp;lt;share&amp;gt; [-g] &amp;lt;user|group&amp;gt; &amp;lt;rights&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cifs access &amp;lt;share&amp;gt; -m&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cifs access -delete &amp;lt;share&amp;gt; [-g] &amp;lt;user|group&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cifs access -delete &amp;lt;share&amp;gt; -m&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rights can be Unix-style combinations of r w x -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or NT-style "No Access", "Read", "Change", and "Full Control"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:\cygwin64\&amp;gt;rsh FilerA cifs access&amp;nbsp; testadmin$ 'Domain Secur' change&lt;/P&gt;&lt;P&gt;Unknown user/group DOMAIN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would anyone be able to help with the # character and a name with spaces? I tried various different methods with changing the syntax including using a \ before a space and a + in place of to no avail .&lt;/P&gt;&lt;P&gt;I'm unable to have these names changed at all and I’m seeking a work around.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 22:03:13 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Cygwin-Issue-with-Windows-group-names/m-p/115828#M24700</guid>
      <dc:creator>kaye1</dc:creator>
      <dc:date>2025-06-04T22:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cygwin Issue with Windows group names</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Cygwin-Issue-with-Windows-group-names/m-p/115830#M24701</link>
      <description>&lt;P&gt;Obligatory "why not move to ssh?!" comment...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, you could use the NetApp PowerShell Toolkit as a wrapper here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Connect-NaController FilerA
Invoke-NaSsh "cifs shares -add testadmin$ /vol/qtree"
Invoke-NaSsh "cifs access testadmin$ '#Storage Admin' full"
Invoke-NaSsh "cifs access testadmin$ 'Domain Secur' change"&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would get you away from having to use the Cygwin environment...too many layers of abstraction make for stranage errors and reliablity begins to suffer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That being said, try putting single or double quotes around the command(s):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;rsh FilerA "cifs shares -add testadmin$ /vol/qtree"
rsh FilerA "cifs access testadmin$ '#Storage Admin' full"
rsh FilerA "cifs access testadmin$ 'Domain Secur' change"&lt;/PRE&gt;&lt;P&gt;If the command has the same type of quote you're using to wrap it then you'll need to escape them...I think back slash ("\") works, but it's been a while.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2016 17:31:37 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Cygwin-Issue-with-Windows-group-names/m-p/115830#M24701</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2016-02-16T17:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cygwin Issue with Windows group names</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Cygwin-Issue-with-Windows-group-names/m-p/115899#M24708</link>
      <description>&lt;P&gt;Hi Andrew - thanks for responding. Double quotes was what I was looking for, I used single quotes to wrap the group names and never even thought to use double around entire command. Now tried it works a treat.&lt;/P&gt;&lt;P&gt;We do use ssh just this legacy way of running a script for 7-mode has hung around we were advised to use cygwin as an alternative but your comments will certainly be noted.&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;Kaye&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 15:05:33 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Cygwin-Issue-with-Windows-group-names/m-p/115899#M24708</guid>
      <dc:creator>kaye1</dc:creator>
      <dc:date>2016-02-17T15:05:33Z</dc:date>
    </item>
  </channel>
</rss>

