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)

8
votes
4answers
15k views

How to fix sudo after “chmod -R 777 /usr/bin”?

I enetered chmod -R 777 /usr/bin and now sudo is not working. It is giving error that sudo must be setuid root. On looking via Google, some advice said to run chown root:root /usr/bin/sudo chmod ...
10
votes
3answers
5k views

How to prevent system applications (like the Software Center) from asking for password?

I'd like Software Center, Update Manager and some other system management applications to work without asking for password (like sudo does if configured with NOPASSWD) but only asking for a ...
0
votes
0answers
17 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
9 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
37 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 ...
0
votes
2answers
40 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 ...
-3
votes
1answer
91 views

Enabling root privileges permanently and have no password

I want to enable root privileges permanently so that, for example, I never need to type sudo. I also want a blank password. I found a thread addressing this with link Always Sudo Privileges. Exactly ...
1
vote
0answers
23 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 ...
57
votes
3answers
112k views

How to run sudo command with no password?

How does the ubuntu user on the AWS images for Ubuntu Server 12.04 have passwordless sudo for all commands when there is no configuration for it in /etc/sudoers? I'm using Ubuntu server 12.04 on ...
-1
votes
1answer
39 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 ...
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 ...
1
vote
0answers
27 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
3answers
51 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
1answer
20 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
2answers
31 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 ...
1
vote
1answer
26 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
46 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
19 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 ...
0
votes
4answers
290 views

sudo -s works but su does not in ubuntu?

I have Linux Virtual machine (ubuntu 12.04) installed on my Mac OS. On my terminal, user@192.78.0.1:~$ su password: su : Authentication failure user@192.78.0.1:~$ ls -lth /bin/su -rwsr-sr-x 1 root ...
1
vote
1answer
117 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?
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 ...
-3
votes
1answer
40 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
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
59 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
4answers
20k views

Add AD Domain user to sudoers from the command line

I'm setting up an Ubuntu 11.04 server VM for use as a database server. It would make everyone's lives easier if we could have folks login using windows credentials and perhaps even make the machine ...
0
votes
1answer
12 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
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
29 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 ...
0
votes
3answers
4k views

sudo pecl command not found

I'm using ubuntu 12.04 I installed php pear using this command sudo apt-get install php-pear php5-dev I got this results Reading package lists... Done Building dependency tree Reading ...
43
votes
2answers
6k views

Why user should never use normal sudo to start graphical application?

I've read the comunity "RootSudo" documentation and am interested in this line: You should never use normal sudo to start graphical applications as Root. Why? What is the difference? Please ...
0
votes
0answers
26 views

XDG_Runtime_dir Variable not set

Per this link: http://superuser.com/questions/269407/apt-get-behind-proxy-on-virtualbox-ubuntu/506066#506066 I update my ~/.bashrc file with export http_proxy="<my proxy>" export ...
0
votes
2answers
34 views

Terminal window [duplicate]

New to Ubuntu 14.04. How do I get to a terminal window? Reason for question: I am wanting to do installs and workarounds with issues to do with DVDs and turning the music off when I close the music ...
0
votes
0answers
14 views

How does the system interprets sudoers file when there are two lines for the same user?

I have a system with a user already added to sudoers file with username ALL=(ALL:ALL) ALL Now I want to allow username to run a single script without asking for sudo password (cron job). This ...
0
votes
1answer
17 views

Why can I not add more secondary groups?

I make a group called "teamspeak" and I would then like to be a part of that group, so I use sudo usermod -a -G teamspeak xdrosenheim as it is explained here and in the man usermod. I then do id ...
-4
votes
0answers
38 views

OK 40th or so unbuntu install!! Why sudo apt-get install fail2ban not work?

r-4-w@R-A-R:~$ sudo apt-get install gufw [sudo] password for r-4-w: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package gufw ...
0
votes
1answer
14 views

Write Nginx Config as Unprivileged User

I have a deployment script that gets executed by an unprivileged deploy user. To fully automate things, though, I have to write a web server configuration file to /etc/nginx/sites-available and ...
1
vote
1answer
19 views

Program accessible only to super user

I installed TeXLive through the .iso file provided in the website. To check the installation I tried tex --version and it returned something like The program 'tex' is currently not installed. You can ...
2
votes
1answer
25 views

“apt-get install wget” installs wget with 000 permissions

I need to install wget and so I used sudo apt-get install wget, and it did, in fact, install it to /usr/bin/wget, but the permissions are all wrong (other lines for context): -rwxr-xr-x 1 root ...
2
votes
1answer
20 views

Can't edit plugins/sudoers/ins_*.h

I am trying to edit the list of insults in Ubuntu which, as described here, are located in plugins/sudoers/ins_*.h. I have tried: sudo visudo -f /plugins/sudoers/ins_*.h which should edit that ...
0
votes
1answer
38 views

can't type my password in terminal [duplicate]

I am trying to install torrent, so I typed some commands like: sudo apt-get install libssl0.9.8:i386 after this command: [sudo] password for shiddhant: here is the problem comes, the cursor was ...
0
votes
2answers
41 views

No sudo or root access anymore [duplicate]

I'm afraid I locked myself out of the sudo/root options. The one account that had sudo rights now reports that it doesn't have these anymore. How can I restore this? Do I need to use a live stick?
1
vote
1answer
522 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.
0
votes
0answers
21 views

How to run an alias command with sudo [duplicate]

I created an alias called runmc that allows me to start up a java program. But I noticed that when I type in "sudo runmc" (It needs root access to work properly.), it will display "runmc: command not ...
66
votes
1answer
76k 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 ...
1
vote
2answers
9k views

Unable to install xampp in ubuntu 13.04

I am installing xampp in ubuntu 13.04, but while installing the xampp.. when i try to extract the file .. it shows the following message sudo tar xvfz xampp-linux-1.8.1.tar.gz -C ...
0
votes
2answers
162 views

GTK apps not respecting Kubuntu's oxygen-gtk theme when executed as sudo

I am using Kubuntu 14.10 and it's working quite well so far, but my problem is pretty much what it's stated in the title, when executing a GTK app that requires sudo privileges, such as Synaptic ...
15
votes
4answers
5k views

What is the functional difference between sudo su and sudo -i?

Why is one preferred over the other in this example? sudo su echo "options iwlwifi 11n_disable=1" >> /etc/modprobe.d/iwlwifi.conf exit Please provide links to Ubuntu documentation.
0
votes
0answers
18 views

We use sudo so i assume there is no SU passwoird or is it random? How tough is it if it exists? [duplicate]

We use sudo su. I assume there is no root password and is default? How tough is it if password exists?
1
vote
1answer
37 views

how to create admin account as a duplicate root account for telnet and disable root login over network?

I've been searching for the answer to this but all I find is "It doesn't work". I am a new, yes. I am still a student and i still learn about it. I am happy to break my OS and format it many times if ...