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)

3
votes
1answer
412 views

About the installation of Moses tool on ubuntu 11.04

we are working on project related to language translation with the help of moses tool...but we are not able to install moses...we face some installation problems. we make a directory on desktop named ...
0
votes
2answers
16k views

What are some of the basic sudo commands?

I am looking to learn sudo commands for the GNOME terminal. I am an avid user of Ubuntu however I'd like very much to learn as many commands and shortcuts as possible. I am running Ubuntu 12.04 32 ...
0
votes
1answer
1k views

How to change account type back to administrator in 12.10? [duplicate]

Possible Duplicate: How do I reset a lost administrative password? I unexpetedly deleted administrator account and the other accounts are asking root password Cannot install anything as ...
1
vote
2answers
909 views

How does the sudoers work?

During an installation, as usual, we create our main user account, and then we can do sudo commands with it without problem. Now, when I created another account, and I wanted to do sudo, it gave me ...
4
votes
2answers
722 views

Run script at user login as root, with a catch

I'm trying to run a PHP script as root on user login. The PHP script adds a Samba share to the Samba config, thus the need for root privileges. The only issue here, is that the user doesn't exist ...
0
votes
2answers
8k views

sudo apt-get update problem

I have a problem with sudo apt-get update that I can't seem to fix and It's causing problems with alot of installations I want to do. I run Ubuntu 12.04. Ign http://ftp.availo.se precise InRelease ...
70
votes
3answers
139k 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 ...
2
votes
1answer
317 views

/ folder permissions

I've changed / folder owner from root to administrator account. Now no sudo commands are working. It used to show sudoers are in mode 04666 it should b in the mode 04000 Then i did something and it ...
8
votes
4answers
158k views

how to use sudo command to install .tar.gz? [duplicate]

Possible Duplicate: How to install a .tar.gz (or .tar.bz2) file? I am newbie to ubuntu. I would like someone to explain how to use sudo command to unzip & install .tar.gz file to me.
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 ...
4
votes
2answers
6k views

Difference between sudo rm -rf and rm -vf?

