Groups | Blog | Home
all groups > iis ftp > august 2007 >

iis ftp : Assigning Write Rights through a script


Glenn
8/25/2007 4:39:27 PM
I have a virtual website in my default web site.

Can someone please provide me with directions on how can I grant "Write"
rights to the properties - either through a script or a command line
statement?

(I've created several virtual sites using a command line script,
unfortunately I can't find directions on how to do the above...it would be
much easier to do it through a script than it would be doing them each by
hand.)


Thanks!
Bernard Cheah [MVP]
8/26/2007 12:00:00 AM
You can try set the AccessFlags of the ftp site property.
adsutil set msftpsvc/1/root/accessflags 3


1 - read only
2 - write only
3 - read + write

then ensure the NTFS permission is configured correctly as well.


--
Regards,
Bernard Cheah
http://www.iis.net/
http://msmvps.com/blogs/bernard/


[quoted text, click to view]

Glenn
8/26/2007 6:42:00 AM
Thanks, but where do I identify the name of the virtual domain?
[quoted text, click to view]
Bernard Cheah [MVP]
8/27/2007 12:00:00 AM
virtual domain? I'm guessing you referring to ftp virtual site.
in that case, you need to find the site id and replace it in the command

adsutil set msftpsvc/<insert site id>/root/accessflags 3


to find out site id, go to IIS MMC, navigate to ftp sites node, then look at
the identifier column at the detail panel.




--
Regards,
Bernard Cheah
http://www.iis.net/
http://msmvps.com/blogs/bernard/


[quoted text, click to view]

AddThis Social Bookmark Button