Linked Questions

0 votes
1 answer
2k views

command line: start program by alacarte as sudo in folder/tree

i have installed a program via github in: /home/user/folder/program. to get this to run via the terminal i use the following commands. cd folder sudo ./program but i would like to have a short ...
Matthieu Kints van's user avatar
0 votes
1 answer
143 views

intermittent WiFi on 16.04LTS

I've just installed Xenial on my home desktop and the internet is very intermittent, showing "there is no internet connection" when I try to load a page. If I disable/enable networking it comes ...
Ninja Chris's user avatar
0 votes
1 answer
1k views

shell script without password [duplicate]

I am executing following steps to mount my server and copy the files. But it interrupts for password. How can I do it automatic ? sudo apt install cifs-utils sudo mount -t cifs -o user=user.name //...
techy's user avatar
  • 127
0 votes
1 answer
7k views

How to mount password protected windows share without sudo in shell script?

In order to pass a password in a shell script you will have to write: sudo mount -t cifs -o password=asdasd,username=mc007,uid=1000 //192.168.1.105/cfmaster/ /PMaster/projects/x4mm/win But there are ...
xamiro's user avatar
  • 555
0 votes
1 answer
2k views

Allow nopasswd sudo for specific user

I am trying to set the scp as a specific user with NOPASSWD. alice ALL = (bob:ALL) NOPASSWD: /usr/bin/scp As I did understand from this question. However when I save using my visudo I still can't ...
Stolas's user avatar
  • 111
0 votes
1 answer
509 views

How do I add a command permission to specific user to do it without password? [duplicate]

I want to give permission to a user to do shutdown command without password. Shutdown command need root privileges. If I give NOPASSWD in /etc/sudoers, the user can do all command that need root ...
Mas Bagol's user avatar
  • 1,341
0 votes
1 answer
224 views

Change manual page option color

I see the man page options very dark. I use the konsole terminal in Kubuntu. I want to change the colour, how can I do it. The solution that I've found only works until shutdown. The terminal ...
user avatar
4 votes
0 answers
268 views

How do I restrict specific passwordless sudo sub-commands?

Is there a way to restrict the passwordless sudo commands to a set of "sub-commands". I am not looking for the answer to How do I run specific sudo commands without a password? I want to know if I it ...
Daniel Morell's user avatar
2 votes
0 answers
305 views

Microsoft Designer mouse on Ubuntu 15.10

I have recently upgraded my system to the Ubuntu 15.10 version and somehow my mouse pointer seems to not work until I restart my drivers. Is there a possible way to have a permanent solution and not ...
Nikitha Ann's user avatar
1 vote
0 answers
6k views

Poweroff Ubuntu without sudo, without password, over SSH [duplicate]

I have Ubuntu 18.04.1 LTS and trying to execute "poweroff" as a sudoer but without needing to enter the password. I added this line to visudo: nurp ALL = NOPASSWD: /sbin/poweroff It gives this ...
nurp's user avatar
  • 131
1 vote
0 answers
83 views

How can i enable user to have reboot privileges without sudo? [duplicate]

How can i enable user to have reboot privileges without sudo? Need to keep sudo password enabled. ssh user@server "sudo reboot" does not work because it requires a password to be entered. Want ...
rjt's user avatar
  • 426
0 votes
0 answers
64 views

kill process without inputting password [duplicate]

EDIT I ran the following: $ echo $USER goldy $ hostname goldy-ThinkPad-X1-Carbon-6th $ sudo visudo -f /etc/sudoers.d/kill and added goldy goldy-ThinkPad-X1-Carbon-6th = (root) NOPASSWD: /bin/kill And ...
goldylucks's user avatar
0 votes
0 answers
38 views

Unable to remove sudo access from ubuntu user [duplicate]

When i have install ubuntu at that time create admin user, Now my plan is to remove sudo access from this user and added custom sudofile for this user. First I remove sudo group from this user: $ ...
Nullpointer's user avatar
  • 1,161
0 votes
0 answers
330 views

startup script that needs a user password to execute itself (ubuntu 16.04) [duplicate]

Let's say I wanted an automated script to start right after a login prompt. The script, however, needs a user password before it can be executed manually using sudo 'script' command from the terminal. ...
user633551's user avatar
0 votes
0 answers
104 views

How to make a command execuitable without root previlages? [duplicate]

I want to make some commands,such as ntpdate,shutdown etc, to execute without asking me for a password or without using "sudo" for "all users"(even normal users who have no sudo privileges) . I want ...
Meow's user avatar
  • 1,357

15 30 50 per page
1
2 3 4 5