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)

-1
votes
0answers
18 views

i get this error when i type sudo apt get update [duplicate]

W: Duplicate sources.list entry <http://us.archive.ubuntu.com/ubuntu/ precise-security/main> amd64 Packages ...
3
votes
1answer
39 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 ...
0
votes
1answer
29 views

Couldnot able to install anything

I tried to use sudo apt-get install its not working. So I did ping google.com it gave me ping: unknown host google.com I have net connection and I able to access Internet in browser. How ...
2
votes
1answer
58 views

Is it possible to get ota updates after making system rw?

Is it possible to get ota updates after making system rw by "sudo mount -o remount,rw /"? I mean in this case: If I don't update system using "sudo apt-get update" and don't install any software using ...
0
votes
3answers
51 views

Get current ssh session's originating IP without being superuser

I am trying to find out the current ssh session's originating IP address. I found the following to be useful, but it requires sudo: $ sudo netstat -tapen | grep ssh | awk '{ print $5}' | sed ...
3
votes
2answers
110 views

What is “root” and how can I become it? [duplicate]

When I ran a command, I got the following error: You need to be root to perform this command. What is root and how can I become it?
3
votes
2answers
71 views

deleted the only sudoer user by mistake [duplicate]

I have a xubuntu pc at work, so I wanted to remove all users and create just one sudoer user with the name of the new person using the pc, so that he would be able to install programs etc. without ...
0
votes
0answers
9 views

gksudo equivalent for Ubuntu Touch

Is there a gksudo equivalent (or Cpp / Qml api call) that lets you ask for a password in a graphical way on Ubuntu Touch? Thanks
3
votes
1answer
43 views

Create zip files in /var/www/html using crontabs

As the title explains, I'd need to take a file and put it into a zip archive once a day; also, the zip file has to be moved in /var/www/html, where a .php scripts allow users to download it. Assuming ...
0
votes
0answers
32 views

Can't change password Ubuntu 14.04 LTS after try many ways

I'm suffering with a suck problem. When I installed Ubuntu 14.04, I created a password but seem I tick start without log in. After few day using normally, I show a pop-up ask me to authentication for ...
1
vote
1answer
15 views

Disable X support for emacs globally [duplicate]

First, I tried installing the latest emacs-nox, but that did not work. Then, I added -nw to my ~/.bash_aliases, which works in most cases, except when I need to run sudo emacs [file] I still get ...
0
votes
0answers
30 views

sudo permission errors or “command not found” errors when working on a hybrid SSD/HDD setup? (specific example: MATLAB installer)

Since my SSD is small, I still relegate it to only holding the OS. So, during Ubuntu install, I created a 60 GB partition for / on my SSD, and a 500 GB partition for /home on my HDD. However, now I ...
11
votes
4answers
1k views

I change the last line in /etc/passwd and I can't use sudo

Here is what I have done: Change a username in the last line: tiny to abc tiny@tty7:~$ sudo vim /etc/passwd Change this: tiny:x:1000:1000:tiny,,,:/home/tiny:/bin/bash to this: ...
0
votes
1answer
59 views

Terminal commands are not working Ubuntu 14.10

How do I fix this major issue: E: Type 'sudo' is not known on line 3 in source list /etc/apt/sources.list.d/libdvdcss.list What do I do to fix this? This is what I get when I open Synaptic Package ...
1
vote
2answers
30 views

Accidentally took execute privileges off my /home

Afterwards I couldn't execute any commands without receiving a 'permission denied' error. Upon restarting the computer, when I enter my password Ubuntu will look like it's loading for a second but ...
0
votes
1answer
40 views

How to get a program to startup at start if it requires sudo to start

I have got a program which to start needs to be started with sudo, but as it would be very useful for this program to start up at startup without me having to manually start it, is there a way to get ...
0
votes
0answers
14 views

how to fix the following error? [duplicate]

How to fix this following error? /etc/sudoers: syntax error near line 21 sudo: parse error in /etc/sudoers near line 21 sudo: no valid sudoers sources found, quitting sudo: unable to initialize ...
2
votes
1answer
34 views

