Linked Questions

0 votes
1 answer
1k views

How to correctly insert sudo password in sudo command?

I want to log in to user2 via bash script, so my script contains: sudo -i -u user2 Also I don't want to enter my sudo password by hands. Before I did something like this: echo "my_sudo_password&...
Leo's user avatar
  • 1
60 votes
9 answers
535k views

Ubuntu 16.04 - How to start xampp control panel

How can I start xampp? After the installation there was no shortcut created on the desctop, now I am unable to find it. I am using the latest XAMPP for Linux 5.6.30, 7.0.15 & 7.1.1 The panel ...
Black's user avatar
  • 801
0 votes
3 answers
6k views

How to run a python script with sudo without being prompted for a password [duplicate]

I have a python script that restarts the mouse driver import os os.system("sudo modprobe -r psmouse") os.system("sudo modprobe psmouse") since my mouse doesn't always show up on start. What is a ...
Chase Mussleman's user avatar
3 votes
1 answer
2k views

No caps lock indicator light?

Ever since I first dual-booted Ubuntu 16.04 on my Surface Pro 3, my caps lock indicator LED on my keyboard hasn't worked. I decided to try and do something about it recently. When I type the command ...
Leandro's user avatar
  • 33
4 votes
2 answers
958 views

Create a custom sudo command without password

I want to implement a script to execute any command with root privileges, but without having to put any password. At the terminal I would like to see it like this: ./newsudo "comand with root ...
Binkpang34's user avatar
2 votes
1 answer
1k views

How to make Ubuntu to show a notification when there is a btrfs checksum failure?

Like aa-notify, which shows a notification on my desktop when AppArmor denies something.
Artyom's user avatar
  • 1,723
21 votes
4 answers
42k views

How to run .desktop icon from sudo

I have created a desktop icon for the gddccontrol, but to run it I need to execute it from sudo. Is there a way to run a command from the desktop icon like, sudo -pPASSWORD gddccontrol so it won't ...
Eugene's user avatar
  • 321
2 votes
4 answers
13k views

How do I run any application as root? [duplicate]

While logged in as the root account of a CLI installation, almost every application gives me this error: Don't run this as root! I want to bypass this error and run the application while logged into ...
Dev's user avatar
  • 692
1 vote
2 answers
7k views

using a sudo command without a password for a certain app

I'm using a python script to run docker, but docker requires sudo commands to run and it's bad practice to store the sudo password in the file or give the whole python script sudo rights, I've seen a ...
Newbie's user avatar
  • 570
0 votes
1 answer
96 views

Changing the command executed using suspend/standby in 14.04 LTS

I had some problems with my Thinkpad X200T not suspending under 14.04 LTS, after trying different solutions, it seems the easiest fix is to just execute sudo pm-suspend How would I go about making ...
Michael's user avatar
  • 78
21 votes
2 answers
137k views

tcpdump permissions problem

Am having trouble running tcpdump. I must run tcpdump with non-root user. Searched the web for my problem and figured out I should: sudo setcap cap_net_admin=eip /usr/sbin/tcpdump That enabled me ...
Sivan Sigal's user avatar
2 votes
1 answer
4k views

Possible to run gksudo without a password require?

So i have xampp installed on my desktop and since it can use alot of ram if it stays active for a long time i followed tutorial to put together some kind of python script to start and stop services ...
lonerunner's user avatar
11 votes
3 answers
10k views

Where are the startup scripts for Unity Desktop?

I want to run a script as soon as my lightdm authentication succeed, and my Unity starts loading. and i want to run my scripts as a root user. where are startup scripts located in Unity ?
Shnd's user avatar
  • 223
19 votes
1 answer
16k views

How to make 'sudo' grab the password from a file?

I want to run a command that requires the sudo password say: sudo apt-get update Isn't this supposed to work (I have stored the password in a normal text file passwd.txt): sudo apt-get update <~/...
MichaelB's user avatar
  • 335
7 votes
2 answers
411 views

Any reason to have a strong user password?

I recently decided to change my (very) strong user password to something trivial. This was mostly to eliminate frustration with typing a long password each time I sudo or whatever. My question is, ...
Radu Potop's user avatar

15 30 50 per page