I found some informations about controlling IIS 5.1 from command line via adsutil.vbs (http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/d3df4bc9-0954-459a-b5e6-7a8bc462960c.mspx?mfr=true). The utility is available at c:\InetPub\AdminScripts.
The utility throw only errors like the following:
ErrNumber: -2147463164 (0x80005004)
Error Trying To GET the Schema of the property: IIS://localhost/Schema/ROOT
Can you tell me, how to check if there exists a virtual directory and create it, if it does not exist?
Hope this helps you.
http://www.codeproject.com/KB/system/commandlineweb.aspx
I could not comment your post, so I have to write a new message. I was able to use the script CreateWebDir.vbs from your link and use it to create/update my virtual directory with only one call:
CreateWebDir.vbs DirName Path 80
If the virtual directory already exists, it changes the path and that's exactly, what I need. Thank you!
Related
Has anybody set up Mailsac on a server (Linux and/or Windows)? On the Mailsac GitHub page it says just change config.js file. Does anybody have detailed instructions or an example of a config.js file?
I think you should use Ubuntu installation script as reference.
And looks like config file that you looking for is mailsac.conf
I try to create a .arangosh.rc file with the timed-function as documented in
https://docs.arangodb.com/Arangosh/Configuration.html
Unfortunately I did not find any hint, in which concrete directory I shall store the .rc file. I also tried to start arangosh with the --configuration, but this throws an error. When starting arangosh with --javascript.execute, it only executes the javascript and directly finishes afterwards.
Can anybody provide me a hint, please?
arangosh will look for a user-defined startup script named .arangosh.rc in the user's home directory on startup. If the file is present arangosh will execute the contents of this file inside the global scope.
On Linux, the directory name convention for the home directory is /home/<linux-user-name>
The location of the home directory on Windows may vary depending on settings. On the Windows I have access to, the Windows explorer shows a localized name of the directory (C:\Benutzer\<windows-user-name>) even though the file system's actual directory name is C:\Users\<windows-user-name>. ArangoDB will determine the home directory on Windows by peeking into the enviroment variables %HOMEDRIVE% and %HOMEPATH%.
Putting the .arangosh.rc file into C:\Users\<windows-user-name> worked for me when I tried. I put the timed function into it and could use it in arangosh afterwards.
If it doesn't work for you, could you post which Windows version you're using (and if possible also the name of the home directory so we can try to reproduce)? Thanks.
My specific problem is (and with it a lot of others).
I am trying to access: /etc/sysconfig/iptables-config
In my AWS Linux instance.
I'm using WinSCP and I was able to upload/download files in the home directory, but I can't seem to do so in any other directory. Something about not having permissions. I just don't know how to change permission settings in the Instance? Or if it's a key problem? Or something else?
Thanks for any help!
P.S. Any tips on how to get a text editor onto the instance would be appreciated as well.
It turns out, I just needed to add the word sudo. (Face palm)
Everytime I try to add / update settings through the IIS 7 Manager I get the following error.
I'm running Windows 7 Ultimate (32-bit). I'm using a LocalSystem AppPoolIdentity
Check if web.config has read only permissions checked.
Make sure the web.config's Read-only FILE attribute is not checked:
This error can also happen if the hard drive has run out of space - i.e. there isn't enough space to write the to the config file.
Obviously this would have to be a very full drive, but I've seen this happen on servers where the log files are written to the C drive (and evetually fill it right up)
Make sure that the location of your webconfig file has the correct security permissions set. Normally giving the IIS_IUSRS group permission to the directory works.
Try the following:
Copy web.config file from original to alternate location, e.g.,
Desktop
Edit and save in alternate location
Copy back to original location
I do not understand why this works, but it did for me and apparently several other users.
I need to audit the directory and call a script with the file-path parameter as the file is created there. Reading the man of auditctl i can't find a way to do it.
There're references in the web to inotify or iwatch services, that should do what i need, but i'd rather use the standard auditd functionality not installing an extra software.
If that's really not possible to use auditd to track the file creation and call the script for that file, a short sample of iwatch/inotify command to do the trick will be appreciated and accepted.
For the CentOs environment pyinotify module was used which handles directories watch pretty well and triggers the desired scripts.
Unfortunately i wasn't able to find solution using pure auditd.
The list of examples of how do someone use pyinotify is here.