Deleting user from sudoers [duplicate]

Hi I executed this command sudo adduser username sudo and am wondering how do I take that username out from being able to execute sudo. I checked the sudoers file but the username that I added thru ...
1
vote
1answer
20 views

Program connects via USB only if called with sudo

I have downloaded JLink package and unpacked it to /home/mkru/ARM/JLink_Linux_V498a_x86_64. Then I have added this path to my PATH variable. When I try to execute JLinkExe I get the following error: ...
0
votes
0answers
14 views

How to build libgee (“undefined reference to 'g_get_num_processors'”)?

I am not able to install libgee. When I tried running on the command line sudo apt-get install libgee it said libgee is already in its latest version, when it is actually is not in its latest ...
0
votes
0answers
26 views

Allow sudo in default guest account

I am trying to run Microsoft Office for some public workstations. I have added the following entry to my sudoers file: %win ALL=(windows) NOPASSWD: /usr/share/playonlinux/ /home/windows/.PlayOnLinux ...
3
votes
1answer
59 views

sudo: can't open /etc/sudoers: Permission denied [duplicate]

sudo from a standard user works fine, but when I try to use it from root it returns this error: sudo: can't open /etc/sudoers: Permission denied sudo: no valid sudoers sources found, quitting ...
1
vote
1answer
21 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
1answer
16 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 ...
0
votes
0answers
24 views

sudo apt-get update cannot fetch the server why?

I use Ubuntu 14.04.2 LTS (GNU/Linux 3.14.33-ti-r50 armv7l) in my device.When I try sudo apt-get update I see this error below: Err http://ports.ubuntu.com trusty InRelease W: Failed to fetch ...
0
votes
1answer
15 views

Terminal error output RE: editing .conf file in Xbuntu [owned by uid 1000 istead of 0]

Was curious as to the terminal error output from running sudo Kate. I read in a forum that directed me to open my notepad using gksudo. Realizing that this had not been installed I just went ahead and ...
0
votes
1answer
47 views

unable to install vim

I am using Ubuntu 12.04 and when I try installing the vim editor with: sudo apt-get update sudo apt-get install vim I receive the error: THE PACKAGE VIM HAS NO INSTALLATION CANDIDATE. I have even ...
0
votes
1answer
23 views

Make gksu ask for password in terminal

If I needed to run a graphical command as root, I would use: username@HENRY-PC:~$ sudo gedit [sudo] password for username: But this is apparently discouraged, because any files created for the ...
0
votes
0answers
23 views

Ubuntu server wont let me change to root or add my default user to sudoers

So I'm trying to learn how to set up a headless server and I got everything installed I made a root password and that wont work with su and then I try to sudo with my default log in and it wont let me ...
0
votes
0answers
18 views

Error when attempting to update Ubuntu 14.04

I am using Ubuntu 14.04.When I attempt to update: sudo apt-get install -f I see this error: kg-deb: error: subprocess paste was killed by signal (Broken pipe) Examining /etc/kernel/postrm.d . ...
1
vote
2answers
47 views

Root user not having permissions

My root user is not working how he should. sudo works perfectly but if I login with root, autocomplete does not work for all commands which need root permission and I couldn't execute a file owned by ...
1
vote
0answers
32 views

$password with ssh chpasswd

I've a problem with "ssh chpasswd" .. I need to implement the "$password" of register.. Eg.. I've this code.. echo $ssh->exec("sudo sh -c 'echo $user:test | chpasswd'"); When the script is ...
-1
votes
1answer
49 views

I can su root, but can not log in as root? [duplicate]

Usually, it is the other way around...so this might be the first from what I researched. lets say i log on to my server venus as willc86. When I su root, it lets me in. however, lets say I ssh venus ...
0
votes
0answers
41 views

Administrative Account [duplicate]

My soon to be daughter-in-law has a laptop with ubuntu installed. Her account is not a standard account but an administrative account. She also has the automatic log-in. Trying to help out I told ...
1
vote
0answers
29 views

