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
133 views

'apt-get upgrade' getting stuck

When trying to install updates after checking with sudo apt-get update, sudo-apt get upgrade is not installing them. username@username:~$ sudo apt-get upgrade Reading package lists... Done Building ...
1
vote
2answers
115 views

what is the sudo -i command [duplicate]

What does the sudo -i command do and in which situations would it be used. read it using the man sudo command but i'm looking for a more diluted discription to help me understand better.
3
votes
1answer
175 views

Why don't the commands 'sudo bash' or 'sudo -s' ask for a password? [duplicate]

Even when I am logged in as a non-admin user, when I enter sudo bash or sudo -s, the system does not ask for any password. In the command history, I have not entered any password for sudo earlier ...
-2
votes
1answer
37 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 ...
3
votes
1answer
127 views

Prevent other sudoers to use apt-get command

How can I prevent other sudoers to run apt-get install command? Other commands such as mount and others are OK with them.
2
votes
2answers
98 views

What is the difference between sudo -i and su? [duplicate]

It seems as if there is no difference whatsoever. When the whoami or id commands are run, they all yield root credentials. Is this an illusion? If the root account is disabled by default in Ubuntu, ...
53
votes
7answers
3k views

Can sudo be reinstalled after being removed?

This seems to be a chicken-egg problem. The most common task using sudo is installing and removing software. sudo apt-get purge <appname> But sudo itself can be removed. sudo apt-get purge ...
0
votes
4answers
83 views

After partitioning space to my ubuntu partition, nothing updates

Right now, I have Ubuntu 13.04, and using sudo-apt-get dist-upgrade does not get me the 13.10 update. Whenever I sudo-apt-update or upgrade lately, I get: 0 upgraded, 0 newly installed, 0 to remove ...
0
votes
1answer
65 views

gksudo from a non sudoer?

I want to run gui applications that require admin privileges from gksudo/gksu on a non-sudoer account. Currently, I can just run sudo guiapplication from a sudoer tty, and will be able to display/use ...
2
votes
1answer
66 views

How to give a quicklauncher or shortcut administration privilege?

I have a quicklauncher in a plasma widget (which is the same as a shortcut) which runs a command which needs administration privilege. I use the quicklauncher frequently and do not want to type root ...
2
votes
4answers
211 views

Access folders with sudo priviliges via Nautilius-Connect to remote server

I need to access the /var/logs folder & many such folders on my remote server from nautilus, using "Connect to server" via ssh. I avoid root logins & have disabled it. I would like to use sudo ...
0
votes
0answers
8 views

when i input “sudo apt-get update” ,i get an w&&E. I've tried many methods but failed to solve it .Thanks for help me [duplicate]

W: Failed to fetch bzip2:/var/lib/apt/lists/partial/mirrors.oschina.net_ubuntu_dists_saucy-updates_universe_binary-i386_Packages Hash Sum mismatch E: Some index files failed to download. They have ...
0
votes
1answer
117 views

errors while using 'sudo apt-get update'

W: Failed to fetch cdrom://Ubuntu 13.10 _Saucy Salamander_ - Release amd64 (20131016.1)/dists/saucy/restricted/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get ...
0
votes
0answers
28 views

/etc/sudoers is owned by uid 1000, should be 0 [duplicate]

In order to do something, I misused chown and clearly rewrote permissions where I should not have. Now, when I SUDO, I get the following message: sudo: /etc/sudoers is owned by uid 1000, should be 0 ...
0
votes
2answers
277 views

On each sudo command I get [sudo] password for root:

I have run a script https://github.com/starlilyth/Linux-PoolManager to install it and I have run into the situation where on each sudo command I get the prompt: [sudo] password for root: the ...
9
votes
3answers
2k views

Difference between cat and sudo cat? [duplicate]

Can you tell me what the difference is between cat and sudo cat? All I know so far is that cat is used for displaying contents of file and concatenation.
0
votes
0answers
1k views

sudo: unable to change to sudoers gid: Operation not permitted

