对共享文件夹启用完全控制 [英] Enable full control on a shared folder

查看:66
本文介绍了对共享文件夹启用完全控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在从另一台服务器访问共享文件夹
并且需要先更改该共享文件夹的权限.

我如何能够轻松地做到这一点?

Hi all,

I am accessing a shared folder from another server
and need to first change the permission of that shared folder.

How would I be able to do this easily?

Please any help would be appreciated?

推荐答案

本,
您可以在代码中使用命令化
请点击以下链接

C#.NET中的完整模拟演示 [ ^ ]
hi Ben,
you can use impersination in you code
follow the below link

A Complete Impersonation Demo in C#.NET[^]


如果您的代码所运行的帐户尚不具有对该共享的完全控制权限,则不能执行此操作.您不能授予自己比已经拥有的权限更多的权限.
If the account your code is running under doesn''t already have Full Control permissions to the share, you can''t do it. You cannot grant yourself more permissions than you already have.


看这个问题(见下文).它与您的相似,并公开了NET和WinApi的一些模拟功能.

读取/写入共享PC上的文本文件 [ ^ ]
Hi, look at this question (see below). It''s similar with yours and exposes some impersonation capabilities of NET and WinApi.

Read/Write text file on shared pc[^]


这篇关于对共享文件夹启用完全控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