permissions

How can I diagnose Windows access/permission error

The title says it. I'm looking for a way to determine exactly which file/registry key this executable is attempting to access. I have attempted to use Windows auditing capabilities and Process Monitor to determine where the failure is happening but, this failure does not produce audit failure events or show as access denial in Process Mo...

How to restrict a linux user to be only able to read /home/user and nothing else

Hi, I need to create a special linux user account that has a very limited set of permissions on the system. Essentially to have read-only permissions for his home dir (and sub dirs) and nothing else - i.e. this user has no write or execute permissions and should not be able to read/access other user dirs or indeed anything outside of hi...

How do you set a directory to have persistent group permissions?

We have two users: user1 user2 They both belong to the group 'admin'. We have a directory that has been set to 775. The directory's group has been changed to 'admin'. Each user has full access to write into that directory, though when a user writes a new file to the directory, the group permissions of the folder are not persisted to...

How to control user rights to an Access database?

What is the simplest way to allow one user write access and everyone else read-only access to a MS Access database on a local network? I trust my users, but unfortunately Access saves changes to data as soon as the row of a table is deselected. Accidental keystrokes are saved without the user asking for the changes to be saved. ...

How to execute sp_send_dbmail while limiting permissions

Is there a way to provide access to users in my database to execute msdb.dbo.sp_send_dbmail without needing to add them to the MSDB database and the DatabaseMailUserRole? I've tried this: ALTER PROCEDURE [dbo].[_TestSendMail] ( @To NVARCHAR(1000), @Subject NVARCHAR(100), @Body NVARCHAR(MAX) ) WITH EXECUTE AS OWNER AS BEGIN ...

Python - Test directory permissions

In Python on Windows, is there a way to determine if a user has permission to access a directory? I've taken a look at os.access but it gives false results. >>> os.access('C:\haveaccess', os.R_OK) False >>> os.access(r'C:\haveaccess', os.R_OK) True >>> os.access('C:\donthaveaccess', os.R_OK) False >>> os.access(r'C:\donthaveaccess', os...

Bugzilla: Set permissions to make a product readonly for all users.

Hi, i am using a single instance of Bugzilla for issue tracking in multiple projects. Some of my projects are restricted to be visible only to a single group of people while other projects have to be ready-only for everybody (even if they do not have a user account in bugzilla). Submitting bugs should always only be possible for authent...

asp.net mvc user permissions and views

it seems there are 2 options when dealing with security permissions for views in mvc: either handle the permissions control logic in the controller and direct the user to the appropriate view... Or implement some form of security-aware HtmlHelper extensions that render (or not) appropriate form fields/data am i missing any other op...

What causes Python socket error?

File "C:\Python25\lib\SocketServer.py", line 330, in __init__ self.server_bind() File "C:\Python25\lib\BaseHTTPServer.py", line 101, in server_bind SocketServer.TCPServer.server_bind(self) File "C:\Python25\lib\SocketServer.py", line 341, in server_bind self.socket.bind(self.server_address) File "<string>", line 1, in...

Site Owner not able to move or copy Pages between two subsites?

I have users in the Site Owners group of a root site, trying to copy (or move) pages between Pages Libraries in two subwebs. The permissions of the subwebs are inherited from the parent, with no changes, so the Site Owners of the root are the Site Owners of the subwebs as well. When a member of the owners group tries to move or copy a ...

Why does my .net application require full trust?

I've developed a .net 3.0 application, which is deployed using clickonce. I'd like to move from full trust to partial trust to ease deployment. I've tried the "Calculate Permissions" tool in the "Security" tab of my project under visual studio, and the answer is quite clear : --------------------------- Microsoft Visual Studio -------...

How do I prevent a subversion user accessing part of the repository?

I'm using a Subversion repository hosted on Dreamhost for a project. I would like to allow access to some users on a restricted basis. At the very least I would like to allow read-only access to some users, but ideally I would like to prevent some users seeing some parts of repository at all. I can't find user permissions mentioned in t...

How does System.Net.Sockets perform its DNS lookups in the context of finding a WCF service?

I have a Web application and a WCF service hosted on the same Windows 2003 development server. They each have their own IIS website node responding to drs.displayscreen.web and drs.displayscreen.service host headers respectively. The hosts file contains entries for both headers pointing back to 127.0.0.1. The web site has a service refe...

Is PHP allowed to modify .htaccess file in current folder?

I have a PHP web app located on shared hosting. My goal is to modify .htaccess file from PHP code when the PHP page is running. I need that .htaccess to insert a couple of mod_rewrite lines into it. The problem is that on Windows+Apache I can dinamically modify .htaccess file but the same code on Linux reports a problem when I try to ac...

Why am I only allowed to access this zip file in Debug mode?

I'm having a problem that doesn't make a lot of sense to me. I have an ASP.NET application that runs perfectly in Debug mode, but throws Access Denied errors when running normally. I've given the ASPNET account and the account the application impersonates Full Control rights on the files the webapp is calling (using the Process object). ...

What is the best way to setup permissions for web site users?

I'm working on a web site where each user can have multiple roles/permissions such as basic logging in, ordering products, administrating other users, and so on. On top of this, there are stores, and each store can have multiple users administrating it. Each store also has it's own set of permissions. I've confused myself and am not sur...

Using C# to get a list of ACLs for Servers and mapped drives

The production change implementers for our IT group have been tasked with reviewing the security for all of the various objects in our group, primarily to make sure that people who have left our employ or have transferred to other groups no longer have access to our server shares, web directories, sql databases, etc etc. We recently comp...

File permissions in Android

First of all, Hi to everyone, I'm here just to ask something maybe very simple, I'm working with Files, FileOutputStream and FileInputStream, But I just want to get/set a few props from the file, I mean, the owner the file, the permissions read/write, etc. Looking around I found the classes FileDescriptor and FilePermission but I don't ...

What are the minimum security permissions for a website in ASP.NET?

Can someone guide me to a reference for the minumum security permissions on each webfolder in an IIS7 website? For Users, Admin, System, Network Service? I have Network Service as a DB Owner on SQL as well, is this necessary or should I restrict access from it? EDIT: MVC FOLDERS SPECIFICALLY ...

In linux, is there a way to set a default permission for newly created files and directories under a directory?

I have a bunch of long-running scripts and applications that are storing output results in a directory shared amongst a few users. I would like a way to make sure that every file and directory created under this shared directory automatically had u=rwxg=rwxo=r permissions. I know that I could use umask 006 at the head off my various scr...