Sudo is not owned by root on a fresh install of 14.04 on a VPS. Huh?

Sudo is not owned by root on a fresh install of 14.04 on a VPS. Not familiar with this stuff. So why, what does it all mean and what can I do about it? Steps are: From the VPS management web pages ...
1
vote
2answers
33 views

how to prevent sudo from executing a non root file?

I want to prevent sudo from executing files not owned by root. so, to allow sudo run such file, I want the file to be: chown root:root filename chmod go-w filename Is it possible to limit sudo ...
0
votes
1answer
21 views

why is sudo not working with exported path?

If not sure if this is close to (or even a duplicate of) Why does sudo not add root's PATH with Ubuntu 12.04?, I'm still posting this question because I didn't understand anything from there, if ...
1
vote
3answers
55 views

Why is sudo by default asking for the password of the user that ran it?

I'm wondering why does sudo actually NEED the password, when the user has already logged in? The fact that the user has managed to run sudo means that the user has passed authentication and is ...
0
votes
0answers
24 views

Can't install software through USC or open synaptic even though only user

I am running Xubuntu 12.04 LTS on my Toshiba Chromebook 2 and it seems I have been removed from the admin list, even though I am the only user on my device, ChromeOS and Ubutntu. I see proof of this ...
1
vote
1answer
40 views

Init file in init.d calls using sudo in script.sh give error sudo: no tty present and no askpass program specified

I an trying to make a script that launches on boot to connect to my personal VPN. I have an init file: /etc/init.d/vpnstartup which calls my vpnon.sh script on boot with the commands: case "$1" in ...
1
vote
1answer
137 views

Is sudo killall -u lightdm safe?

I realized that my server has many processes runned by lightdm: Can i killall processes from lightdm? Is sudo killall -u lightdm safe?
1
vote
1answer
79 views

Running Composer without using sudo (tried changed owner and permissions)

Every time I run composer (e.g., sudo composer install, sudo composer self-update etc.) I need to run this with sudo as the owner of the file is root. However every time I use the composer with sudo ...
0
votes
0answers
14 views

Why is the samba configuration file read only? [duplicate]

I am using samba on Ubuntu server to share files among my computers. I got done writing the configuration file, and I typed :wq to save the file. When I went to save and exit, I got the following ...
0
votes
2answers
43 views

Broken Sudo and no write privilige on file system

I had upgraded ubuntu12.04 to ubuntu14.04 and it didn't boot unless I edited this line in the grub menu linux ${rel-dirname}/${basename} root=${lINUX_HOST_DEVICE} loop=${loop_file_relative} ro ...
0
votes
0answers
21 views

I cannot install any application [duplicate]

I get the following error in my command window kittu@kittu-PC:~$ sudo apt-get install -f Reading package lists... Done Building dependency tree Reading state information... Done Correcting ...
1
vote
1answer
72 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 ...
-3
votes
1answer
41 views

Why do liinux instructions almost never include sudo even when it is obviously necessary? [closed]

Why do Linux instructions almost never include sudo even when it is obviously necessary? You see it a lot, for example, you will see something like: "Edit /etc/hosts by doing $nano /etc/hosts and ...
0
votes
0answers
15 views

How to change a read-only file System

My roommates 2011 Macbook Pro died today. I made a flashbootable version of ubuntu and booted from it on his mac. I can move around his drive's directories, and while trying to solve this problem I ...
0
votes
1answer
15 views

Easing entry of sudo password for remote hosts?

I'm logging on to remote hosts via SSH to do server admin. The login uses a cert but I login as a normal user (ssh -p $PORT $USER@$HOST) and use sudo to run commands. It's a pain to have to enter the ...
0
votes
1answer
36 views

How to move folder from desktop to /lib/firmware?

I need to copy this b43 folder so i can get the broadcom firmware on Ubuntu 10.10 (which is the version I am running on). I've been looking around forever and have been trying different command lines ...