permissions

File permissions on Shared hosts

I've written a script which takes the summary of an order and stores in into an XML file, except the problem is that I don't want people to be able to open the XML file in their browser, obviously. I'm hosted on a very dodgy shared server with limited abilities: no SSH, for starters. Is there a place I can put this file so that PHP wil...

Windows Services and Environment Variables

I am attempting to write a windows service in C#. I need to find the path to a certain file, which is stored in an environment variable. In a regular C# console application, I can achieve that with the following line: string t = System.Environment.GetEnvironmentVariable("TIP_HOME"); If I write that to the console I see that it was su...

How to document folder permissions in Windows Server 2003?

I manage a small group of Windows Server 2003 computers. ONE of the the servers is NOT performing the same as the others. I expect that I have not set the folder and share permissions the same as the others. I want to be able to create a text document containing the share and folder permissions from each server so I can them use a...

Using SMO to create and set Database permissions?

Is there a way to create new logins and set database permissions on a SQL Server 2005 using C# and SMO? If so, how? If not, what is the best way of doing that? ...

How to check if I can create a file in a specific folder in c#?

I need to know if I can create a file in a specific folder, but there are too many things to check such as permissions, duplicate files, etc. I'm looking for something like File.CanCreate(@"C:\myfolder\myfile.aaa"), but haven't found such a method. The only thing I thought is to try to create a dummy file and check for exceptions but th...

Directory/File Permission Issue

Hello, I wrote code to set permission of the folder. Function I developed was public void SetPermission(string user,FileSystemRights rights) { DirectoryInfo dInfo = new DirectoryInfo(folderPath); DirectorySecurity oDirectorySecurity = new DirectorySecurity(); oDirectorySecurity.AddAccessRule(new FileSystemAccessRule(user...

How do I resolve synciwam.vbs error 1B6?

I'm trying to migrate a website from Windows 2000 to Win2k3 using the IIS 6 Migration Tool. I'm getting a bunch of 404s on content. A popular theory is that my IWAM account is out of sync with the IIS metabase, and to run synciwam to fix it. However I'm getting this 1B6 error and the only link I haven't chased in google (that's obviou...

IBM U2 (UniVerse 10.2) - Create Schema - How

We have a traditional UV account. Data files in one directory, application programs & subroutines in another directory. Our latest projects is implementing JDBC and in order to fully access the subroutines from java, I belive I need to create a schema on the existing uv account. How can I do this? I tried logging in as uvadm and create ...

X509 Public Cert and Permissions

I’ve got an issue with loading a particular X509 certificate within an ASP.NET application (i.e. not through IIS for https). I’ve loaded it into my ‘Personal’ and ‘Trusted Root’ stores on my local machine (through the MMC snap in) but can’t load it from either store. It seems the NETWORK SERVICE account doesn’t have permissions to read/...

Opener.Location.Reload(); displayed Permission denied error in java script

I had two domains for ex. domain1 and domain2, I am opening domain2/index.aspx page as popup from domain1/default.aspx page. While closing domain2 page i need to reload the domain1 page, i had given the javascript code as "Opener.Location.Reload();". I am getting Permission denied javascript error. Any ideas about this issue. ...

Rails User Access Plugins

There are a lot of rails plugins out there that handle user permissions. I'm impressed with the implementation in the hobo gem, but I'm not sure if I can use just this feature and not the other parts. GateKeeper is a really clever implementation, but has some bugs, though it's small enough I could probably fix it myself. Restful_ACL g...

How does .NET security really work?

I just saw this question: Understanding .NET’s “SecurityAction” parameter for permissions And I have a question. With the following code: private void button1_Click(object sender, EventArgs e) { Layer1(); MessageBox.Show("OK"); } private void Layer1() { try { Layer2(); } catch (SecurityException) {...

File permissions in cygwin and MVFS

I am using Cygwin with a dll version of 1.5.19 (yes, out-of-date, I know, but we're doing it for configuration control reasons). All my files (existing and newly created) show up with permissions 644, despite a umask of 022. Also, using chmod doesn't change the permissions. I have ntsec set in the CYGWIN environment variable. I need ...

programatically add user permission to a list in sharepoint

how do i programatically add user permission to a list in sharepoint. i want to add the permission "Contribute" to a user or group for a certain list. im using c# Thanks.. ...

SSIS package works with windows account, fails with sqlserver sa account

Hi, Having some SSIS permissions issue. I am calling the SSIS package in my .net console application with: Package pkg = app.LoadFromSqlServer(packagePath, serverName, serverUsername, serverPassword, dtsEvents); It is working when manually running it using the windows accout, but fails with the above call in my console application. ...

SQL Server 2005 "public" database role doesn't seem to apply?

I have a SQL Server 2005 database that I'm trying to access as a limited user account, using Windows authentication. I've got BUILTIN\Users added as a database user (before I did so, I couldn't even open the database). I'm working under the assumption that everybody is supposed to have permissions for the "public" role applied to them,...

Permissions within views in ASP MVC

I understand that you can use forms authentication to grant/deny access to certain pages based on the criteria of your choosing. However I wish to go in a little more specific than that and say, have different buttons appear for users based on thier permissions. I know I could do something like if(((User)ViewData["CurrentUser"]).IsEmp...

In SQL Server 2005, is there an easy way to "copy" permissions on an object from one user/role to another?

I asked another question about roles and permissions, which mostly served to reveal my ignorance. One of the other outcomes was the advice that one should generally stay away from mucking with permissions for the "public" role. OK, fine, but if I've already done so and want to re-assign the same permissions to a custom/"flexible" role,...

Permissions required for 'CREATE USER' in SQL Server 2005?

Hi - I am trying to create a SQL server login and database user from within my application, along with a custom application user row. I want these users to be able to create other users - i.e. the application will control who can/can't create users but I need all users to have permissions for creating SQL server logins and database users...

SharePoint Permissions - Repeated Login Boxes

I have a SharePoint site that is locked down through standard Windows permissions. I keep getting an repeated login box prompt, and it appears that it has to do with the Themes images and the CSS style sheets. Where do I need to update permissions so that these files have the same permissions as the rest of the site and the user only...