I installed Ubuntu server 12.04, then I installed ubuntu-desktop. After I installed the desktop interface. I was not able to login with to the administrator account. When I use su and put user/pwd it ...
1
vote
3answers
1k views

/etc/profile permission denied

I'm running an Ubuntu 12.04 LTS partition and I've recently have had issues logging in. From the GUI login screen, when I enter my username and password, it takes me right back to the login screen. ...
0
votes
0answers
20 views

how do i fix this problem? [duplicate]

~$ sudo apt-get -f install E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process ...
1
vote
1answer
706 views

nvcc not found, but only when using sudo

I can't get ANYTHING working on linux. I'm trying to compile CudaMiner. sudo make: ypt-jane.o `test -f 'scrypt-jane.cpp' || echo './'`scrypt-jane.cpp mv -f .deps/cudaminer-scrypt-jane.Tpo ...
1
vote
1answer
67 views

I have a Password problem can some one help [duplicate]

I am a new Ubuntu user with 12.04 lts and stepped away from my computer for a month and forgot my password. Using this forum I attempted to reset my password using a root line upon booting in grub, ...
0
votes
0answers
48 views

Errors with apt-get update command [duplicate]

When I run a sudo apt-get update command I get these errors at last row: Reading package lists... Error! E: Problem syncing the file - sync (5: Input/output error) E: The package lists or status file ...
1
vote
3answers
36 views

Can an infected DVD+RW affect a Linux PC?

Yesterday I started my laptop (using a sudoer user because I wanted to install one program) with an infected DVD + RW inside my laptop (it was recorded using aother computer that is infected and I ...
1
vote
0answers
40 views

Run eclipse project as root without running eclipse as root

How can one execute eclipse project as root without running eclipse as root? I'm writing a C++ program that uses Opencv and Boost libraries. When trying to execute the program, I get the following ...
3
votes
1answer
76 views

Creating executable file with password included in a script

How can I execute a sudo command by double clicking an icon ( password should be part of the script). Please help! Excuse if question is a blunder. My gnome-ppp is not detecting my BSNL modem when I ...
0
votes
1answer
87 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
2answers
1k views

How to add my user account to admin group (13.10 desktop) [duplicate]

I was trying to extract a web template into the hosting folder /docroot on the web service, which is working, however I do not have permission to complete the action. I cannot stand being locked out ...
1
vote
1answer
325 views

sudo, gksudo, kdesudo and their differences?

What is the difference between sudo, kdesudo and gksudo, and when should I use each? I know that sudo allows me to run both cli and gui functions, but I've seen other people on websites using kdesudo ...
0
votes
0answers
51 views

sudo: setresuid() [0, 0, 0] -> [117, -1, -1]: Operation not permitted

I am not able to login as super user. Here's the output of setresuid(): sudo: setresuid() [0, 0, 0] -> [117, -1, -1]: Operation not permitted
0
votes
2answers
67 views

What is sudo? I can't access to it [duplicate]

I am very very new to all of this. I get it that sudo is some kind of authorisation. When it asks for the password, I can't type anything. EDIT: OMG GUYS THANKS. I just realized that I might have ...
0
votes
1answer
357 views

How do I add a standard user into sudoers' file using `echo`? [duplicate]

I am using Ubuntu 12.04 and I was doing through a terminal tutorial. There was explained about echo command and he mentioned something about adding your name to the sudoers file using echo >>. I ...
1
vote
1answer
300 views

setting PATH to /etc/profile or /etc/environment does not work with sudo

I want to launch Intellij IDEA IDE via sudo idea.sh. sudo because IDE needs to manupulate files from /etc/share. idea.sh is placed at /home/<username>/<path>/bin/idea.sh. I tried to add ...
1
vote
1answer
145 views

Cannot add ppa for gvfs-mtp

I am a total newbie concerning anything to do with Ubuntu/Linux. I am running 12.04 on VM Player. I am trying to connect my HTC One (Android 4.3) to Ubuntu, and looking online has told me to do: ...
0
votes
0answers
65 views

Can't use sudo after changing the user password

I am currently running Ubuntu 12.04 and I recently changed my account password. Before the password change, I was able to run commands via sudo when necessary while using my old password with no ...
0
votes
0answers
19 views

Wrong Scrollbars - sudo and SSH

I prefer the overlay scrollbars to the default Gnome scrollbars. These work fine except in two cases: Using sudo, like sudo synaptic. Using SSH to open an X application on a remote server. Or in ...
0
votes
0answers
97 views

sudo not working due to incorrect permissions

I broke my ubuntu server by typing the command chmod -R 777. Im trying to get it back to normal. Problems: When I try to use sudo, I get the error: sudo: unable to open /etc/sudoers.d/README: ...
0
votes
0answers
27 views

sudo part of tutorial for bootable usb

I've been trying to create a boo-table usb stick with Ubuntu on my macbook pro. I got to the part of the tutorial where it said to use the following command: sudo dd if=./target.dmg of=/STORE\ N\ ...
0
votes
3answers
47 views

sudo cannot do cd [duplicate]

I found the strangest thing sudo cd $pwd sudo: cd: command not found I am able to cd as a normal user.It seems that PATH is not set properly for su. How do I fix that?
4
votes
2answers
470 views

How do I make a sudo command start at start-up with a 1 minute delay?

I would like to make a sudo command (sudo service smbd restart) run after 1 minute of being logged on. How would I go about doing this? P.S. This is a system with no monitor, mouse, keyboard or ...
2
votes
1answer
60 views

Aliased rm, how do I also alias sudo rm

I aliased rm to a echo use del or full path to rm to save myself from accidental rm (just lost my $HOME to it). But sudo rm still uses /bin/rm. How can I alias it to also print same message? PS: del ...
0
votes
0answers
47 views

Using xcfe4 to run apps requiring sudo user

Total newb. I installed Ubuntu 13.10 desktop to use as a server to play with on my home network. Intended to use RDP from Windows and found Unity 3D made this impossible (blank screen) so I've ...
0
votes
1answer
134 views

Default sudo settings did not require password

This is for a 12.04 ec2 instance. In the man pages it says the default should be to require a password when using sudo. I thought by setting the ubuntu's account password (in case it wasn't set) ...
3
votes
1answer
123 views

