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
vote
1answer
1k views

Sudo Non-Password access to /sys/power/state

On my computer, pm-hibernate appears to be broken, however using the command echo disk > /sys/power/state appears to work perfectly. Now I just need regular user access to it, using sudo. How do I ...
2
votes
3answers
259 views

How to copy all .sol files in a system to a specific folder

I want to copy all the files that I have in the system with extension sol to the specific folder can you please help me. I tried sudo cp / *.sol ~/SOL/ but it doesn't work UPDATED: I tried to follow ...
5
votes
3answers
183 views

How to do a sudo verification that lasts long enough for (unprivileged) make to finish?

I often use the following construct for building and installing a tarball: sudo -v && make && sudo make install which will allow me to enter my password immediately and have ...
1
vote
1answer
218 views

Wrong autocompletion with sudo apt-get

Does anybody know why if I type: apt-get upg<TAB> I get: apt-get upgrade but if I type: sudo apt-get upg<TAB> I get: sudo apt-get upgrade-from-grub-legacy
2
votes
1answer
86 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 ...
0
votes
1answer
2k views

gksu not working

gksu nautilius Running the above or trying to run the nautlius script -'browse as root' gives the following error /home/borax12/.gtkrc-2.0:6: error: scanner: unterminated string constant ...
0
votes
0answers
20 views

how to get back sudo previledges? [duplicate]

Possible Duplicate: Regain Sudo rights after removing from admin group I have been given a laptop with ubuntu 9.10 installed. it has only one User. The problem is sudo is disabled and thus ...
1
vote
4answers
6k views

Broke my sudoers password, how do I reset it without using sudo? [duplicate]

I thought it would be a good idea to finally take the password off my little netbook since it has never actually been of any use, and has mostly just slowed down . But when I went to change my ...
2
votes
2answers
17k views

Ubuntu Live CD: How to switch user on LiveCD to “root”

I have created my customized live CD by following the instructions @ Ubuntu Forum Thread 688872 The Live CD gets created fine and it is able to bootup as well. I see my customized setting in place. ...
38
votes
3answers
6k views

What are the differences between sudo, su, visudo, chroot, and gksu?

What are the differences between sudo, su, visudo, chroot, and gksu ?
1
vote
1answer
238 views

What am I doing wrong? Visudo

I am trying to make it so that I can have a script running on my computer that will check to see if a reboot code has been sent, and it will be checking a MySQL database. I have the php script ...
8
votes
3answers
8k views

Home folder in `root` and not in `home`… I'm confused!

I have an issue with my home folder and this are giving me some permission problems. I've installed an application that tells me that I have no permission to save in /home/username/Desktop, but in ...
3
votes
1answer
420 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
920 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
732 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 ...
74
votes
3answers
146k 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
318 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
167k 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
250 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
847 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
2k 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
126 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
752 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
8k 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
28k 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
256 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
993 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
412 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
761 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 ...