Questions related to the sudo command that allows users to run programs with the privileges of a different user (normally the root user).

learn more… | top users | synonyms (1)

0
votes
1answer
20 views

Upstart for docker and setuid permissions

OK, this has kept me busy for a day at least, since last night. I am trying to do something very simple: run a bash script which creates a few folders and runs a docker container - but using upstart. ...
-1
votes
0answers
22 views

Wine: Fatal Error in Space Engineers Game .exe file

I’m trying to get my Space Engineers file working... Help Please. As I am new to coding and anything Ubuntu, this is difficult for me. Also I do not have access to sudo commands (I'm currently not in ...
1
vote
0answers
11 views

14.04 kate editor does not show any plugins

I got a strange problem with kate editor. For some reason, whenever I runs kate in normal mode (I mean without sudo) then all kate plugins disappears. I could not see any ...
1
vote
1answer
15 views

Giving limited Sudo privilege to a user

I've heard it can be done but have found no documentation on it. Specifically I want to give someone the ability to use their password as sudo for a steam application.
0
votes
1answer
3k views

Starting and Shutting down LAMPP with sudo access

I have read somewhere on net that we can install LAMPP (apachefriends.org/en/xampp-linux.html) in such a way that any user can start and/or stop LAMPP server using nobody Is is possible? Let me know ...
2
votes
1answer
17 views

must sudo modprobe after reboot

My wierless card is up and working. After each reboot i need to sudo modprobe rt5592sta I have searched and it looks like sudo su echo ndiswrapper >> /etc/modules exit should work. I tried ...
14
votes
4answers
8k views

What if I accidentally run command “chmod -R” on system directories (/, /etc, …)

I accidently ran sudo chmod 755 -R / instead of sudo chmod 755 -R ./ I stopped it after few seconds, but now there is some problems such as sudo: must be setuid root How can I revert ...
1
vote
1answer
19 views

Different settings for Midnight Commander running as root and as regular user

Is it possible to have some settings for Midnight Commander when run as user $ mc and some different settings (e.g. skin) when run as root? $ sudo mc The motivation is that it is immediately ...
0
votes
0answers
45 views

What is sudo password?

I recently bought an HP Laptop with Ubuntu installed on it. I don't need a login password. I want to install a software called Open foam. For that I need a sudo password. I dont know it. How to get ...
0
votes
0answers
14 views

Post Install Inability to use any operation requiring elevated privilege [on hold]

Got a strange one. On both a laptop and desktop I am setting up for a project with 15.04, once the setup completes, I can login, but the same password that logs me in won't work on any elevated ...
0
votes
0answers
47 views

executable running without sudo but not with sudo

I installed xampp in my system and it is installed in the location /opt/lampp. After that i added the php location to path varialbe using export PATH=$PATH:/opt/lampp/bin. So when i run php -v using ...
24
votes
1answer
1k views

Is it possible to enter password for sudo only once, and configure it to not require for password on other terminals?

I enter my first sudo command. I enter my password. For a while, I wont have to enter my password for subsequent sudo commands. Now the question. I am someone who opens a lot of terminals. It would ...
-1
votes
1answer
27 views

Can't delete a folder even with sudo su

I used the Ubuntu customization tool and the terminal stopped so I decided "Oh well, I'll just close it!". Now the 2 folders it made 'remaster-iso' and 'remaster-root' both have a lock sign on the ...
1
vote
1answer
1k views

E: Type 'sudo' is not known on line 1 in source list /etc/apt/sources.list.d/mono-xamarin.list

I don't know what caused the following to happen: The content of /etc/apt/sources-list.d/mono-xamarin.list is sudo apt-get update.
2
votes
1answer
82 views

How to undo command sudo nautilus

I have typed sudo nautilus to make some changes , now I want to come out of the command or undo the command to give access back to root.
1
vote
0answers
14 views

timestamp_timeout in Ubuntu doesn't work

I use ubuntu 14.04 and I tried to change sudo password timeout but change made to it doesn't work. Please help , My visudo file looks like this. GNU nano 2.2.6 File: ...
0
votes
2answers
158 views

Can't run shellscript with sudo

When I try to run my script like this: sudo ./connector.sh It give me this: sudo: ./connector.sh: command not found What am I doing wrong?
5
votes
0answers
92 views

Is sudo -i less secure than pkexec?

I just heard that it isn't recommended to use sudo -i on GUI programs - because it's less secure. Is there any truth here - is there an advantage to this: sudo -i gedit /random/file.name over ...
14
votes
1answer
1k views

What happens if you use @reboot reboot in crontab file?

What would happen if you use: sudo crontab -e And add the line: @reboot reboot Will it go into a infinite loop of rebooting?!
1
vote
1answer
49 views

sudo error “sudo: /var/lib/sudo/approachit writable by non-owner (040777), should be mode 0700” [closed]

This error occurs whenever I try to work with sudo. i found this error. Now i want to resolved this error in terminal. sudo: /var/lib/sudo/approachit writable by non-owner (040777), should be mode ...
0
votes
4answers
2k views

Keyboard shortcut to a sudo-script

How do I create a keyboard shortcut to a script that needs sudo privileges? I tried to create shortcuts via Ubuntu Keyboard Settings GUI to scripts "sh script.sh", "sudo sh script.sh" , but ...
78
votes
1answer
91k views

How do I run specific sudo commands without a password?

On one particular machine I often need to run sudo commands every now n then. I am fine with entering password on sudo in most of the cases. However there are three sudo commands I want to run ...
0
votes
2answers
25 views

Need to fix admin group but can't get into recovery mode with grub_timeout=0

I've gotten myself into a bit of a unique situation. Somehow my main user got removed from the admin group and no longer has sudo privileges. However, sometime in the past I also set my grub_timeout ...
0
votes
1answer
24 views

How to halt system via script with no user input?

My system runs headless, starts when power is applied, and at the end of the boot automatically starts some software through a .conf file in /etc/init. This starts the script that starts the ...
0
votes
1answer
26 views

x11vnc - How can I allow only certain users to have a VNC session

On my server, all but port 22 (ssh) are closed. VNC is possible, but only with a VNC-over-ssh method. Right now x11vnc is started -forever at boot. With the right ssh tunnel, anybody can initiate a ...
0
votes
0answers
21 views

Huge /var/lib/apt/list (55.6 Gigs) [closed]

I just removed and recreated my directories for /var/lib/apt/list because they were taking up more than 50% of my hard drive. Question: how can I use sudo apt-get update without consuming the ...
0
votes
0answers
13 views

How can I set up Ubuntu to execute a command as root when a user without root privileger logs in? [duplicate]

I currently have Ubuntu (15.04) set up to boot to tty, and want to make it so that sudo service lightdm start is executed whenever a specific user (without root privileges) logs in. Is there a way to ...
151
votes
13answers
175k views

Error message when I run sudo: unable to resolve host (none)

I have this issue on AWS on some servers. Whenever I run sudo the terminal is stuck doing seemingly nothing, until it finally spits out this error message. My terminal looks like this: ...
0
votes
1answer
25 views

sudo dpkg i chntpw* is not working

I am trying to run sudo dpkg -i chntpw* while running Ubuntu from a USB drive on my PC. I get this message. (Reading database ... 169714 files and directories currently installed.) Preparing to ...
0
votes
1answer
18 views

User B can sudo to an user A (not root or group admin)

I'm newbie, so please help me : In system , only user 'execute_prog'(not in group admin) has permission to execute a program ABC. Now, I want that user B can sudo as 'execute_prog' to execute this ...
1
vote
2answers
3k views

sudo credential caching on by default

Just installed a minimal ubuntu 12.04, then installed xfce4 and xinit from the command line after first boot. Totally vanilla installation afaik. I'm noticing that sudo caches the password until I ...
1
vote
3answers
45 views

echo to file works only with sudo su

I am using the Jetson TK1 development board from NVIDIA which has Ubuntu 14.04 on it. It is a 4-core ARM system and by default, 3 of them are "offline" - ubuntu@tegra-ubuntu ~ $ lscpu Architecture: ...
13
votes
2answers
9k views

How do I prevent PolicyKit from asking for a password?

For years, I've had the following in my sudoers file: scott ALL=NOPASSWD: ALL For those who don't know, this prevents sudo and friends (gksudo, etc.) from asking for a password. However, over the ...
0
votes
1answer
44 views

how to change read only to rewrite , sudo mount - o remount,rw/ not working

I am trying to initiate a Ubuntu phone background change from the white origami background to a custom background. I am using this sudo code: sudo cp ...
2
votes
1answer
839 views

“sudo: /etc/sudoers is owned by uid 1000, should be 0”

Error: sudo: /etc/sudoers is owned by uid 1000, should be 0<br/> Segmentation fault. This comes up when trying to mount drives. USB, external drives , CD are unmountable, so I am unable to ...
1
vote
0answers
18 views

My root user account is not in the sudoers file [duplicate]

How do i add my root user name to sudeors file in my Ubuntu operating system, because i can not have access as a root user now.
2
votes
2answers
93 views

npm -v return Segmentation fault

nodejs, npm works fine before. When I try to upgrade it sudo npm cache clean -f sudo npm install -g n sudo n stable And type npm -v, it throw "Segmentation fault". I restart system and I type a ...
9
votes
3answers
18k views

Error after sudo-ing “sudo: must be setuid root”

On a colleagues computer, everytime I use a sudo command, I get this error: sudo: must be setuid root I tried various things mentioned on the internet, like changing the permissions to 4755 from a ...
1
vote
5answers
13k views

Sudo not available in guest login

When I login as guest I am unable to execute any command with sudo. E.g.: sudo ps returns: sudo: unable to change to sudoers gid: Operation not permitted How can I fix this?
0
votes
2answers
29 views

Run sudo commands from standard account

I've recently had an increased interest in how multiple users are handled in Ubuntu, and have hit an interesting problem: running commands as sudo from a standard account. If I run a GUI application ...
2
votes
1answer
45 views

How do I enable my application to write in home/**user**/.config?

I recently downloaded Sublime Text and when I entered the license into it. It replies Unable to write license file: /home/scaffrey/.config/sublime-text-3/Local/License.sublime_license and then ...
10
votes
6answers
4k views

Why can't non-admin users install software?

This is probably something I don't understand since I am used to Windows and am only starting out with Ubuntu. I know that software in linux comes in packages what I don't understand is why can't ...
0
votes
1answer
57 views

Drop/Undo sudo privileges on .py file which runs inside a program which runs from sudo previleges

I need to run a program from sudo privileges and I am running .py file inside the program. So when my program runs from sudo then it automatically calls/runs the .py file with sudo. I am running file ...
15
votes
5answers
78k views

how to remove symbolic link

i was doing sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin but i accidentally typed something else. So now I want to correct it but it says symbolic link already exist. Please help, Thanks in ...
20
votes
3answers
69k views

How to configure ADB access for Android devices?

I'm using Ubuntu 12.10 and I have installed Android SDK, set it's path in my user .bashrc and it works. The problem is that my phone requires adb to be ran by root for permissions, but running adb ...
11
votes
1answer
14k views

Remove sudo privileges from a user (without deleting the user)

If you give a user sudo privileges how can I remove the sudo privileges and make the user become just a regular user? I used: sudo adduser username sudo Now I've changed my mind.
0
votes
1answer
29 views

How to change sudo passwords [duplicate]

When I try to change a sudo password, it say it doesn't work even running the mount -rw -o remount / When you run that command it would say i worked from the root menu but would still be invalid when ...
0
votes
0answers
58 views

Sorry, user is not allowed to execute X as root on lt

Whenever I try to run a command from the termainal as sudo, I am now getting the error: Sorry, user {user} is not allowed to execute {command} as root on lt. lt is the name of my computer. The only ...
0
votes
1answer
3k views

What actually yum does? [closed]

I've seen yum used as a command for Cento OS Red Hat Linux platform. But, I tried with sudo too and it works. I want to know then what yum actually does. I am just curious to know.
12
votes
5answers
29k views

How can I fix broken sudo - sudo: parse error in /etc/sudoers near line 23?

I am getting this error: sudo: parse error in /etc/sudoers near line 23 sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin I was trying to disable password ...