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
0answers
16 views

Can't Install or download anything in Pear OS 8 [on hold]

I recently installed Pear OS 8 and have ran into many problems since. Essentially, I can't download or install anything. At first I was getting a "failed to download repository information" error. I ...
6
votes
4answers
15k views

Deleted Myself from Admin Group - Now Getting Error usermod: cannot lock /etc/passwd; try again later [duplicate]

Possible Duplicate: Cannot lock '/etc/group' in recovery mode I have a laptop with Ubuntu 11.10 that is shared between myself and two other family members. My user id was setup as ...
0
votes
0answers
18 views

sudo password 14.04 after some maintenance

After an update and using system janitor I no longer have syncing password for sudo. initial ubuntu login works but screen lock password for admin account no longer provide sudo in terminal, system ...
0
votes
0answers
23 views

Cant install program from ubuntu software center-it says“check your internet connnection!failed to download repository information” [duplicate]

says..404 not found W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/raring-updates/universe when enered sudo apt-get update
0
votes
1answer
21 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 ...
0
votes
3answers
354 views

Permission denied error while creating file by using script file

I have created a script file called black_list.sh. #!/bin/bash default_card=`head -1 /proc/asound/modules` echo $default_card if [ ! -e /etc/modprobe.d/sound.blacklist.conf ] && [[ ...
7
votes
1answer
325 views

How can I change the number of password entry attempts allowed by sudo?

By default, sudo prompts me to input my user password a maximum of three times if I input wrong password. How can I change it to unlimited times(?)? How can I make it so that it asks me for my ...
0
votes
4answers
8k views

How to run a file with sudo without a password? [duplicate]

Possible Duplicate: How to run an application using sudo without a password? I've made a script that preforms various system tasks, that I run regularly, but I have to use sudo to run the ...
0
votes
0answers
11 views

LightDM does not ask for login password

I have an auto-logged in non-sudo user called "screen". I have a passwordless sudo but login-protected user called "support". I'm pretty sure this was working fine before, somehow maybe the latest ...
0
votes
2answers
401 views

How to make sudoreplay work?

I recently discovered sudoreplay whose manpage says that it replays sudo session logs. But I am not sure how do I make it work. For whatever little commands I ran it kept on saying that ...
3
votes
1answer
5k views

“user is not in the sudoers file”, how to read the incident reports?

Many times I got warning/notice while accidentally tried to do some privileged action using my non-root account like below, gulu@workpc:~$ sudo apt-get update [sudo] password for gulu: gulu is not ...
7
votes
2answers
10k views

Enable passwordless sudo as a specific user

I have two users on my system: itsadok, my main user, and elasticsearch, a user with a different ulimit for running ElasticSearch. I would like to be able to run stuff as the secondary user without ...
1
vote
0answers
25 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~: ...
0
votes
1answer
37 views

sudo geany throws fatal error [duplicate]

I really like the Geany text editor, and would like to use it instead of gedit for all text editing. However, every time I try to launch Geany from the terminal using sudo geany file.conf, I get this ...
0
votes
1answer
13 views

Lazy right management for package installation

You can install a package (here package), by running sudo apt-get install package Some installation scripts written in bash perform such actions and require the user to enter the password every ...
0
votes
0answers
11 views

How to re-enable the only admin

I have one account on my Ubuntu and it's the admin but I accidentally disabled it. How do I un-disable it?
0
votes
2answers
37 views

Shall I delete this line in sources.list?

This line deb-src-src http://us.archive.ubuntu.com/ubuntu/ utopic main restricted, Line 63, in sources.list is not known on sudo apt-get update and is causing Synaptic Package Manager and Ubuntu ...
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 ...
25
votes
5answers
5k views

What's wrong with using sudo?

In a comment here I've been told that unnecessarily using sudo should be avoided. While it wasn't needed in that particular case, I don't see any harm in using it. I think that when executing trivial ...
0
votes
1answer
30 views

Permissions of a new User changed mine

I have a pc which is running Linux Ubuntu 14.04 and few weeks ago a colleague of mine added him to the pc and since then I can do sudo something but I can't perform certain actions like: installing ...
0
votes
0answers
26 views

What is this fprint log doing when I sudo?

A while ago I was trying to get my fingerprint reader to work, compiling an experimental version of fprint. Since then, every time I sudo, in stead of asking for my password I get an fprint log. ...
0
votes
1answer
11 views

Start an appli with sheduled task not work

I have a seedbox unders a ubuntu desktop server. I run rtorrent correctly but if I restart the server I need to relaunch rtorrent with this command : sudo -i #mypassword" screen -fa -d -m rtorrent ...
11
votes
2answers
69k views

Sudoers file, enable NOPASSWD for user, all commands

Preface This is a fairly complex question related to the Sudoers file and the sudo command in general. NOTE: I have made these changes on a dedicated machine running Ubuntu Desktop 13.04, that I use ...
-3
votes
1answer
80 views

Cannot use sudo [closed]

I am new at ubuntu, and i am trying to install unity tweak, and i am having this problem that when I type in the terminal: sudo apt-get repository unity-lens-music unity-lens-photo unity-lens-video ...
1
vote
1answer
20 views

How to get the long 'less' prompt with sudo?

