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)

5
votes
1answer
147 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 ...
5
votes
1answer
5k views

sudo: unknown uid xxxxx: who are you?

I was using ssh and trying to upgrade a system from Ubuntu 10.04 to 12.04. The connection had an issue so I had to login again to finish the upgrade. After running sudo dpkg --configure -a that was ...
4
votes
1answer
98 views

How is the guest account prevented from using su and sudo?

It's already known that the guest account can't use su or sudo: Why is su disabled from guest sessions? Sudo not available in guest login How is this done? My guess would be apparmor. However, ...
4
votes
1answer
821 views

apt-get update fails in Ubuntu 14.04 due to GPG Error

I am currently on Ubuntu 14.04 (new to Ubuntu, migrated recently). 'apt-get install' works fine, and my connection is working fine as well. But when I run apt-get update, this is what happens 100% [...
4
votes
1answer
511 views

Why does hd-idle need sudo to run in rc.local?

I have added a command that runs "hd-idle". It seems to need to run as root as otherwise it does not spin down the drives as instructed. Behavior seems to be the same when executed manually or via rc....
3
votes
1answer
68 views

Automating SSH login gives unresponsive remote-shell, dropping back to client-terminal (without errors)

I have a problem with the tool expect under Ubuntu 14.04 LTS. I want to automate ssh logins to some Sophos UTM Firewalls and evelate my rights directly after with "sudo su -" and the correct password. ...
3
votes
1answer
61 views

How to disable the password prompts?

I've have Ubuntu 15.04 on my laptop and just about everything I do requires me to enter my password. What do I have to do so I don't have to keep entering my password?
3
votes
1answer
341 views

Can't start program without using sudo

I have monodevelop 5.7 installed on my computer with ubuntu 14.10, but when I tried run it from launcher and from the command ~$ monodevelop they didn't work. But when I used the command ~$ sudo ...
3
votes
1answer
2k views

What causes “pam_unix … conversation failed” in auth.log

There are thousands of entries in my auth.log like this: sudo: pam_unix(sudo:auth): conversation failed What causes these to occur? I'd like to fix whatever it is but I'm a bit mystified as to ...
3
votes
1answer
372 views

Eclipse Juno won't open gui java apps when run with gksudo

I have Eclipse Juno installed on Ubuntu 12.04. When I run from the command line with sudo, everything works fine. However, when I follow the advice I see everywhere and run it with gksudo, I get the ...
2
votes
1answer
112 views

npm --version is different if use sudo npm --version

I have just upgraded nodejs in my machine. I uninstalled the node version (the one in ubuntu repositories) that I had. Then I installed nvm and installed nodejs 4.2.2. Everything goes without errors,...
2
votes
1answer
238 views

How to run `chmod` command form script with sudo permissions?

I want the change the permissions of /dev/ttyACM0 from a script. I have tried this command: su -c "chmod -R 777 /dev/ttyACM*" -m "$user". When I execute the script it is asking for a password. I ...
2
votes
1answer
1k views

cannot use sudo after using sudo passwd root

My System problem detected when I tried sudo passwd root in my ubuntu. I changed my root password by using the below command. sudo passwd root Now my system password changed, after this i could ...
2
votes
1answer
109 views

Cannot go into Root

When I enter sudo su or sudo -i in terminal on Ubuntu 12.04, I cannot become superuser. When I enter the password nothing happens. Its like: user@host~: sudo -i enter passwd: ****** user@host~: ...
2
votes
1answer
105 views

How to find out which programs are taking up alot of memory?

I've been getting messages that I have exceeded my quota limits. I am new to Linux and am not sure what to do. With windows, I could easily just go to Control panel, add/remove programs, and uninstall ...
2
votes
1answer
1k views

Permission denied error after SSH login

I am having Permission denied errors after logging with non root user (which has permissions to do "sudo -i" command). I get these errors: -bash: /bin/uname: Permission denied -bash: [: =: unary ...
2
votes
1answer
141 views

Aliased rm, how do I also alias sudo rm

I aliased rm to a echo use del or full path to rm to save myself from accidental rm (just lost my $HOME to it). But sudo rm still uses /bin/rm. How can I alias it to also print same message? PS: del ...
2
votes
1answer
92 views

Updater is not upgrading

I am using Ubuntu 12.10. I tried to upgrade it using the Software Updater, but it is not working even after pressing Upgrade button. Then I tried to upgrade through the terminal using the command sudo ...
2
votes
1answer
170 views

How to clean up aftermath from rookie ubuntu command

Here are the commands I regretfully run: sudo chgrp root /usr/bin sudo chgrp root /usr/local I had recently added a user to root group and because my user still did not have write permissions, I ...
2
votes
1answer
143 views

Why my gnome terminal is set to root by default?

When I try to open up a new terminal in Ubuntu to do some operations, it always defaults to an admin based terminal with [sudo] password for xxxxxxxx: $ I need a regular terminal. How do I do this? I ...
2
votes
1answer
1k views

Unable to open Update manager or Ubuntu tweak

I cannot open Update manager and Ubuntu Tweak when I open Ubuntu tweak I get this log user@laptop:~$ ubuntu-tweak Traceback (most recent call last): File "/usr/bin/ubuntu-tweak", line 124, in <...
2
votes
1answer
406 views

Is there a GUI to `visudo`?

Quite simply, is there a GUI to visudo I can recommend to other users, and use for myself? I have to set up a system where over 50 users have different sudo privileges and I need to juggle them all.
2
votes
1answer
98 views

Allow any user to use shutdown with my own shell

First of all sorry if my english is not excelent but it isnt my native language. I have a project where I'm building my own shell (named MYSHELL). One of the tasks is to create my own built-in ...
2
votes
1answer
57 views

Is it possible to run an application as superuser within boot without input?

I have an Ubuntu 12.04 Desktop machine running as a server with no input devices accessible after initial setup. I need to place any application that I want to run within the boot process. I have one ...
1
vote
1answer
30 views

16.04: editing /etc/sudoers to allow NetMan restart w/o password

I want to be able to restart Network Manager without having to enter my password every time. I did sudo visudo and added this line: %sudo ALL=(ALL) NOPASSWD: /bin/systemctl restart network-manager....
1
vote
1answer
98 views

Ubuntu terminal cant type special characters like backslash (\), slash(/), semicolon (:), etc properly

I'm running Ubuntu 14.04 without GUI and i'm having problems entering characters like backslash, slash, semicolon and so forth. The keys which would normally enter these characters print out all kinds ...
1
vote
1answer
121 views

How to fix sudo due to pam error

The short story is that I can SSH into my device with the a username and password that should be in the superuser group (so I should be able to sudo su). The problem is that I was trying to increase ...
1
vote
1answer
198 views

launch ipython but not like root

ipython is launched like root (UID); ok, but I need that after ipython cann't run and don't allow, script/code that can gain root privilegies. eg I launch ipython, ok the UID is root. And in my ...
1
vote
1answer
75 views

mv: cannot move ‘/etc/default/keyboard.tmp’ to ‘/etc/default/keyboard’: Operation not permitted

I run: sudo mv /etc/default/keyboard.tmp /etc/default/keyboard I get this error: mv: cannot move ‘/etc/default/keyboard.tmp’ to ‘/etc/default/keyboard’: Operation not permitted How to fix this ?
0
votes
0answers
49 views

Do I have to use “sudo” befor “pyrit list_cores” or “./devicequery” to get cuda to work?

When I use pyrit list_cores or ./DeviceQuery or ./cudahashcat64.bin without sudo it doesn't recognize my cuda core But when I do use sudo one time in one of those commands, it recognizes cuda core ...
0
votes
0answers
27 views

sudoer restore into default after a few minutes

I just built a brand new virtual machine with Ubuntu 14.04, then create a new user new, run visudo to add new into sudoer list using root account. The new account gets the sudo permission, but loss ...
0
votes
0answers
47 views

How do i regain sudo privilege after adding my user name to a group in samba

I installed samba to share folders in my network. i created a group lab1group in samba and added my user name to that group. Everything worked fine. But I cannot use sudo the following day. I think I ...
0
votes
0answers
49 views

Admin locked out of sudo and cannot access GRUB

When using sudo to execute admin permissions I receive the following error: sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set I know the solution to this problem lies in ...
0
votes
0answers
178 views

sudo apt-get update not working

E: Some index files failed to download. They have been ignored, or old ones used instead. Ubuntu 14.04 ; trusty What sould i do? that's the error.txt file Ign http://archive.ubuntu.com trusty ...
0
votes
0answers
523 views

ssh prompts for password when passing sudo command, even with ssh key

I'm trying to expedite restarting some services across several ubuntu servers. I've: added the command to the sudoers file generated an ssh key and copied it to one of the test servers wrote a ...
0
votes
0answers
60 views

ltunify broken pipe error?

My mouse recently broke and I tried to resync an old one that somehow got disconnected from the mouse and I get the error write: Broken pipe Failed to retrieve notification state when trying to ...
0
votes
0answers
53 views

cannot open Grub mode on ubuntu 14.04

I forgot my sudo password. As far i as read on forum i should open my machine holding shift to recover this password. Unfortunately it doesn't work. I tried left shift and right shift. Any idea how ...
0
votes
0answers
29 views

How do I use the Sudo command with ubuntu live?

I am trying out Ubuntu studio w a USB live disk and am having trouble running commands requiring sudo administrative access since the live disk doesn't seem to allow for me to log into my own account ...
0
votes
0answers
62 views

Ask root password instead of user (sudo) password

The privilege to use a Ubuntu machine was given to me. Previously there was another user in the system. I logged in with the "anotheruser" account and created the password for the root account (sudo ...
0
votes
0answers
100 views

Bitmask only starts with sudo

When launching bitmask through Unity it won't launch, it will only work if launched from terminal with sudo. How should I proceed?
0
votes
0answers
27 views

It it safe to keep a PamUSB enabled usb drive always connected?

I'm wondering if it's safe to the usb drive always connected, some program could sudo without my permission. It there a way to receive some notifications about pamusb's authentications? Thanks in ...
0
votes
0answers
30 views

accidentally moved home directory, cant login (so do not know where it is)

I do not have computing background so I thought I should stop typing usermod -d as root before i ruined the whole system. I have tried the answers on here already but I have had no success. I cannot ...
0
votes
0answers
92 views

sudo chmod 664 “/” -R

The problem: sudo chmod 664 "/" -R I've canceled it after a few seconds but here it is. What all should I do through Live CD? sudo chmod 755 "/" -R or just sudo chmod 755 "/" ? Thanks
0
votes
0answers
64 views

duplicate file in sudoers.d breaks sudo

Not sure if it's a bug in sudo, or some kind of a strange boobytrap feature, but here is what happened. Was working this problem, among others in an aticonfig snowball, via ssh remote: http://...
0
votes
0answers
71 views

How do I enter password via keyboard without using pamUSB?

I installed pamUSB and I have used my USB flash drive to store and enter my password automatically in ubuntu 14.04. But my USB memory is formatted. Therefore, the system shows the following message ...
0
votes
0answers
35 views

VMware: change file permissions for smb.conf

I am running Ubuntu via VMware on a windows host, i want to share a folder. When i try to edit smb.conf, i get the following error: (gedit:47899): IBUS-WARNING **: The owner of /home/kabir/.config/...
0
votes
0answers
214 views

Gtk-WARNING **: cannot open display: :0 Problem !

when i am using ' root ' , I can't run any **** -_- and that's what the terminal show as a problem I try many thinks like gksu , sudo .. , pkexec , ... but no solution No protocol specified ** ...
0
votes
0answers
105 views

Unable to login as root amazon ec2 instance

When I try to login as root in ubuntu using sudo su I get this error sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set I googled to solve it and I was suggested to logout from ...
-1
votes
0answers
27 views

problem removing mysql

I am getting this error: E:Sub-process /usr/bin/dpkg returned an error code (1) At the end when i try uninstalling mysql using the command: sudo apt-get remove –purge mysql-server mysql-client ...
-1
votes
0answers
308 views

Problems with sudo apt-get update

I am new to Ubuntu and I have a problem installing, updating, etc. a program. The VirtualBox network is NAT. The type of adapter is PCnet-FAST III (Am79C973). For example: :~$ sudo apt-get update ...