What is the difference between sudo -i and sudo -s

I am new ubuntu user and found some people telling me to use sudo -i to get to root and others tell me to use sudo -s. What is the difference? Which one do I use and when?
3
votes
2answers
63 views

Issue when sudo something after a hostname change

I was tired of my system's name so i decided to change it. I gksudo gedit /etc/hostname and changed my first and never touched computer name to a new one. Then now when i sudo something like sudo ...
1
vote
1answer
543 views

Mount samba share at login using startup script (not fstab)

Background I'm trying to automatically execute a command that mounts a password protected Samba share when my user logs in. The catch is, I share my laptop with another user, and I don't want the ...
1
vote
1answer
51 views

How can I as a root user manage folder owned by other users using ubuntu desktop?

I need to copy files/folder to a folder but that is owned by another user, infact a installed application by me. So how do I get the rights to copy files/folder to that folder ? I want to do it via ...
3
votes
3answers
4k views

Can't open Gedit as root

When I run sudo gedit /path/to/some/random/file I get the following error ** (gedit:6262): WARNING **: Command line `dbus-launch --autolaunch=7f8731869e1c690b8205727e0000000a --binary-syntax ...
2
votes
2answers
341 views

Editing Sudoers to avoid typing a password for iwconfig command [duplicate]

I wanted to follow this guide to avoid typing a password every time I want to use "sudo iwconfig" command http://ubuntuforums.org/showthread.php?t=1132821 I tried the steps with "apt-get" command ...
1
vote
2answers
156 views

Root user and Super User

How is being the root user different from being the super user? If it is different anyways, is there a way to use the shell as the root? Is there a root password for that? Is it different from the ...
-1
votes
3answers
713 views

How to use Vlc with sudo privileges?

I'm trying to use Vlc with sudo but it doesn't work. This is the error: VLC is not supposed to be run as root. Sorry. If you need to use real-time priorities and/or privileged TCP ports you can use ...