privileges

PostgreSQL, how can i restrict access to code in a function for a user?

I found out how to deny all access to tables for user in a schema. REVOKE ALL PRIVILEGES ON SCHEMA test FROM user; But what can i do to restrict access to all functions in a schema, so that user couldn't read the code? I was trying this: REVOKE ALL ON FUNCTION test.test_function(text) FROM user; Yes, it has restricted the ability ...

SQL - Windows Policy

How can I find out and set if an User is enabled or disabled using SQL commands? Same problem for windows policy enabled/disabled for an User. ...

GRANT DDL in Oracle to specific user

Hi, How to grant DDL privileges in oracle ? On database I've users SCHEMA_1, SCHEMA_2 and SCHEMA_3 and now i want to from schema_1 be able to do DDL only on SCHEMA_2 Is the grant is possible from SCHEMA_2 level or system only ? ...

Oracle newly created user privileges issue?

Does newly created user: create user John identified by secret; have some privileges? Or is there any oracle config for privileges of newly created user? I need information about this topic. ...

Using celery in a django app to run script with root priviliges?

I need to run some commands on my ubuntu box where my django project resides that requires root privileges, from within my django project. I'm using celery to fire off an asynch process, this process in turn calls shell commands that requires root privileges to succeed. How can I do this without risking creating huge security holes? P...

Running a process with lowest possible privileges in winapi

I am writing something similar to the http://ideone.com/. Currently I am running user processes with CreateProcess call. I kill the process if it runs longer then specified amount of time but I don't know how to deny read/write filesystem rights / creating process rights etc. to the created process. The given executable can be literally ...

setuid(0) with CAP_SETUID

I am trying to change my uid to 0 as non-root with the CAP_SETUID capability. I have the following program: #include <sys/types.h> #include <unistd.h> #include <stdio.h> #include <sys/capability.h> #include <sys/prctl.h> int main(int argc, char *argv[]) { printf("cap setuid in bset: %d\n", prctl(PR_CAPBSET_READ, CAP_SETUID, 0, 0, 0...

Copying a file to a directory that might not be writable by the application.

I am writing an application and I am at this point at the workflow: -File A doesn't exist? -Copy file B to file A -Error? -Copy file B to file A with higher privileges The problem is in the `Copy file B to file A with higher privileges' step. I am new to asking the admin for his/her password. I'd like a window similar to this, w...

mysql mixed privileges

Hello, I am trying to create a separate set of privileges for a database that contains both "read only" tables and "read write" tables. To be more specific, the database contains 10 tables that I want the user to only read from (i.e. select only). It also contains around 30 tables which the user is free to read and write to and from. La...

How to assign Page-wise privileges programmatically in asp.net?

I have an asp.net application which has web.config file in every folder of the application. Every folder has many aspx pages in it.I need to assign/deny privileges through coding for every individual pages of folders.The privileges is role based privileges.so some roles will have privileges to only some pages in each folder. Please help ...

Using JScript determine if user has administrative rights

I'm building a "diagnosis" page that determines various settings on a client's environment to help diagnose setup and connection issues. (e.g. cookies turned on, popups enabled, etc.) For a part of this page I'd like to check... if the browser is Internet Explorer, if the user has administrative rights or not... as they will be needed t...

How can I force the "Run As" form to appear when someone tries to run my .net desktop application?

Hi, I need in to popup thr "Run As" form when user tries to run my application (C#.NET 4, on Win XP), that he could easily to log as other user. It may be in the application itself (in the C# code) or in some other preceeding batch/exe file ("launcher") or such. I didn't find any way to pop this form. How could it be done? thanks. ...