Questions tagged [privileges]
In computing, privilege is defined as the delegation of authority over a computer system. A privilege is a permission to perform an action.
285
questions
509
votes
19
answers
867k
views
Is there any 'sudo' command for Windows?
I always work on a non-administrator account on my Windows computer. Sometimes I need to install programs which requires administrator access. As I mostly use the Windows command prompt, is there a ...
228
votes
7
answers
305k
views
Allow non-root process to bind to port 80 and 443?
Is it possible to tune a kernel parameter to allow a userland program to bind to port 80 and 443?
The reason I ask is I think its foolish to allow a privileged process to open a socket and listen. ...
153
votes
7
answers
1.9m
views
mysql how to fix Access denied for user 'root'@'localhost'
Before I screw up something, when I login using $ mysql -u root -p, and show databases:
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql ...
80
votes
10
answers
100k
views
Elevated command line prompt can't access shared drives
I map a share from another machine using my user account.
I launch an elevated command prompt (cmd.exe, right click, Run as administrator).
Navigating to shared drive (Z:) results in:
The system ...
68
votes
9
answers
134k
views
How to run program from command line with elevated rights
Is there a way to run a program or command with elevated rights when I am already in a non-elevated command line?
Exactly the same action that would be performed when I click on the program shortcut ...
67
votes
8
answers
15k
views
Did Windows ever support any hardware architectures other than x86?
Microsoft Windows Internals, 4th Edition says:
The architecture of the Intel x86 processor defines four privilege
levels, or rings, to protect system code and data from being
overwritten either ...
48
votes
4
answers
20k
views
How can I tell whether a process is running with administrator permissions?
I'm using Windows Vista, with UAC enabled. I've installed an application, and the installer required admin privileges. The installer then started the application. I'd like to know if the application ...
47
votes
9
answers
122k
views
Got not sufficient privileges message in CMD when logged on as administrator
I was trying to use mklink command in cmd (I have Windows 7 OS) I was logged on as administrator, but I got:
You do not have sufficient privilege to perform this operation.
I used the same command ...
35
votes
7
answers
164k
views
How to launch Windows Explorer with the privileges of a different domain user?
My Windows 7 computer is connected to a Windows network at the workplace. There are two domains in use on this network, EMPLOYEES and TESTERS. I have logins on both domains, for example EMPLOYEES\Joe ...
31
votes
8
answers
120k
views
How do I run the Windows 7 Explorer shell with Administrator Privileges by default?
The Windows 7 shell (Explorer) can be made to run with Administrator privileges by this manual process:
Kill Explorer shell by holding down Shift+Ctrl, right-clicking the Shut down button in the ...
25
votes
2
answers
12k
views
How am I able to shutdown the system when I don't have SeShutdownPrivilege
Users in Windows can be granted various privileges
Privileges determine the type of system operations that a user account can perform. An administrator assigns privileges to user and group accounts....
25
votes
1
answer
4k
views
Why do x86 CPUs only use 2 out of 4 rings?
So either Linux or Windows based x86 systems only use ring 0 for kernel mode and ring 3 for user mode. Why do processors even distinguish four different rings if they all end up using just two of them ...
21
votes
3
answers
90k
views
Windows - Use Local Service and/or Network Service account for a windows service
I've created a window's service that monitors files on a specific directory on our Windows OS. When a file is detected, the service does some file I/O, reads the files, creates sub-directories, etc. ...
19
votes
3
answers
78k
views
Run MSI files as administrator from a user account
I'm usually logged in as a normal user on my Windows XP box. Sometimes, when I want to install a software update, I don't want to log off and log on again as admin, but I right-click the installer exe ...
19
votes
1
answer
23k
views
Check if an app is running as admin
How can I check in Windows if application is launched with administrative privileges? I see no corresponding column in Task Manager.
15
votes
3
answers
18k
views
How can I install DropBox without root privileges?
Is it possible to install Dropbox without root privileges in Linux?
I've tried to install it at my university, using the sources found here, but I seem to need to enter the root password (which of ...
13
votes
3
answers
20k
views
Change EUID of running process
On Linux, how can I change EUID of running process from command line (provided I have root access)?
13
votes
4
answers
17k
views
How to install Jenkins on Windows Server 2012
This may sound like a trivial question but here is what is happening:
I grab the latest version of Jenkins as native installer for Windows (1.491 in my case)
I set up a Windows Server 2012 (official ...
13
votes
2
answers
66k
views
How to list windows privileges for any user
I am trying to write a script to list the privileges (eg SeShutDownPrivilege etc) of all user accounts. I'd prefer it if my script could be run as a standard user, but I can run it as an admin account ...
12
votes
1
answer
1k
views
How to deny elevation to a program?
Does Windows have an "automatically deny elevation request" list?
If a user is a "standard user", it is possible to have Windows automatically deny any elevation requests by changing the ...
11
votes
2
answers
30k
views
How do I configure my application to run as administrator automatically?
I have created a patch file with an executable inside of it using Winrar SFX feature.
After executing the SFX file and the extraction ends up, my executable file will never run because it doesn't have ...
11
votes
3
answers
10k
views
What is the correct way to prevent non-root users from issuing shutdowns or reboots
Let's say that you have set up a multi-seat system for use in a school or library, allowing GDM to launch multiple X sessions to run simultaneously with different users/keyboards/monitors.
By default ...
11
votes
3
answers
5k
views
ubuntu and privilege elevation in i3wm
I use i3wm (www.i3wm.org) as the window manager for ubuntu 11.10 x64.
it seems that whatever piece of magic that controls elevation is not functioning properly. It's not an issue with i3wm perse, but ...
11
votes
3
answers
20k
views
Avecto Privilege Guard - How to run from command line?
OS: Windows 7 Enterprise
PG is run via right clicking Windows Explorer when an executable is selected and selcting the Privilege Guard menu item.
Is there anyway to wrap this into a script\batch ...
11
votes
3
answers
4k
views
Reopen SublimeText as Administrator
Is there a SublimeText plugin that reopens the current file as Administrator?
Notepad++ has a feature where, if you open a file and don't have the permissions to edit it, but try and save, it will ...
9
votes
1
answer
10k
views
Administrator account vs elevated privileges: what's the difference?
What's the difference between an Administrator account and elevated privileges? What types of things Admin account grants and where do you need elevated privileges? (i.e. run as administrator)
8
votes
4
answers
20k
views
Run a program without administrative privileges in Windows 7 [duplicate]
My account in Windows 7 is an administrator account. When I open the Run box (WinKey + R), I am warned, "This task will be created with administrative privileges."
Is there any way to run programs as ...
8
votes
4
answers
392
views
How to prevent dirty hands from touching my cookies?
According to my other question, it seems that my cookies are unprotected. (I should have known that as there was a time I just manually deleted cookies from Internet Temporary Files.)
So to make my ...
7
votes
4
answers
105k
views
How to execute a command with admin privileges and access to files of the logged in user?
I have some problems understanding sudo. I am logged in on a terminal as an non-admin/non-root user. This "normal" user is not in the sudoers file (and shouldnt be, in my opinion).
Now I try to ...
7
votes
4
answers
42k
views
What is 'Run as Administrator' in Windows 7? [duplicate]
On my Windows 7 machine, I am an administrator. I see, when I right click an app, it has an option Run as Administrator. What does this mean?
Also, if I am logged in as administrator, what ...
7
votes
4
answers
18k
views
"login" to phpMyAdmin via different users
I want a non-techie (marketing/sales) to have access to the data I manage regularly via phpMyAdmin:
without any ability to alter/insert/delete
without me having to build a special database-viewer-app
...
7
votes
1
answer
6k
views
What is the difference between the Administrator account and a User account that has administrator privilage?
The Backstory
Wife has a multiplayer Minecraft Server that she runs Tectonicus (a map generating program) against. Tectonicus is set up to use OpenGL (aparently ONLY OpenGL). When attempting to run ...
6
votes
3
answers
26k
views
OpenVPN client without administrator rights on Win7
My parents use a Win7 laptop. I have set it so that they are not administrators of the device, only I am. I have installed OpenVPN for them to access the home network resources when they are out. The ...
6
votes
5
answers
28k
views
Windows Store not recognizing Admin privileges
I'm trying to upgrade a new Dell laptop with Windows 8 to Windows 8.1. Using the default user logon created at initial boot, trying to upgrade to 8.1 via the Windows Store, I get the following error:
...
6
votes
0
answers
921
views
Does a process with CAP_SETUID and CAP_SETGID can always gain full root privileges?
If I have an executable file with CAP_SETUID and CAP_SETGID set inside xattrs file’s attributes.
Will I get full root privileges if such executable call setuid();setreuid();setresuid();setfsuid() with ...
5
votes
3
answers
31k
views
Install Silverlight for Mozilla Firefox without administrative privileges
Is there any way I can install silverlight plugin for Firefox without admin privileges? For Flash there's an .xpi extension so that I can install it on Firefox Portable.
5
votes
4
answers
4k
views
as a domain member, 'run with administrative privileges' always asks for hostname
Since we run Windows 7-clients in our windows-server domain I have a specific use case that has become more inconvenient:
On the client-site, being logged-on as an user with restricted rights and ...
5
votes
3
answers
6k
views
Starting services in batch file on windows 7
I have a fairly simple batch file which does just one thing - "net start myservice". This batch file gets shortcut-ed in a program group by installer so that users can simply click on the icon and get ...
5
votes
1
answer
3k
views
Can I make a shell context action run as administrator?
I like to add a shell context menu for registering .dll files using the command
%windir%Microsoft/Framework/v2.0.50727/regasm.exe "%1" /codebase
which used to work fine in XP. However in Windows 7 ...
5
votes
1
answer
963
views
What linux capabilities are necessary for DRI (Direct Rendering Infrastructure)?
Background:
I'm looking to create a docker image that can run opengl.
To do that I followed the steps found here, which worked like a charm.
The issue is that the instructions recommend that ...
4
votes
3
answers
7k
views
Automatically execute bash script under the privileges of another user
Is there a way to execute a bash script under the privileges of another user (automatically)?
I think "sudo" is the right way, but I don't know how to automate the process.
E.g. I want to run ...
4
votes
2
answers
19k
views
Why don't I have the right to create a text file in my root directory?
When I right-click in a window showing my C:\ directory in Windows 7 and try to create a new text file, I get an error message: "A required privilege is not held by the client." Why is this and how ...
4
votes
2
answers
481
views
What does gate mean in the Multics operating system?
I read Multics operating system. In the segment descriptor word (book) there is one part for number of gates for the segment. What does gate mean? I know the process can enter a higher-privileged ring ...
4
votes
1
answer
2k
views
symlinks for admin users on Windows
On Windows you can create symlinks
either if you start the programm, you want to create a symlink in (e.g. cmd), as Administrator.
or if you give your user/usergroup the permission to create symlinks ...
4
votes
2
answers
5k
views
opening a file with admin priviliges in windows
There is a file context.xml in the path :
C:\Program Files\Apache Software Foundation\Apache Tomcat 7.0.22\conf\context.xml
I have to edit this file. But i am unable to do so.When i try to save the ...
4
votes
1
answer
5k
views
Grant MySQL user ability to create databases, and only allow them to access those databases
Is it possible to grant a MySQL user the privileges to CREATE new databases, such that they have full access to the databases they create (including the ability to DROP those databases). But other ...
4
votes
2
answers
9k
views
Ubuntu: limiting user account only to access his home dir
I just created new user account, but the new user is able to access all the directories structure (including other's home directories). I'd like to limit the user to access ONLY his home directory (...
4
votes
1
answer
2k
views
Java Plugin a huge security risk? How to preseve Java plugin from privilege escalation?
Installing a regular Java plugin is IMHO a real security risk for non-IT people. Normally Java applets run in a sandbox and the applet cannot do anything harmful to your computer.
If an applet, ...
4
votes
1
answer
2k
views
Linux setcap and changes made to the executable
A program that I am developing uses raw sockets. For security reasons to run a program that uses raw sockets, the program has to be run under a user with effective ID 0 (root?) or have the capability: ...
4
votes
2
answers
4k
views
Powershell has started running as administrator
Something unusually has happened recently on my machine: every time I start powershell, it starts with Admin privileges by default. It used to be that it would start just as my user unless I right-...