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
2answers
295 views

Beginning with shell scripting

I am fresh into Ubuntu and one of my goals is shell scripting for personal (and maybe public) use. I'm a novice, though I do understand some of the basics (e.g. what a variable, string, loop, etc... ...
1
vote
3answers
1k views

When trying to install Wine on 12.10, 'Sudo' command will not let me type in a password

As the title explains, I have been attempting to install Wine on my laptop which is running 12.10. When I access the command terminal and entered sudo add-apt-repository ppa:ubuntu-wine/ppa I was ...
3
votes
1answer
455 views

How to install Git on Ubuntu?

When I run this command: apt-get install git-core It shows: E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory ...
0
votes
0answers
278 views

Cannot execute /bin/bash: No such file or directory

I was trying to install teamviewer then I canceled while installation progress then this happened !!!! and now I can't do anything ! any help ??
0
votes
1answer
84 views

sudo update stucks at connecting

I have an Ubuntu 12.04 LTS Server, and I want to install the GUI, which causes error everytime. but before installing the GUI, I want to run the update command: sudo apt-get update But I always get ...
0
votes
0answers
26 views

changed username in user account and now am not in sudo

I changed my username in the "user account" screen and now i cannot install programs. I also noticed that my home directory still carries the name of the old user. how do i fix it please/
0
votes
0answers
46 views

Can we grant sudo to an already opened application?

So, can we grant sudo to an already opened application ? I wish to first open an application as normal user and incase if i need root permissions on it i wish to grant su without restarting the ...
3
votes
1answer
187 views

Can't reboot system using ssh

I am running Ubuntu Server 12.04 and I would like to reboot my system. I ssh into it fine, but when I run sudo reboot I get the following error -bash: /usr/bin/sudo: Input/output error. It is at this ...
0
votes
1answer
13 views

Upgrade sudoer to 1.8.1 or above

What's the best way to upgrade the sudo from 1.7.2 by default to 1.8.1 or above? I've an auditing program that required sudo 1.8.1 or above. I'm using Ubuntu 10.04. Thanks a lot.
0
votes
1answer
119 views

Ask root permission in a program

I wanted to make a program (with quickly) that edits some root files. My question: How can i ask for root permission (after a button is clicked) to execute a command (just like the software center ...
-6
votes
1answer
914 views

How to sudo visudo without a password, remove all prompts for password [closed]

Websites tell me to use sudo when I have no password, usually tell me one of two things. It is bad security Or use 'sudo visudo' and the %admin ALL=(ALL) NOPASSWD: ALL line I would like to not ...
2
votes
1answer
2k views

Remove password attempt at sudo 12.10

I just installed Quantal Quetzal and when I type sudo in the terminal it asks for the password. Before upgrading, I changed something in the file, and it wouldn’t ask for passwords. I have already ...
0
votes
1answer
272 views

I can't run graphical programs with sudo (Ubuntu 12.10)

If I try to run a program with GUI (e.g. Nautilus) as root, I'm just getting the following output: gksu nautilus Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading configurations ...
2
votes
1answer
124 views

Are console and gnome applications using different sudoers file ?

According to our office Admin rules, developer's machines should not have admin privilege, which i hated so much. so I decided to enable the sudo access with some work around found in web (booting ...
1
vote
0answers
53 views

How to upgrade 12.10 beta 2 version to 12.10 final release [duplicate]

Possible Duplicate: How to verify I have updated from Ubuntu 11 beta to stable? I want to upgrade 12.10 beta 2 version to final release of ubuntu 12.10 eagerly waiting. Pls do help me.
1
vote
3answers
2k views

Best practices for using 'sudo su'

I have been using the terminal for a while now and sometimes (actually, a lot of times) I use a command, like: cp /etc/test ~/testFolder/ and I get this error: cp: cannot open `/etc/test` for ...
5
votes
2answers
372 views

How do I work around sudo 'segmentation fault' on basic bash commands?

I am sure the answers are out there, but alas there are too many answers (here and elsewhere) to other questions stopping me from finding them. I just encountered something substantially similar to ...
0
votes
4answers
3k 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
1answer
250 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
111 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 ...
6
votes
3answers
104 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
174 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
62 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
640 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
18 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
573 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
1answer
1k 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. ...
28
votes
3answers
2k 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
139 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 ...
6
votes
3answers
1k 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 ...
2
votes
1answer
161 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
2k 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
394 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 ...
0
votes
0answers
139 views

How do I permanently disable 'elevated privileges'?

I am using Lucid Lynx 10.04, and am having difficulty setting the sudo timeout to 0 minutes, or instant, as in, essentially, disabling the 'elevated privileges' feature. I have tried editing ...
1
vote
2answers
316 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
298 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
5k 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 ...
15
votes
1answer
14k 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
239 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 ...
5
votes
4answers
24k 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
506 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
631 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
176 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 ...
-1
votes
1answer
310 views

http_proxy - not working with sudo [closed]

I am working on RHEL6 behind a proxy at my workplace. In order to make wget and other applications work, I modified my /etc/environment and added definitions for http_proxy, https_proxy, and ...
2
votes
2answers
2k 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
84 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
410 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
43 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
122 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 ...
1
vote
1answer
248 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 3 4 5 6 7 12