Questions tagged [privileges]

This tag is for questions relating to the general topic of privileges, without reference to any specific operating system or application.

This tag is for questions relating to the general topic of privileges, without reference to any specific operating system or application.

1503 questions
38
votes
5 answers

How to view user privileges using windows cmd?

I am trying to view the user privileges using the command prompt in Windows. User account & User privileges such…
AJINKYA
  • 741
  • 2
  • 9
  • 20
34
votes
4 answers

Can't execute a MySQL stored procedure from Java

I am connecting to a MySQL (5.08) database running on a linux machine from a web application running in tomcat. I get the following exception when I try to execute a stored procedure: com.hp.hpl.chaos.web.exception.DBException: getNextValue for…
CGP
34
votes
4 answers

Why is window.showModalDialog deprecated? What to use instead?

I was developing a GreaseMonkey script which used window.showModalDialog. But before finishing it, I have discovered that Firefox 29 warns: Use of window.showModalDialog() is deprecated. Use window.open() instead. For more help …
Oriol
  • 274,082
  • 63
  • 437
  • 513
33
votes
1 answer

What account does IIS Express run under?

I need to get my dev machine to read a certificate from the local machine store to do this I need to run winhttpcertcfg.exe and specify the account I want to elevate What would this account be for IIS express? (For IIS it would be the…
ChrisCa
  • 10,876
  • 22
  • 81
  • 118
33
votes
2 answers

Make Inno Setup installer request privileges elevation only when needed

Inno Setup installer has the PrivilegesRequired directive that can be used to control, if privileges elevation is required, when installer is starting. I want my installer to work even for non-admin users (no problem about installing my app to user…
Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
33
votes
3 answers

Display default access privileges for relations, sequences and functions in Postgres

After altering the default privileges on a Postgres database object, how can you view them? For instance, if you grant all privileges to role_name for all tables created in the schema schema_name: ALTER DEFAULT PRIVILEGES IN SCHEMA schema_name GRANT…
Clint Pachl
  • 10,848
  • 6
  • 41
  • 42
32
votes
6 answers

How can I tell if my process is running as Administrator?

I would like to display some extra UI elements when the process is being run as Administrator as opposed to when it isn't, similar to how Visual Studio 2008 displays 'Administrator' in its title bar when running as admin. How can I tell?
Erik Forbes
  • 35,357
  • 27
  • 98
  • 122
31
votes
3 answers

Ansible non-root sudo user and "become" privilege escalation

I've set up a box with a user david who has sudo privileges. I can ssh into the box and perform sudo operations like apt-get install. When I try to do the same thing using Ansible's "become privilege escalation", I get a permission denied error. So…
DavB
  • 1,676
  • 2
  • 14
  • 16
27
votes
5 answers

Write Privileges - localhost - Mac OSX

I'm new to the mac world and have just been setting up my webserver. I used the following guide: https://alan.ivey.dev/posts/2011/os-x-10.7-lion-development-native-mamp-with-mysql-installer/ I've transferred my sites and databases and everything is…
Paul Mason
  • 1,818
  • 2
  • 20
  • 32
27
votes
5 answers

Cross-platform way to check admin rights in a Python script under Windows?

Is there any cross-platform way to check that my Python script is executed with admin rights? Unfortunately, os.getuid() is UNIX-only and is not available under Windows.
grigoryvp
  • 40,413
  • 64
  • 174
  • 277
26
votes
9 answers

Is there any graphical "sudo" for Mac OS X?

I'm designing a little software in Java. I don't know the term/definition to what I'm doing, but I'm prompting commands from Java to the terminal. Something like this: Process process = Runtime.getRuntime().exec("command"); I've done this before in…
user89862
25
votes
2 answers

Use perf inside a docker container without --privileged

I am trying to use the perf tool inside a Docker container to record a given command. kernel.perf_event_paranoid is set to 1, but the container behaves just as if it were 2, when I don't put the --privileged flag. I could use --privileged, but the…
Fred Tingaud
  • 740
  • 1
  • 6
  • 11
25
votes
4 answers

"The requested operation requires elevation" message after setup

I created setup program for one application in inno setup , where I'm trying to run application after install, but I get this message under Windows 7 : The requested operation requires elevation. I know it's because of admin privileges. Is there a…
chubbyk
  • 6,212
  • 13
  • 53
  • 67
25
votes
1 answer

Windows Vista/Windows 7 privilege: SeDebugPrivilege & OpenProcess

Everything I've been able to find about escalating to the appropriate privileges for my needs has agreed with my current methods, but the problem exists. I'm hoping maybe someone has some Windows Vista/Windows 7 internals experience that might shine…
KevenK
  • 2,975
  • 3
  • 26
  • 33
25
votes
1 answer

Alter default privileges for a group role in PostgreSQL

I have created two group roles in Postgres 9.2: one is called admins and the other is called readers. The idea is very simple: admins create tables and readers have read access to these tables. After granting privileges to both group roles…
juliomalegria
  • 24,229
  • 14
  • 73
  • 89