privileges

Opening/Writing files as administrator/root using C++ (UAC/gksudo/etc.)

The application I'm working on requires the ability to edit certain protected files across Linux, OSX, and Windows [Vista]. Generally, when an application needs to do something with elevated privileges, a password request dialog appears asking the user to verify they want to allow the application to perform those operations as an admini...

Start Java Runtime Process with Administrator rights on Vista

Hi, 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 indicat...

How can I connect to MySQL database on a dedicated Windows 2003 server from EC2 based app server with PHP

I have developed a web application that uses PHP and MySQL and has all been running fine from a single development server. I now want to separate things a bit and place an app server within Amazons cloud that will receive and process uploaded files. The database is going to remain on the dedicated server but will need to be accessed by t...

how to assign read only privileges to a user in my oracle database

Hi, I need to open up my database to a remote QA team.I want to ensure that they have read-only access to all my database objects (table records,procs, functions, views,etc) . But they should not be able to delete or drop database objects. How do i do that in oracle 10.2g ? Is there a built-in role which can be assigned to the user ...

App hangs instead of throwing exception...

I have a Winform App that I deploy with ClickOnce that installs and works for me(my UserLogin) on any system in our Domain but will not start up for a regular Domain User. It doesn't produce any errors of any kind just sits there indefinitely. It used to work and I am at a loss as to what changed that it doesn't work now. I am at a ...

Launching a service from msi installer that depends on assemblies installed by the msi

I'm using WiX to write a MSI installer to start a service that depends on DLLs installed by the MSI. On Vista, the DLLs become added to the global assembly cache in the MSI's InstallFinalize phase, so I can't use the built-in service starting command in WiX. That one tries to start the service before the DLLs are in the GAC, and fails. T...

.NET - Lower Application Privileges

I would like to know how to programmatically lower my application's privileges. So, let's say someone with admin privileges runs my program, I would like my program to still run under a normal user's environment or with less privileges that I don't need. Also, could you explain what is restricted in the lower trust environment? Edit: ...

AFP file permission issues on OS X

I have two clients (one windows XP and one OSX) connected to a UNIX server (centOS). The windows client connects through the Samba file protocol, and the mac through AFP. For some reason the OSX machine ignores the permissions set even when they are changed to 444; it just overrides the priveleges and is able to write to the file (along ...

Recommened SQL Priviledges for MySQL users for CMS'es

I have been experimenting with a lot of web development apps like Drupal, Moodle, Efront and Elgg lately. For better security, I run test servers on a XAMPP setup on a virtual XP machine inside Mac OS X 10.4, using Parallels. I think this should be pretty secure, right? When installing software like Elgg, it asks me to create a user in ...

Is it possible to show a link in a C# program to the admin only?

Hi (I'm pretty new to this), I have a login control in my C# program and once the user logs in, they are able to see links to other programs (a portal). Is it possible to hide the 'create new user' link to everyone except the admin once the user has logged in? Is this something I'd change in the web.config as I only want admins to be ab...

Which properties and functions must be run under elevated privileges?

Hello. I`d like to know which properties/functions must have which privileges to be used. Is there such a list? For example, when developing code, how can a newbie know which properties or functions will work for site members, visitors or owners? I`v been developing for a while, but still stumble at this one. Thank you. ...

MySQL users: When localhost changed to %, I cannot login

Hi, I am developing an app with MySQL. I have MySQL (XAMPP) running on my PC. All works fine but now I want to let other users from our network to login, but I found out that when I change user property "localhost" to % (any computer) I get access denied even with my own account. So, in the short, everytime I change "localhost" to "%" (a...

How to start MySQL with --skip-grant-tables?

I locked my root user out from our database. I need to get all privileges back to the root user. I have my password and I can log in to MySQL. But the root user has no all privileges. ...

How to get all privileges back to the root user in MySQL?

I am using MySQL. My root user doesn't have all privileges. How can I get all privileges back to the root user? How to do it step by step? ...

How can I restore the MySQL root user’s full privileges?

I accidentally removed some of the privileges from my MySQL root user, including the ability to alter tables. Is there some way I can restore this user to its original state(with all privileges)? UPDATE mysql.user SET Grant_priv = 'Y', Super_priv = 'Y' WHERE User = 'root';# MySQL returned an empty result set (i.e. zero rows). F...

Privileged operations in netbeans mobility

I'm writing a Java ME app that will use privileged operations such as messaging. By default the user is prompted to confirm each of these operations, but I would like to run it as a background service. Documentation says to request permission in the jad file, I have done so and presume it will work on a device. However I would like to...

I can not find my.cnf(MySQL configuration file) on my computer.

My computer is Windows XP. I need to find this file to get all privileges back to the root user. I accidentally removed some privileges of the root user. I still have the password and there is no problem for me to log in to MySQL as the root user. But I can not alter a table. ...

How to get all privileges back to the root user in MySQL?

I have logged in to MySQL with the --skip-grant-tables option. But I don't know how to get all privileges back to the root user. Error SQL query: GRANT ALL PRIVILEGES ON * . * TO 'root'@'localhost'; MySQL said: Documentation 1290 - The MySQL server is running with the --skip-grant-tables option so it cannot...

User properties/ privileges in AppleScript

I want to write an applescript program that first checks to see if the user has Admin privileges, and if it doesn't then requesting a re-log-in or something. Eventually the script is going to need to do a sudo chmod of a folder I just created... I can do that with a do script and a with Administrator Priviledges. However I haven't figu...

Non-Admin Developer on Snow Leopard

I use a standard user account for my daily tasks on Mac OS. Since upgrading to Snow Leopard I am asked to do the following when a program is run from within Xcode: "Type the name and password of a user in the 'Developer Tools' group to allow Developer Tools Access to make changes" While I know the admin username/password, this is annoy...