As the question title might suggest, I would very much like to know of the way to check the ntfs permissions of the given file or folder (hint: those are the ones you see in the "security" tab). Basically, what I need is to take a path to a file or directory (on a local machine, or, preferrably, on a share on a remote machine) and get th...
I'm using the rental server which hostingrails.com , I operate Rails in FastCGI here, by the relations that SuExec used, the which was than 755 seems not to have been able to set permission and considerably fitted in. (For example, I can't use with 775) I used git for development. I set to 775 and cannot use the thing which I checked out...
I have to run command line operation from some legacy ASP application.
Here is my code:
<%
cmd = "%comspec% /c echo Hello"
set wsh = CreateObject("WScript.Shell")
ireturn = wsh.Run(cmd, 0, true)
set wsh = nothing
%>
And here is result I am receiving:
Microsoft VBScript runtime error
'800a0046'
Permissi...
I'm working on creating a self updating application and one issue I'm running into on Vista and Windows 7 is needing to have admin privileges in order to update the client. I've run into issues with clients that have their users running under restricted permissions and they would have to have IT log onto every machine that needed to upda...
I have a PHP script which changes file permissions on my server using chmod. I'd like to be able to run the script both via the browser (as nobody) and via a cron job (as username).
Is it correct that only the owner of the file can change the permissions? I.e. if I create a file via a cron job and set the permissions, I can't then cha...
I have a .dtsx file (an SSIS package) that downloads files from an FTP server and imports data. It runs fine whenever I run it manually. However, when I schedule calling the package as a step in a SQL server agent job, it fails. The step it fails at is the one where I call a .bat file. The error in the job history viewer says this:
...
Is it possible to elevate the permissions of a powershell script so a user without admin privileges can run the script? Our network admins are trying to find more time-efficient ways to accomplish certain tasks that right now they have to use remote desktop for...automating them with PS scripts would help, but the users don't have admin...
When I try to call System.IO.File.Encrypt() on an existing file, it throws a generic IOException, and the message is "Parameter is incorrect".
System.IO.File.Encrypt("C:\Project\StorageDirectory\file.txt")
The current user the process is running under has full control to the "StorageDirectory" folder. Is there something I'm missing...
Say you have public ASP.NET (and Classic ASP) applications on IIS with a script/page that needs to write or update html files in a specific folder that is located within the web publishing folder tree.
What is the proper way to handle this and exactly how do you do it? (i.e. set directory permissions in IIS or windows explorer)
My main...
Current status.
I have to set
606 for my foobaa.txt.
I wrote a php code,
that read and write
foobaa.txt,
and I want to make the
permission of the foobaa.txt as
600.
But when I tested 600,
the PHP code can not read and write
foobaa.txt.
so I changed to 606 the foobaa.txt,
then my PHP code can read and write
the foobaa.txt.
this is pr...
It's not difficult for me to save code to temp folder, use csc.exe to compile it and load the assembly dinamically, but how can I execute the code with limited permissions?
For example, how can I prohibit the code from...
creating new threads.
doing any I/O operations.
granting higher permissions.
gathering information of the system.
...
I've already separated the authentication bit out of my controllers, but I'm still forced to assign permissions and roles in my controller actions and service classes.
Lets say that a user is creating a blog entry or something like that and the system will assign the user a permission giving him the right to do what ever he (or she) wa...
I have an Ubuntu Hardy slice with Passenger Phusion serving up a rails app.
I am also using the sphinx full text seach with the thinking_sphinx plugin
I can run this command from the terminal:
sudo rake ts:index RAILS_ENV=production
but if this command is in the capistrano deploy file :
run "cd #{current_path}; rake thinking_sphinx:...
I'm deploying nutch. At first I just left the index file under /root/nutch1.0. This works fine when run from command line. However, when I search from web, it always returns 0 hit.
I finally found the reason: It's because the index file is located under /root that causes the failure to open the file. Things returned to normal when I...
Using the SQL Server Reporting Services Web Service, how can I determine the permissions of a particular domain user for a particular report? The user in question is not the user that is accessing the Web Service.
I am accessing the Web Service using a domain service account (lets say MYDOMAIN\SSRSAdmin) that has full permissions in SS...
I am working on a function that takes in a series of permission strings, less than 255 characters and assigns them to an entity. Each string assigned is unique, but there are so many that dropping them into an array, serializing them and pushing into a database and pulling them out later and de-serializing them or recalculating from a q...
What is the purpose of FullTrust when SkipVerification exists?
I understand that FullTrust will give an assembly full access to any limitation that can be implemented through a CAS permission check. What I don't understand is why anyone would ever use it. We have access to SkipVerification which will completely skip the verification che...
When I try to (re)publish my clickonce app, I am getting this:
Failed to copy file 'E:*path*\default.htm' to '\*path*\default.htm'. Unable to add 'default.htm' to the Web site. The file 'default.htm' already exists in this Web site.
There are three files with the same error message - default.htm, setup.exe and my app's .application fi...
There is a way to keep a text file on my server, but that only my php and python scripts would be able to read it, and if the user just type the url of the file will obtain a forbitten state?
I'll like to keep it in the website directory, httpdocs (or httpsdocs, maybe).
Tha file will contain my database user and passord, and other stuf...
Hello,
Im trying to run a command on the AddUserToGroup method via webservices (UserGroup.asmx).
I set up the code as follows.
//set up the user group
userGroup = new UserGroup.UserGroup();
userGroup.Url = vtiBin + "/UserGroup.asmx";
userGroup.Credentials = CredentialCache.DefaultCredentials;
So I have my credentials being passed to...