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)

2
votes
2answers
1k views

“sudo rm” fails to delete files

My main account is called "u1204" and I have some files created with another account called "dad": $ find . -user dad -print ./Documents/Zim Notes/.zim/state.conf ./Documents/Zim Notes ...
2
votes
2answers
912 views

How to pass arguments in a script using gnome-terminal

As part of a script I have gnome-terminal -e "process involving another user" Once executed this line, I have to write in the terminal 3 times the password of this user. I wonder how can I automate ...
1
vote
2answers
318 views

Can I copy 2 partitions at a time with sudo dd

I have copied Windows from one hard drive to another with SUDO DD many times successfully. It was always from a smaller SSD (120 GB) to a at least same sized or bigger SSD. I could always copy the ...
1
vote
2answers
1k views

Cannot execute sudo apt-get update

I am new to Ubuntu and when I execute sudo apt-get update I get the following errors and warnings W: GPG error: http://ppa.launchpad.net quantal Release: The following signatures couldn't be ...
0
votes
2answers
164 views

i am not able to install flash plugin in firefox and chromium

youtbe videos are not playing on my system. system asks me to install latest flash player. and when i do so, i am getting the response "unable to change to sudoers gid: Operation not permitted" the ...
1
vote
1answer
176 views

How to dial modem without sudo

I am using ixconn as modem manager because it has many more features than the default network manager. But it cannot be used without root privileges (i.e., sudo). How can I use ixconn to dial my ...
0
votes
1answer
38 views

Sudo command broken

I upgraded my dedicated server from ubuntu 11.1 to ubuntu 12.04. After the server upgrade says 'unable to initialize PAM: No such file or directory' when i am going to change the user to sudo. I got ...
0
votes
1answer
42 views

Notify-send won't show notification unless run with sudo

I have just tried to use notify-send on my 13.10 machine and can't get it to work without using sudo with it. I don't know what details can I provide with this issue. My notify-osd version : $ ...
0
votes
1answer
111 views

Clam TK and sudo freshclam

I have clamtk! Should I set clamtk for manual or automatic updates? Clam says that if my computer is receiving automatic updates then I should set the wizard at automatic I have no idea if my ...
0
votes
1answer
46 views

adding sudo permissions to NIS clienadding sudo permissions to NIS clients

I've configured a couple of ubuntu 12.04 servers with NFS and NIS like it was described in https://help.ubuntu.com/community/SettingUpNISHowTo and in ...
0
votes
1answer
22 views

Need Help regarding Finding tools

When I type command find / -name ??.conf the output is a lot of files such as : find : /home/simmer/local/share/gvfs.metadata : Permission Denied Don't get the desired result, And if I use the ...
0
votes
1answer
55 views

how to make /usr/lib owned by root again

I chowned -R username /usr/lib and now i cannot sudo or do any thing really due to sudoers.so belonging to username. How do i fix this and make /usr/lib owned by root again?
0
votes
1answer
2k views

`pip: command not found` but it's installed

sudo easy_install pip Searching for pip Best match: pip 1.4.1 Processing pip-1.4.1-py2.7.egg pip 1.4.1 is already the active version in easy-install.pth Installing pip script to ...
0
votes
1answer
98 views

Howto run jupiter script as superuser in lubuntu-rc.xml?

I'm trying to bind to my asus eee hotkeys couple of jupiter functions to work as on Windows. The problem is that I have to run those as superuser. Under terminal scripts are working fine so I put in ...
0
votes
1answer
46 views

problem in uninstall chrome. i got error so that i could open ubuntu software center too

sir i installed chrome by typing following commands: sudo add-apt-repository ppa:a-v-shkop/chromium-dev sudo apt-get update sudo apt-get install chromium-browser then i got big error i can't ...
0
votes
1answer
977 views

sudo does not work in GUI after upgrade to 13.10