I have added the following to my user's .bashrc file to get a longer prompt in less: export LESS="-M" This is added to the root user's .bashrc file as well, so when I sudo bash to get a root shell, ...
4
votes
0answers
294 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 ...
2
votes
1answer
61 views

Run script with arguments as sudo without being asked for password

I have two programs in Java that I'm calling from bash script: java program1 arg ... arg sudo java program2 arg ... arg I want to run program2 as sudo without being asked for password. I'm aware of ...
0
votes
0answers
24 views

'sudo' is not known after moonlight install

yesterday I tried install moonlight (silverlight) and something going wrong. Now i have problem with update and Ubuntu software center. E: Typ "sudo" is not known in line 1 list sources ...
0
votes
2answers
34 views

Simple question on sudo su -

What is wrong with the following? [cloudera@localhost zookeeper]$ sudo su - zookeeper [cloudera@localhost zookeeper]$ whoami cloudera In response to one of the comments: [cloudera@localhost ...
0
votes
0answers
23 views

Correct permissions or undo a command [duplicate]

I will start this question with I'm a noob and I broke linux. Probably shouldn't have ran the command I did but now I cannot use sudo for anything not sure how to undo fix what I did. The command I ...
4
votes
5answers
8k views

/usr/bin/sudo must be owned by uid 0 and have the setuid bit set

I have run following command accidentally sudo chown [username] -hR / Now sudo su getting error: sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set How to Solve This?
0
votes
1answer
58 views

sudo error permission denied

I have started few days ago with Ubuntu Server and I've got a weird error: ubuntu@ubuntu: $ sudo -s sudo: /var/lib/sudo/ubuntu/ is accessible in write mode from not-owner (040777), should have ...
0
votes
4answers
67 views

Undo sudo rm -R /*

I stupidly ran sudo rm /* followed by sudo rm -R /* My sites still run, although the vast majority of commands like ls are now broken. Is there a simple way to get data off the server or reverse ...
0
votes
0answers
43 views

unable to resolve host address in ubuntu 14.04 with sudo

im trying the following: wget https://pypi.python.org/simple/ and its working fine. But if try the same with sudo as follows, its giving me an error: sudo wget https://pypi.python.org/simple/ ...
0
votes
2answers
69 views

“sudo su” does not pass the environment variables to the new shell? [duplicate]

su manual http://manpages.ubuntu.com/manpages/precise/man1/su.1.html The current environment is passed to the new shell. Obviously you cant use su in Ubuntu as in su but it has to be always ...
5
votes
1answer
10k views

“error: XDG_RUNTIME_DIR not set in the environment.” when attempting to run nautilus as root

I am attempting to run nautilus as root but when I run "sudo nautilus" from the terminal, I get the following error: error: XDG_RUNTIME_DIR not set in the environment. (nautilus:9341): ...
0
votes
1answer
22 views

modify another user's password entry with sudo power

what are the sequence of commands to modify another user's password entry with sudo power in ubuntu? I like to change the other user's pass in ubuntu with sudo power?
0
votes
1answer
41 views

Run interpreted commands within sudo

The question is how to run generic commands which may contain ; && | < > << >> $ and so on within sudo. Possible solutions could be: To use interpreters within sudo sudo ...
1
vote
1answer
35 views

Run sudo command within directory

Possible solutions could be: Starting interactive session. sudo -s <<< "cd dir ; command" or sudo /bin/bash -c "cd dir ; command" But I don't have /bin/bash /bin/sh /bin/su or other ...
0
votes
0answers
14 views

IAM role in ubuntu

I am facing 'RepositoryException' when I tried to host snapshot data of elastic search data from a Windows to a Linux machine. I think it's due to user permissions. Browsing this link to github, i'm ...
0
votes
1answer
27 views

Why do I need sudo to run apt-mirror?

Why do I need sudo to run apt-mirror? Is there a way to run apt-mirror without sudo?
4
votes
2answers
2k views

Why does Software Centre ask for root password when the default is for root to be disabled with no password set?

This seems odd to me. I can't install software using the "friendly" GUI tool unless I input the root password but by default, my Ubuntu 12.04 has root disabled with no password set. Why doesn't ...
0
votes
3answers
1k views

How to add Domain Admins to sudoers

There is a similar question that has been answered; so, I'm not sure if I should tag on; not believing that I should, I'm proceeding. I'm running Ubuntu 14.04 and have joined our Windows domain using ...
1
vote
3answers
7k 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
28 views

Cannot run this program neither with nor without sudo

I tried to run this program (texlive package manager): tlmgr install and got this error: You don't have permission to change the installation in any way, specifically, the directory ...
1
vote
1answer
35 views

Booting in single user mode

On 14.10 holding shift at boot time doesn't bring up the grub menu. Is there another way I can boot in single user mode? I have bricked my sudoers file so I can't use sudo btw. I don't get a grub ...
0
votes
3answers
3k 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 ...
16
votes
3answers
45k 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 ...
0
votes
0answers
19 views

User was deleted after reboot

Unsolved mystery - I was given a coworker's Ubuntu 12.04.1 LTS machine and set up my own (sudo/admin) user on there from the command line. I switched to my user and confirmed everything was okay using ...
2
votes
1answer
41 views

unix - disable “su” for ssh'ers

I'd like to disable getting root at all for users who ssh in - including "sudo su" cause that's pretty much the same thing... Can this be done? Assume that I'M not ssh'ing in, and have physical access ...