I'm writing a Windows Service in C#. I have a samba share on a linux server that I can browse/read/write from the windows machine, and I have it mapped to a drive letter. The Windows service is running as the SYSTEM user and cannot write to the share.
What should I change?
...
I have created a WPF browser application that I wish to connect to a WCF service. The service is in the same solution as the WPF application. It is the default service that Visual Studio creates with a method called GetData (int)
I am attempting to call this service with the following code:
var client = new Service1.Service1Client();...
Our app uses a component that requires a license file in the directory with our executable, which happens to be a .NET WinForms app though I think it is immaterial to this question. When installed on some XP Pro machines (just three out of several hundred thus far), the component throws a license exception. So I regenerated the license f...
I have a ASMX web services running as 'network service'. I want to be able to write to a custom event log every time a web service is called (and when errors happen).
I have created a new event log (MyLog) using the following code running as admin on a Windows server 2008 machine:
if (!EventLog.SourceExists(APPLICATIONN...
Facebook applications have access to a service they call Proxied Mail. It's basically an email address unique to the user/app pair and forwards to the users registered email address as long as they continue to grant the app permission.
So I can use this and prompt for permission, or I can just ask the user for their real email address s...
Here's the scenareio:
I have a single site collection, with the publishing infrastucture feature activated. Seveal levels below this I have a publishing site with the publishing features turned on. I also have unique permissions for this site.
The problem is that no one except site collection administrators can "Create Page". I have ...
Hi all, may I know how can i retrieve user's permission rights from its userid and group name. Help urgently needed. Thanks in advance!
...
I need to give to user TARGETUSER the rights to select/insert/update to all tables of user SOURCEUSER (I can figure this all out from here) and the ability to run all their stored procedures.
Basically, I wouldn't complain if I can give TARGETUSER the ability for all non-ddl activity with SOURCE_USER's objects. How do I do this?
...
Hello,
I am upgrading my server to Windows 2008 Server from IIS 6 running Windows 2003.
I am not sure what permissions and what account is needed to access the Access database.
In Windows 2003 I had given Write permission to the IUSR account, what it the equivalent in Windows 2008?
The database is not in the web site folder.
I am ge...
Hi
I'm trying to unzip a Zip archive in PHP using extractTo. The PHP script is running via the webbrowser i.e. as "nobody".
The script:
1) creates a new subdirectory (e.g. "abc"), with permissions 0777 and owner "nobody" under document root (i.e. one level above public_html)
2) copies the Zip file (from an incoming FTP directory und...
Hi!
With Subversion one can setup access permissions per directory within repository. So eg. one group can have commit access to directory A, read on B - with exception that DevA has also commit permissions on B.
How can one setup such a structure and permissions for Git repositories?
...
Hello.
I want to add at runtime a new RuntimePermission to the set of already existing permissions (java.policy) file.
Here is my code:
ProtectionDomain domain = MyClass.class.getProtectionDomain();
final PermissionCollection domainPerms = domain.getPermissions();
Enumeration<Permission> oldPerms = domainPerms.elements()...
I develop an application with requires root privileges. I use Code:Blocks launched with sudo codeblocks command. The problem is that developing in root'ed Code::Blocks results in source files and CB configuration files being created with root owner.
I thought I could use setuid on codeblocks executable but it is not allowed with GTK app...
Hi,
Just looking for some pointer before I head down the wrong path. I have written small C# console app that opens, reads, writes and deletes from our users registry under both HKEY_LOCAL_MACHINE and HKEY_CURRENT_USER
Of course, I got it to work on my PC and all the test PC but one of our clients is getting an error when they try to r...
I'm running Visual Studio 2008 on a Vista Ultimate box. When I create a brand new console application and run the following code via the debugger, I get an expected result -- an UnauthorizedAccessException is thrown and the directory is not created.
Sub Main()
Dim path = "C:\Windows\zzzz"
Try
IO.Directory.CreateDirect...
I have created a plain file which does not have execute permission but when I create a Java File object using this file's path/name and then call File.canExecute() I get true as the result, whereas I would expect this method call to return false. Can someone explain what I'm missing here?
Solaris:
$ touch /tmp/nonexecutable
$ ls -l /t...
In Active Directory, there is a tab called "Dial-In", and under that tab is a radio button control with three settings:
Allow Access
Deny Access
Control access through remote access policy
I'd like to write a VBScript to take a user name, and return the setting for that user.
(I'm actually modifying an existing VBScript, which is why ...
Hi,
I am new to WIX. I am using util:PermissionEx for creating ACLs. I can successfully set rights like read, write, read & execute but I am unable to find any information about setting Modify Permission.
I have tried using "Append" attribute to achieve this functionality (this seems to be the only attribute that may do the desired)
...
I get the following alert when I run a Ruby script
warning: Insecure world writable dir /Users/cs/Documents in PATH, mode 040777
The solution is to change the permissions. However, I am unsure which one is the appropriate one.
I use many user accounts for different purposes. I have one main account by which I run the commands at my ...
I am developing a ruby on rails app on OSX and I am logged in as an admin user.
On my Windows box I am creating my images, but every time I copy them to the OSX box, the permissions are weak (understandably I guess).
So per photo I keep having to right click, info and give everyone permissions to read and write, or my web server wont s...