permissions

Code To Create a User and Establish Permissions

I have a C# windows service application that generates a log file that writes to C:\Program Files\Company\Product\log.txt. I am using the installer provided by Visual Studio 2010 and need to have the installer: 1. Create a user named ProductUser 2. Set permission for C:\Program Files\Company\Product\ to allow ProductUser to write to the ...

changing permission for files and folder recursively using shell command in mac

In Linux we can use the following command to change permission mode of the files and folders recursively. find "/Users/Test/Desktop/PATH" -exec * chmod 777 {} \; how could i do the same for mac as i m getting the following error repeatatively. find: TEST_FILE: No such file or directory ...

Which user permission does a service need to start/stop other services?

I've wrote a service that should start/stop other services. This is the code I'm using: ServiceController sc = new ServiceController("servicename"); if(sc.Status != ServiceControllerStatus.Running) { sc.Start(); } This is the callstack of the exception. (Sorry, but the message is localized in german, but that's not relevant for un...

Copy permissions from one user to another user - SharePoint

Hello I want to copy the permissions of a user and to another user. I know i can do it by creating a group with required permissions and adding the users will do it. But i dont want to create a group. Is there a way to copy the permissions of a user to another user directly? NLV ...

Sharepoint issue, selective behavior?

I was recently assigned a task in Sharepoint as part of my internship, and it's been puzzling me for some days. Note that this is the first time I'm using Sharepoint so I might be using wrong terms here. They have a site that contains 2 web parts; a list called "Company Directory" and below it, a list (I think) called My Information. Th...

.bat script copy into System32 gives Access Denied

I'm writing a .bat script where I need to copy a file to System32. I change to the folder then attempt to copy the file from a storage folder to the System32 folder. cd C:\Windows\System32 copy %~dp0file.txt file.txt I get an error Access Denied, 0 files copied. I see why this is a problem, because if I try to copy a file to Syste...

Facebook - getting permission for photos.get

Alright, I am developing a website that integrates with Facebook, and it retrieves photos of the users. The code to call it is $param = array( 'method' => 'photos.get', 'subj_id' => $fbme['id'], 'fields' => 'name', 'callback' => '' ); $photos = $facebook->api($param); However the problem is that this returns a bl...

Drupal Admin is not able to access edit views page

I have a Drupal site and the Drupal site's admin is not able to access the edit views page. Lately, the site has also had the problem of Content Access permissions which required me to rebuild the permissions.However, the warning that 'Content Access Permissions need to be rebuilt' continues to persist. Whenever I goto admin>build>vie...

DOS .bat script to copy files to a secure network location, how to supply credentials?

The environment is Windows Web Server 2008, and I'm just trying to copy a folder full of files to a network location (a managed backup network folder). Here is my .bat file, running in the folder with my .bat files: copy *.bak \\networklocation\*.bak pause however \\networklocation requires username x and password y, so running the sc...

UAC ask permission programmatically

I have an application that uses an COM file. Sometimes this file has not been registered by regsvr32 and i'd like to program a function that if the file cannot be loaded it tries to register it and retry. To do so i'd need admin privileges, so i'd like to ask if there's a way to show the UAC "run as administrator" question to the user at...

Server Word automation permissions (some answers and some questions)

Hello, I am attempting to use word automation to count the number of pages in a word document. So far i have faced these errors: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005. Word stuck when opening a document. My resolution at the moment...

SharePoint- Problem with converting permission mask into role

Hi, I have a problem retrieving permissions on a list or site. I'm using SharePoint's Permission Web Service and the GetPermissionCollection method. This method return somethink like this: <Permission MemberID="4" Mask="1067654015" MemberIsUser="False" MemberGlobal="True" GroupName="Collaboration demo Owners" /> I'd like to be able t...

Users have "read" access to Sharepoint site even when all user permissions were removed.

I have a Sharepoint site (MOSS 2007 SP2) that all domain users seem to have read access to even if I remove all user permissions to the site. I have no problem granting users all levels of permissions. For example, I can grant userA full access to my site, but when I remove the user completely from the site they still have read access. ...

what do the "---p" permissions in /proc/self/maps mean ?

I understand the meaning of rwxps bits. r-xp is for .text. rw-p is for .data/.bss/heap/stack. What is the use of just "---p" pages For e.g see this output of bash> cat /proc/self/maps 00400000-0040b000 r-xp 00000000 08:03 827490 /bin/cat 0060b000-0060c000 rw-p 0000b000 08:03 827490 ...

file permissions are changed through joomla

Hi, I have a default installation of joomla under ubuntu 10.04. I have also changed the permissions of index.php of template(apache user with read write permissions), so that I can change the index.php from administrator screen. Everything works fine till here. But now when I change the file from admin screen and save the file, its cha...

Installing weborb for rails - permission denied

I'm trying to install weborb for rails on windows xp, rails 2.3.8 I type in my project directory: ruby script plugin install http://themidnightcoders.net:8089/svn/weborb and i get the error: ruby: Permission denied -- script (Load Error) Any ideas out there? Thanks in advance. ...

Permission denied for ajax request inside an iFrame

Hello, For many various reasons my web page consist of the following, a ruby page from www.example.com that calls an iFrame from another PHP server (subdomain.example.com), in both parent and child there is this javascript instruction : document.domain="example.com"; Parent page can access elements in child page, I needed that to make ...

PHP: fopen() Permission denied

Hi, I am confused with this code: test.php: fopen('test.txt','a+'); when I execute it, I get an error: Warning: fopen(test.txt): failed to open stream: Permission denied in /var/www/html/yuelu3/mobile/text.php on line 2 test.txt: -rwxrwxrwx. 1 jt jt 87 10月 7 20:58 test.txt where is the problem? Thanks a lot!I have fo...

SVN post-commit user permissions

I've a debian webserver with subversion running on it. I'm trying to use post-commit script to update my staging version of my site. #!/bin/sh /usr/bin/svn update /home/sites/example.com/www >> /var/log/svn/example.log 2>&1 if I run that command from the command line logged in as user 'derek' then it all works fine but when it ru...

RealBasic app crashes on writeline

Hi, I have an Mac RB app that crashes when I write a line to a TextOutputStream on the user's preferences. The write operation works great when the user is the admin, but any other user crashes. This made me think it's a permission issue, so I tried changing permission, without luck. The error is: "An exception of class NilObjectExcepti...