On 2 completely different machines I have the same problem after upgrading from 13.04 to 13.10: All programs/task requiering sudo permissions (software updater, starting synaptic, installing programs, ...
0
votes
1answer
36 views

Visudo not working for specified files

I am trying to give sudo ability without the need of passwords to specific files. So far I have: employee ALL=(ALL:ALL) NOPASSWD: /home/file_name The file has a simple chmod command, in the bash ...
0
votes
1answer
134 views

cannot access tor ownership

I've tried the recommended options to gain ownership of tor browser and am still not successful. This is the script I got: sudo chown $USER-Rv~/.tor-browser chown: missing operand after ...
0
votes
1answer
103 views

Unable to change permisions on windows partition disk

I need to change permissions of files in my /media/MAVEN/Projects MAVEN is my windows disk partition. The permissions on the Projects folder are: :/media/MAVEN/Projects$ ls -la \total 340 drwxrwxrwx ...
0
votes
1answer
52 views

Program interface is ugly when started by script

I am starting Qt-Linguist in a bash script via sudo linguist-qt4 $PathToParentDir/translate_$lang.ts I could also use gksu instead of sudo but this would add more dependencies since most people ...
0
votes
1answer
733 views

How do I allow anyone to view my files on my network?

I have created a little server on Ubuntu 13.10, I've shared certain folders using SAMBA. On my WINDOWS PC my username and password is the same as the username and password of the server, so I'm ...
0
votes
1answer
76 views

How to modify and give acces to user in sudo file

when I am trying to install vim using sudo apt-get install vim, its showing sudoers file error. Please help me out.
0
votes
1answer
35 views

Having issue with creating a script

Trying to create a simple script but I'm not having any luck. I created a file with nano, saved it. Then: sudo chmod +x filename The script is: #!/bin/bash #script to restart networking after ...
0
votes
1answer
438 views

cannot start graphical programs with sudo

i have a fresh ubuntu 12.04 installation with encrypted home partition. i copied over my home folder from another computer. when i try to launch graphical programs via sudo i get errors like the ...
0
votes
1answer
87 views

SU, SUDO and Upgrade problem

i have a big problem with my Ubuntu PC. When i try sometigng need sudo or su, nothing is working and the OS Upgrade too, when i write the root password to the su command i have a "autentication ...
0
votes
1answer
457 views

How to install vnc server so I can have complete control on my Ubuntu Server?

I installed ubuntu server 12.04. I installed gnome desktop on that (GUI essential for my purpose). Now I want to control the server remotely. I tried following things and not very successful : ...
0
votes
1answer
129 views

sudo apt-get update leads to crash of terminal application

I try to run sudo apt-get update and the terminal freezes and a message pops up: Ubuntu experienced an internal error... I am trying to work with OpenFOAM and all the times is asking me to update ...
0
votes
1answer
691 views

sudo command not working in cron

I have a small script and I want to run it as user1 in cron. If I am logged in as user1 and execute the script it works just fine, but the moment I try to run it in cron it does not work. If I run the ...
0
votes
1answer
141 views

Connecting to wrong IP

sudo apt-get update When I try this command on terminal it says: 0% [Connecting to 107.108.85.10 (107.108.85.10)] [Connecting to 107.108.85.10 (1 Which I'm not sure is which IP... It's definitely ...
0
votes
1answer
53 views

how do I get dhclient to start when I login and start as root?

I've messed up my ubuntu. I uninstalled something that network-manager depended on and now I have to start the dhclient manually every time I log in. I've got a script that does the sudo dhclient eth0 ...
0
votes
1answer
852 views

How can I delete my printer from Ubuntu?

Using 12.04 my printer a canon ip2600 will not print. SystemSettings/printers shows it as installed, connected to local host, enabled, accepting jobs, shared and allowing printing for everyone. Yet ...
0
votes
1answer
84 views

Ubuntu 12.10 damaged: access to partitions and internet connection are lost

My Ubuntu 12.10 is damaged. After I log in, the very right menu (of users, shutdown, etc.) doesn't have any item. The internet connection doesn't establish and the hard disks don't appear while I ...
0
votes
1answer
140 views

How can I run an autorun file as root with no gui

I set up a server using ubuntu with no gui. I need root for some tasks that I want to autorun on this server. Normally I would just use gksudo because autorun programs never seem to work with su or ...
0
votes
1answer
209 views

sudo doesn't work on ro filesystems

When for whatever reason my home partitions gets mounted read-only, sudo fails: /usr/bin/sudo: Input/output error From what I understand, it seems to be trying to touch ~/.sudo_as_admin_successful ...
0
votes
1answer
450 views

KDE app theming using sudo in Unity

When I run Kontact as another user using gksudo, gksu, or kdesudo, the theming is all messed up: When I run Thunderbird as another user, it works fine! I'm running Ubuntu 12.10 using the Unity ...
0
votes
1answer
480 views

Why can I not use gksudo/sudo with any GUI program?

In my Ubuntu 12.04.2 with GNOME-Shell I'm not able anymore to run any graphical programs with gksudo or sudo. I always get an error like cannot open display I don't remember any particular changes ...
0
votes
1answer
165 views

Does following `man sudo root` permenantly blocks your sudo?

I needed to enable the root account for whatever reason and being offline I had no better advice than this manual man sudo root "This is not recommended! To enable the root account (i.e. set ...
0
votes
1answer
235 views

issue with cp command when i was copying in /var/www

i am not able to copy file in /var/www with sudo cp /home/index.html /var/www the error is cp:omitting directory '/home/index.html' then i used -r, sudo cp -r /home/index.html /var/www, then the ...
0
votes
1answer
124 views

Not entering a password for a graphical root action

I have edited my /etc/sudoers to successfully stop myself from having to enter a password for sudo, but I still have to enter a password to do GUI-based things like opening Synaptic or clicking Unlock ...
0
votes
1answer
102 views

Having a Problem After Installing Mac-osx Theme and setting it up With Cairo dock

When i write sudo apt-get upgrade This message Shows Up:"dpkg: error: cannot scan updates directory `/var/lib/dpkg/updates/': No such file or directory E: Sub-process /usr/bin/dpkg returned an error ...
0
votes
1answer
231 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
1answer
18 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
333 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 ...
0
votes
1answer
1k 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
1answer
818 views

How do I get the launch menus in kde to use kdeusdo?

I am using kde 4.4.5. When I try to run an application that needs root, I am asked for root password. In gnome I am asked for my password. Gnome used gksudo, gksu-properties is configured to use sudo ...
0
votes
1answer
105 views

Can not put a animated background on ubuntu 10.10

I go to the terminal: (Applications -> Accessories -> Terminal), and typed the command sudo add-apt-repository ppa:ilap/lwp and I pressed the enter key, and in the Terminal window it said: Joe is not ...
0
votes
1answer
2k 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
votes
1answer
221 views

sudo fab deps_local

I executed sudo fab deps_local in Ubuntu's terminal and got the following output: [localhost] local: sudo easy_install pip Searching for pip Reading http://pypi.python.org/simple/pip/ Reading ...
-1
votes
1answer
68 views

How to finish setting up to boot from LiveUSB?

Katies-iMac:~ KatieBaer$ sudo dd if=/Users/KatieBaer/Downloads/ubuntu-12.04.1-desktop-i386.dmg of=/dev/rdisk4 bs=1M WARNING: Improper use of the sudo command could lead to data loss or the deletion ...
-2
votes
1answer
33 views

Why I cannot download software on Ubuntu?

I have found out that suddenly i am unable to install ANYTHING on my ubuntu distro. Every time I try sudo apt-get install anything i actually get the same error message: ubuntu@ubuntu:~$ sudo ...