Recently I have seen one issue with a cache problem. The problem comes with broken hash and that could be fixed with sudo rm -rf /var/lib/apt/lists/* and sudo rm /var/lib/apt/lists/* -vf But I ...
0
votes
1answer
1k views

How to execute a executable with sudo?

I have an executable file but don't know what type or format it is. When I execute like this $chmod +x xfile $./xfile It shows Permission denied when I run as super user $sudo ./xfile It ...
2
votes
2answers
11k views

How to repair “sudo: /etc/sudoers is mode 0640, should be 0440?”

Why might sudo chmod -R a+w * cause sudo: /etc/sudoers is mode 0640, should be 0440 sudo: no valid sudoers sources found, quitting and how might it be made to work?
0
votes
2answers
243 views

Creating Kernel Module without Sudo

How do I create a kernel module without the use of sudo? I know the normal way(sudo insmod, sudo rmmod), but we're not allowed to use sudo in school.
0
votes
1answer
1k views

Can't restart apache due to invalid 'echo' command

When i enter command admin@ubuntu:~$ sudo /etc/init.d/apache2 restart [sudo] password for admin: I get this msg Syntax error on line 3 of /etc/apache2/conf.d/fqdn: Invalid command 'echo', ...
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 ...
4
votes
2answers
143 views

I have 2 different GEdits?

When I load GEdit, it is different from sudo GEdit. Normal GEdit gives me Gtk warnings in the console, and ithas a different look. When I install plugins on either version, it doesn't reflect on the ...
2
votes
1answer
3k views

Sudo arguments not working

Flags/arguments to sudo on my system aren't working. peter@Sirius:~$ sudo -h env: -h: No such file or directory peter@Sirius:~$ sudo -u postgres env: -u: No such file or directory However, ...
1
vote
3answers
823 views

SUDO and sound, how to make them work together

Basically inside a sudo session, even one emulating another none root user (sudo -u username command) there is no sound available. Inside a sudo session sound appears disabled. I need sound, how do ...
2
votes
2answers
4k views

“Unable to connect” error with apt-get: possible proxy?

I've been having an issue with 'sudo apt-get update' for several days now. I've tried every proposed solution I could find but to no avail. Here is the output to 'apt-get update'. Ign ...
0
votes
1answer
1k views

No root privileges - how do I add a user to the sudo list? [duplicate]

Possible Duplicate: Add user to “sudo” group I do not have root privileges - how then do I add a user to the sudoers list?
0
votes
1answer
125 views

Is there any way to recover my sudo power? [duplicate]

Possible Duplicate: Regain Sudo rights after removing from admin group I created a new user and changed the ssh config. I forgot to add root permission to the newly created user. Now I ...
0
votes
2answers
2k views

How do I change system-wide default Java runtime without “sudo”?

Sorry for my bad English, but I'm really trying to be better. Ok. I've created a new command/alias(changejava) on Ubuntu 12.04, and I need to skip "sudo password" only when I write "$changejava". If ...
3
votes
2answers
3k views

How can I re-instate my admin privileges?

I am running 12.04 LTS. It's a pretty default installation and is the only OS on this machine. I have two users one has administrator rights the other does not. I accidentally removed administrator ...
1
vote
4answers
10k views

getting setgid:Operation not permitted error while running 'su' command - Ubuntu 12.04

I am logged in with imp user. And when I am trying to login via root user on terminal: impuser@machine:~$ su - root it gives: setgid:Operation not permitted any idea,How to resolve this issue?
14
votes
0answers
16k views

sudo: unable to resolve host (name already added to /etc/hosts) [duplicate]

Whenever I use sudo, I get this: sudo: unable to resolve host dave00-G31M-ES2L Here is my /etc/hosts: dave00@dave00-G31M-ES2L:~$ cat /etc/hosts 127.0.0.1 localhost 127.0.1.1 dave00-G31M-ES2 # ...
7
votes
5answers
2k views

How can I get sudo to accept my password?

I am trying to install subversion on my Ubuntu 12.04 desktop. I follow the commands to start this process, using apt-get: sudo apt-get update sudo apt-get install subversion Either of the above ...
1
vote
1answer
747 views

Amazon EC2 : Authentication Failure after error sudo: must be setuid root

I was trying to change permission on a folder in a Amazon EBS volume mounted on a Amazon EC2 running Ubuntu EC2. When I entered the command sudo chmod -R u+rw,go-rw /mnt/my-address I go the ...
0
votes
1answer
7k views

start lampp at startup as root [duplicate]

Possible Duplicate: How to make sudo remember my password and how to add an application to startup I have lampp installed on my Ubuntu 12.04 Everything works very fine and now I would like ...
6
votes
2answers
27k views

Cannot connect to X Server when running app with sudo

When I am running some software using sudo command it showing error like cannot connect to X server For example if I run the following command: $ sudo gedit /etc/profile I am getting ...
1
vote
1answer
253 views

Why few commands (eg: fdisk -l) do not inform user “you do not have privilege”?

Few commands that need to do sudo remind you that "You do not have the privilege" or "Are you root?" etc. while a few commands do not give such message. For example, if you do fdisk -l instead of ...
0
votes
2answers
2k views

Why do I get a “cannot execute csh…” error when I try to “sudo su”?

I get this error when I try do sudo su reputa@reputa:~$ sudo su Cannot execute csh: No such file or directory sudo -i is working fine but I want to use sudo su. How do I make it happen?
1
vote
2answers
984 views

Starting Eclipse from the Unity launcher doesn't work correctly

When I start Eclipse from the Unity launcher I get this message: Could not find the folder 'tools' inside SDK '/home/engine/android-sdks/' But when I type in the terminal sudo eclipse it works ...
1
vote
1answer
162 views

sudoers syntax different for server vs desktop?

Is there a difference in syntax between the server and desktop ubuntu 12.04 distro? If so could I get help rewriting this line to be valid for the desktop env? user1 ant =(user1) NOPASSWD: ...
3
votes
1answer
8k views

Can't Change Permissions of Files in Home Folder without Sudo

For some reason, I can't chmod +x files that are right in my home folder without prepending sudo to the command. One recent example: I have a file named monitor-off.sh in ~/Documents. I tried to use ...
0
votes
1answer
406 views

SVN privilege for newly created user

I am required to create a new user and then svn co into the newly created user's home directory by calling a bash script from a php page. The below example is a line from the sudoers file which I saw ...
1
vote
3answers
759 views

No password prompts in Ubuntu (except login and lock screen)

I would only like a password prompt at login and lock screen (i.e, to make sure others don't use my computer). However, when I am at my computer, I do not want to be prompted at all for my password, ...
0
votes
1answer
5k views

How to fix “/etc/apt/sources.list” could not be read error?

I tried to reinstall sopcast with the following command: sudo tee -a /etc/apt/sources.list but nothing happened, then I try the next command: sudo apt-key adv --keyserver keyserver.ubuntu.com ...
1
vote
2answers
614 views

Why can root still edit files with a permission of 0?

I just wanted to delete most files from an external HD except some certain ones. So I chmod these ones to 0 and did a sudo rm -r ./*. Painfully, the result was that everything got deleted. Why is ...
1
vote
1answer
428 views

Sudo: No password for certain command for everybody (including domain users)

I want to allow the execution of a mount script for everybody. I'm usually working with a domain user. While allowing the usage of sudo for my user works, I can't disable the password prompt for a ...
-1
votes
2answers
15k views

How can I run everything as root

I have dual booted to lubuntu (with Windows XP) and everytime and then I'm getting asked for my password. How do I run everything as root and not ask a password again? Ideally I wanted to run nginx ...
0
votes
1answer
1k views

changing ownership of usr, resulting on graphics and sudo not working anymore

I made a massive mistake by recursively changing the user of every file under /usr . I can't boot my laptop by any normal means following this mistake, and I'm looking for a way to revert the effects ...
6
votes
4answers
21k views

Sudo doesn't work

I edited my sudoers file in /etc and after that I can't use sudo anymore. I get this whenever I issue the command: sudo: >>> /etc/sudoers: syntax error near line 30 <<< sudo: parse ...
0
votes
3answers
3k views

sudo shutdown vs pressing power button

I have a headless Ubuntu server running 64 bit Ubuntu 12.04 server edition, and I connect to the server via SSH from my Windows laptop. Sometimes when I would like to turn off the server and my ...
2
votes
1answer
217 views

How can I make my system usable after modifying /usr/share/icons's permissions?

I'm running a duel boot/partition machine with Ubuntu 12.04 and Windows 7. On Ubuntu OS, I wanted to change the permissions in one of my directories so could extract files into that directory. In the ...
0
votes
1answer
2k views

Skype only logs in as root

I just installed Skype on my Ubuntu 12.04 again and somehow I can only login if I start Skype via root (sudo skype) in the terminal. If I try otherwise via dash or just "skype" without sudo permission ...
2
votes
2answers
2k views

Lost my root access and unable to install any software or any other priviliged operations

I have been using Precise Pangolin and I am into a problem now :( I was trying to add my current user to the group vboxusers.. So I used the command, sudo usermod -G vboxusers myusername And it ...
2
votes
1answer
630 views

Lost control of root account, Ubuntu Server 11.10

after I created a group, and put the root account in it, I lost control of it and now it's not root anymore. Also I can't login with "root". How can I revert this? Now there is no way I can use sudo ...
22
votes
3answers
29k views

Shutdown from terminal without entering password?

I have desktop edition of Ubuntu. I like the Terminal so that that I prefer to shutdown my computer with the shutdown command. However when I type shutdown now it prompts me to enter my password.Is ...
1
vote
2answers
639 views

If I create or modify any file or directory with sudo then I can only manipulate it with sudo

The general issue is that if I create or modify any file or directory with sudo then it seems that I'm unable to create and modify this file or directory further as any other user than sudo. The rest ...