privileges

SQLExpress connection fails in IIS 7 w/ user instance error - "Failed to generate a user instance

徘徊边缘 提交于 2019-12-06 10:07:26
问题 Mainly looking to answer my question #1 below, but more knowledge would be appreciated. I tried to use these resources during my investigation, but was unsuccessful: http://social.msdn.microsoft.com/Forums/en/sqldatabaseengine/thread/f5eb164d-9774-4864-ae05-cac99740949b ( For this error: Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be

How to revoke MySQL user privileges for one table?

萝らか妹 提交于 2019-12-06 07:57:57
When I have granted privileges to a user for some specific tables: GRANT ALL PRIVILEGES ON table1.* TO 'user1'@'localhost' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON table2.* TO 'user1'@'localhost' IDENTIFIED BY 'password'; How do I revoke the privileges for this user, just for table1 ? Google is your friend! http://dev.mysql.com/doc/refman/5.7/en/revoke.html Syntax: REVOKE ALL PRIVILEGES ON table1.* FROM 'user1'@'localhost'; To further explain this answer - I'll teach how to fish (rather than just give you a fish). The MySQL documentation can look confusing at first - the "syntax" for

How to get user rights AND privileges of a Windows User account

旧街凉风 提交于 2019-12-06 06:58:14
问题 I need to be able to check for all of these user rights and privileges. I have attempted using a token to access these, but this only accomplishes the list of privileges. I've checked this library and also this one but am unable to find a solution. Is the only way to accomplish this testing each specified right / privilege independently? Or I may just be clueless. Any help in the right direction would be appreciated! 回答1: I believe the only way to do this is to use either

ERROR 1045 (28000): Access denied for user 'username'@'%' (using password: YES)

醉酒当歌 提交于 2019-12-06 06:31:29
问题 I Installed MySQL on my CentOS 6.4 server. I logged into my root and changed its password. Later I thought that I should make a new user and use that user as my default user, So I created a new user name golden using the following command: CREATE USER 'golden'@'%' IDENTIFIED BY 'password'; Then I applied permission to the user golden : GRANT ALL PRIVILEGES ON * . * TO 'golden'@'%'; FLUSH PRIVILEGES; Now this user: golden was able to do everything. So I finally Deleted the root user . Now I am

Cannot connect with the MongoDB superuser to the other databases from the terminal

僤鯓⒐⒋嵵緔 提交于 2019-12-06 06:08:39
问题 I have defined a superuser in my admin database: $ mongo admin -u superuser -p 1234 MongoDB shell version: 2.4.6 connecting to: admin > db.system.users.findOne() { "_id" : ObjectId("52a9a8bd2db854b07d3960f1"), "user" : "superuser", "pwd" : "8c246ca972a74c8049b79771df9b718b", "roles" : [ "userAdminAnyDatabase", "dbAdminAnyDatabase", "clusterAdmin", "readWriteAnyDatabase" ] } But now I cannot connect to another database with this user: $ mongo mono -u superuser -p 1234 MongoDB shell version: 2

Give a user permission to ALTER a function

廉价感情. 提交于 2019-12-06 05:05:33
I try to ALTER a function with a new user and I get the error: ERROR: must be owner of function ACases ********** Error ********** ERROR: must be owner of function ACases SQL state: 42501 What permission do I have to give to a user so he can ALTER that function? The only way I found was to make the user the OWNER of the function. But if that is the case, only one user (owner) can ALTER the function. So how would I change the OWNER for all functions? CREATE OR REPLACE FUNCTION public."ACases"(caseid integer) RETURNS boolean AS $BODY$ DECLARE BEGIN RETURN FALSE; END; $BODY$ LANGUAGE plpgsql;

“Operation not permitted” while dropping privileges using setuid() function

眉间皱痕 提交于 2019-12-06 02:51:02
问题 Why this simple programs that use os.setuid()/gid() fails? Is written in python but I think that is not a language relative problem (at the end are all the same posix system call): import os, pwd if os.getenv("SUDO_UID") and os.getenv("SUDO_GID"): orig_uid=int(os.getenv("SUDO_UID")) orig_gid=int(os.getenv("SUDO_GID")) else: pw = pwd.getpwnam("nobody") orig_uid = pw.pw_uid orig_gid = pw.pw_gid print os.getuid(), os.getgid(), os.geteuid(), os.getegid(), orig_uid, orig_gid os.setgid(orig_gid) os

phpMyAdmin won't stop throwing “#1130 - Host 'localhost' is not allowed to connect to this MySQL server ”

余生颓废 提交于 2019-12-05 23:27:51
I'm trying to enter http://localhost/phpmyadmin/index.php but I keep getting : Error MySQL said: #1130 - Host 'localhost' is not allowed to connect to this MySQL server Connection for controluser as defined in your configuration failed. phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server. I've tried to do what's written here , and here , and also here , and last but not least - here ,

Start Java Runtime Process with Administrator rights on Vista

本秂侑毒 提交于 2019-12-05 18:43:27
i want to execute a setup.exe installer which installes a software on vista with java 1.6. The user is not an administrator. When i try to start the process i get the error message: CreateProcess error=740 which indicates, that the user has not enough rights for starting the process. Can i submit a flag or an option to indicate, the the process should execute with administrator rights? Vista itself does have this functionality inside the menu toolbar. Can i use this function in Java. I call the following code Runtime rt = Runtime.getRuntime(); Process process; try { String fileToExecute = new

Drop root privileges for certain operations in Python

馋奶兔 提交于 2019-12-05 18:11:34
问题 In my Python script, I perform a few operations that need root privileges. I also create and write to files that I don't want to be owned exclusively by root but by the user who is running my script. Usually, I run my script using sudo . Is there a way to do the above? 回答1: You can switch between uid's using os.seteuid() . This differs from os.setuid() in that you can go back to getting root privileges when you need them. For example, run the following as root: import os open('file1', 'wc') #