Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
SFTP Delete fails on Windows SFTP Server - Known Error
  • >
  • Knowledge Base
  • >
  • Known Error (Knowledge Base)
  • >
  • SFTP Delete fails on Windows SFTP Server
KB0551894

SFTP Delete fails on Windows SFTP Server


1881 Views Last updated : Apr 7, 2024 public Copy Permalink
KB Summary by Now Assist

Description

When you copy or create files in Windows as a domain administrator, the files can have unusual ownership in Cygwin. The ownership appears as Administrators, which is a group and not a user. For these files and folders, only the first channel of a session (created by the domain administrator) has write permission. All the other channels within the same session receive a permission denied error.

Steps to Reproduce

 

  1. Activate the Orchestration plugin.
  2. Start a new session and delete a file.
  3. Attempt to delete another file in the same session.
    The instance displays a permission denied error and refuses to delete the file.
  4. Start another session and attempt to delete the same file.
    The file is deleted in the new session.

Workaround

This is expected behaviour for the limitations of OpenSSH in Cygwin. In SNC_SSH, every sftp command has its own ssh channel, and when the sftp command is finished, it closes the channel.
Copying or creating files in Windows as domain administrator causes the files to have the Administrators group ownership in Cygwin. For those files/folders, only the first OpenSSH channel opened by the domain administrator session has permission to write, all the other channels will get the permission denied error.

As a workaround, after copying or creating files in Windows, check the files in Cygwin and ensure they have the right ownership, always to a user, not to a group.

 


Related Problem: PRB644663

The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.