Linked Questions

80
votes
6answers
243k views

How to avoid being prompted for a password by sudo? [duplicate]

I know I can become root (super user) via the su command but I have to authorize it after entering the commands. Is there a way I can become root and authorize (with password) in one line
3
votes
3answers
8k views

Allow “root” program to run without privileges [duplicate]

I've changed my ctrl-alt-l shortcut so instead of just locking the screen, the system goes into suspend. (for reference, the command is gksudo pm-suspend-hybrid) as you can see, the program needs to ...
2
votes
2answers
2k views

Editing Sudoers to avoid typing a password for iwconfig command [duplicate]

I wanted to follow this guide to avoid typing a password every time I want to use "sudo iwconfig" command http://ubuntuforums.org/showthread.php?t=1132821 I tried the steps with "apt-get" command ...
4
votes
1answer
860 views

How to check UFW status without sudo (or being root)? [duplicate]

I'm running some scripts to check the UFW status and would like to run sudo ufw status without having to do sudo. I was hoping to find a firewall or ufw group to add myself to, but I didn't find any. ...
0
votes
1answer
1k views

How to run a command that requires sudo at login [duplicate]

I made a script that controls my system LEDs and it works great. I saved it to /usr/local/bin/led-pattern and ran sudo chmod a+x /usr/local/bin/led-pattern so its executable simply by entering the ...
0
votes
1answer
857 views

user Without root Permission [duplicate]

As a system administrator I want to give permission for user let's say "teacher" to run commands as root without knowing password of root, what to do?
0
votes
0answers
824 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 ...
0
votes
1answer
611 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 //...
0
votes
1answer
462 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 ...
0
votes
0answers
93 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 ...
1
vote
0answers
55 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 ...
0
votes
0answers
36 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. ...
0
votes
0answers
35 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: $ ...
0
votes
0answers
26 views

How to give sh file root permission without typing in password [duplicate]

I'd like to give my sh file (change mac address) root permission when I open terminal and type bash changemac.sh without typing in my root password. I found a similar question "How do I run specific ...
0
votes
0answers
23 views

How to write a script to run network-manager without root password [duplicate]

I am trying to write a script to start/stop/restart the network-manager without root password. Please help me to create the script. Thank You in Advance.

15 30 50 per page