privileges

Cannot drop a role that is granted to connect database

百般思念 提交于 2020-07-03 11:47:09
问题 I am using PostgreSQL 10.4 and I found a strange behavior. If we create an role and grant it to CONNECT the database: CREATE ROLE dummy; GRANT CONNECT ON DATABASE test TO dummy; Then we cannot drop this role, even if it owns no object at all, this command: DROP ROLE dummy; Raises: ERROR: role "dummy" cannot be dropped because some objects depend on it SQL state: 2BP01 Detail: privileges for database test Documentation is a bit misleading: Class 2B — Dependent Privilege Descriptors Still Exist

pgadmin: getting “DETAIL: User does not have CONNECT privilege.” error

柔情痞子 提交于 2020-05-29 01:15:32
问题 I’m using pgAdmin III on Mac Yosemite. I created a role, “discount”, and created a database “discount”. In the pgadmin tool, how do I give the user “discount” connect privileges (and table read/write privileges) to the database “discount”? Currently, when I try and login at a command line I get this error davea$ psql -h localhost -d discount -U discount Password for user discount: psql: FATAL: permission denied for database "discount" DETAIL: User does not have CONNECT privilege. 回答1:

pgadmin: getting “DETAIL: User does not have CONNECT privilege.” error

微笑、不失礼 提交于 2020-05-29 01:14:48
问题 I’m using pgAdmin III on Mac Yosemite. I created a role, “discount”, and created a database “discount”. In the pgadmin tool, how do I give the user “discount” connect privileges (and table read/write privileges) to the database “discount”? Currently, when I try and login at a command line I get this error davea$ psql -h localhost -d discount -U discount Password for user discount: psql: FATAL: permission denied for database "discount" DETAIL: User does not have CONNECT privilege. 回答1:

What are the minimum privileges required for using mysqldump

岁酱吖の 提交于 2020-03-22 04:43:55
问题 I want to create mysql user with limited privileges to use only with mysqldump . What are minimum privileges that we can assign to user so he can just take dump and load databases or this requires admin rights ? For now I have something like this working but I am not certain about the scope: DROP user 'dumpuser'@'localhost' ; FLUSH PRIVILEGES ; GRANT SELECT ON mysql.proc TO 'dumpuser'@'localhost' IDENTIFIED BY 'dumppwd'; GRANT ALL ON dbname.* TO 'dumpuser'@'localhost' IDENTIFIED BY 'dumppwd';

“root” execution of the PostgreSQL server is not permitted

﹥>﹥吖頭↗ 提交于 2020-02-03 02:39:53
问题 When I try to start postgresql I get an error: postgres postgres does not know where to find the server configuration file. You must specify the --config-file or -D invocation option or set the PGDATA environment variable. So then I try to set my config file: postgres -D /usr/local/var/postgres And I get the following error: postgres cannot access the server configuration file "/usr/local/var/postgres/postgresql.conf": Permission denied Hmm okay. Next, I try to perform that same action as an

Java on Windows: Test if a Java application is run as an elevated process (with Administrator privileges)

孤人 提交于 2020-01-21 11:32:46
问题 Situation I have an (Eclipse RCP-based) Java application running on multiple platforms. I got this figured out on all platforms except Windows. Installer : My application installer is always run in elevated mode, so it can install the application to C:\Program files\MyProduct . From a user perspective, this means the installer can only be executed by an Administrator and the UAC will ask for confirmation. This works fine. Normal usage : The application can be launched by normal users . No

Privileged instruction in C

让人想犯罪 __ 提交于 2020-01-15 10:22:08
问题 I'm having some problems with C. I am trying to program a parallel port in Windows 7 Professional x64 in VS 2010 Ultimate. Since I do not have a parallel port, I'm using a converter from USB->Parallel and Windows installed the drivers correctly. I've soldered 8 LED-s on the end of the parallel connector and they are all working fine when I connect the USB into the computer. Now, I would like to control the parallel port via my program written in C which is: #include <stdio.h> #include <dos.h>

Privileged instruction in C

丶灬走出姿态 提交于 2020-01-15 10:21:02
问题 I'm having some problems with C. I am trying to program a parallel port in Windows 7 Professional x64 in VS 2010 Ultimate. Since I do not have a parallel port, I'm using a converter from USB->Parallel and Windows installed the drivers correctly. I've soldered 8 LED-s on the end of the parallel connector and they are all working fine when I connect the USB into the computer. Now, I would like to control the parallel port via my program written in C which is: #include <stdio.h> #include <dos.h>

Access /Private/etc with c

我与影子孤独终老i 提交于 2020-01-12 10:30:11
问题 this might be a simple question, but how do I "request" system / root priviliges from the user in a c console application. I need to write to /Private/etc but i can't. This is for mac / unix. I've seen it being used in other console commands e.g. when you run the following command: "sudo /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder", Terminal asks you for your Password. How do I do this? thanks, JNK 回答1: There isn't any system call which will let a process obtain root

How to add Root privileges to my OSX application?

给你一囗甜甜゛ 提交于 2020-01-10 19:57:33
问题 I made an application as root user, it worked perfectly(in root user). When I try same application with a standard user it didn't work out. Then I get to know that I need root privileges to run the application. I Google for few day but didn't get it. I have read some questions and apple doc. which are- https://developer.apple.com/library/mac/documentation/Security/Conceptual/authorization_concepts/01introduction/introduction.html How to set my application to always run as root OSX How to