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)

0
votes
1answer
12 views

modify another user's password entry with sudo power

what are the sequence of commands to modify another user's password entry with sudo power in ubuntu? I like to change the other user's pass in ubuntu with sudo power?
0
votes
1answer
33 views

Run interpreted commands within sudo

The question is how to run generic commands which may contain ; && | < > << >> $ and so on within sudo. Possible solutions could be: To use interpreters within sudo sudo ...
1
vote
1answer
26 views

Run sudo command within directory

Possible solutions could be: Starting interactive session. sudo -s <<< "cd dir ; command" or sudo /bin/bash -c "cd dir ; command" But I don't have /bin/bash /bin/sh /bin/su or other ...
0
votes
1answer
21 views

Why do I need sudo to run apt-mirror?

Why do I need sudo to run apt-mirror? Is there a way to run apt-mirror without sudo?
0
votes
0answers
49 views

Creating a sudo && code && prior installing all necessary software? [on hold]

I'm testing out a code to install most common stuff, update the system and perform post-installation cleanup on fresh install. Allot of stuff can be done with just 1 click. EDIT: Were talking here ...
0
votes
0answers
12 views

IAM role in ubuntu

I am facing 'RepositoryException' when I tried to host snapshot data of elastic search data from a Windows to a Linux machine. I think it's due to user permissions. Browsing this link to github, i'm ...
0
votes
2answers
22 views

Cannot run this program neither with nor without sudo

I tried to run this program (texlive package manager): tlmgr install and got this error: You don't have permission to change the installation in any way, specifically, the directory ...
0
votes
1answer
28 views

sudo geany throws fatal error [duplicate]

I really like the Geany text editor, and would like to use it instead of gedit for all text editing. However, every time I try to launch Geany from the terminal using sudo geany file.conf, I get this ...
1
vote
1answer
15 views

Booting in single user mode

On 14.10 holding shift at boot time doesn't bring up the grub menu. Is there another way I can boot in single user mode? I have bricked my sudoers file so I can't use sudo btw. I don't get a grub ...
0
votes
0answers
17 views

User was deleted after reboot

Unsolved mystery - I was given a coworker's Ubuntu 12.04.1 LTS machine and set up my own (sudo/admin) user on there from the command line. I switched to my user and confirmed everything was okay using ...
2
votes
1answer
31 views

unix - disable “su” for ssh'ers

I'd like to disable getting root at all for users who ssh in - including "sudo su" cause that's pretty much the same thing... Can this be done? Assume that I'M not ssh'ing in, and have physical access ...
0
votes
0answers
27 views

How to leave root without exit command or ctrl+D

I'm logged in as root to do some stuff, and i have Tmux open. The trouble is, when I type 'exit' to leave root, it instead closes Tmux, because they use the same command. Is there a way to switch back ...
0
votes
1answer
13 views

installing software package for any user account and root user

Suppose I've two users in my system viz. USER1 and USER2. When I need to install any package for any user say USER1, I need to do "sudo su" which means root privilege. But is this software installed ...
0
votes
0answers
39 views

Broken /etc/sudoers file, can not use sudo [duplicate]

An edit to /etc/sudoers messed up the file. I can not use sudo anymore. Following error message is showing when attempting to use sudo, sudo chmod u+w /etc/sudoers >>> /etc/sudoers: syntax ...
-1
votes
1answer
42 views

sudo apt-get update in 14.04

I really need your help when i wrote this command (sudo apt-get update) in terminal , it give me this errors : E: Type 'See' is not known on line 2 in source list /etc/apt/sources.list E: Type 'dep' ...
-1
votes
0answers
54 views

sudo apt-get update problem for beaglebone black

I run ubuntu 14.04 on micro sd card for beaglebone black. I tried to update but i obtained a series of error and warning as follows ubuntu@arm:~$ sudo apt-get update sudo: unable to mkdir ...
0
votes
1answer
27 views

how to remove kubuntu plasma 5 dekstop?

I installed KDE 5 Plasma using this command $ sudo apt-add-repository ppa:kubuntu-ppa/next $ sudo apt-get update $ sudo apt-get install kubuntu-plasma5-desktop $ sudo apt-get upgrade How to remove ...
1
vote
0answers
10 views

SFTP as a different user than you logged in with

I connect to my work machine over SSH. Sometimes I transfer files back and forth using using Nautilus' "Connect to Server" feature. Sometimes I change to the root user and run commands. But I cannot ...
0
votes
1answer
36 views

I seem no longer to be a sudoer

On Sunday I let my son watch Netflix on my laptop as I was ill and in bed so couldn't watch it downstairs on the television with him. This may or may not be the root cause of my problem. Sudo no ...
0
votes
1answer
24 views

How to fix error temporary failure resolving 'archive.ubuntu.com'

I'm trying to install openvswitch on a Ubuntu VM(virtualbox) After executing sudo apt-get install openvswitch-switch I get the following errors: err http //archive.ubuntu.com/ubuntu/ trusty/main ...
0
votes
0answers
30 views

Can only commit changes to dconf as root

This is all over ssh. If I run gedit I get lots of dconf errors (gedit:35765): dconf-WARNING **: failed to commit changes to dconf: Could not connect: Connection refused If I run sudo gedit I get ...
0
votes
1answer
24 views

cannot switch to root

I cannot do "sudo su" It says "Cannot execute /bin/bash: No such file or directory". I have not bash file at /bin/bash. Please let me know how to recover it. I tried copying it from other system or ...
1
vote
0answers
53 views

Ubuntu 14.10 asks permissions for everything

I just made a clean install of Ubuntu 14.10, since I had a 14.04 that I had upgraded a few times. After the install, the OS asks root permissions for a lot of stuff I was able to do without issues ...
0
votes
3answers
92 views

Skype requires sudo access to run?

Okay, so I recently installed Ubuntu 14.04 and from there upgraded to 14.10. My installation is 64bit. I have installed several other programs and all work fine. For some reason when I try to run ...
0
votes
0answers
21 views

Install boto without password

I am new to Ubuntu. I have a virtual box on a Windows 7 computer. I went to this page. https://github.com/boto/boto I need to install boto. The commands are $ git clone ...
0
votes
1answer
32 views

Question about the sudoers file

This line is from my Ubuntu 14.04 root ALL=(ALL:ALL) ALL What is the meaning of the third ALL? What is the difference between the above line and root ALL=(ALL) ALL?
0
votes
1answer
24 views

Cannot run script at start-up because of dependecy

I want to make some scripts running at start-up, but one of them.. I read a lot of posts and tried lots of ways but still cannot make it. Let me explain what I want. I have a ubuntu 12.04. I need to ...
25
votes
5answers
5k views

What's wrong with using sudo?

In a comment here I've been told that unnecessarily using sudo should be avoided. While it wasn't needed in that particular case, I don't see any harm in using it. I think that when executing trivial ...
0
votes
1answer
28 views

User stopped being sudoer after release upgrade

I've upgraded one of web server, that was running Ubuntu from 11.10 to 12.04 (No downtime since it's creation, though serving 10-40k requests/daily). sudo apt-get install update-manager-core ...
0
votes
0answers
23 views

Cannot execute sudo command without correct password (Even though my account has no password). Why? [duplicate]

My account on my computer does not require a password, and I have admin privelages. As I understand it, so I'm trying to run sudo [...] and getting the following result when leaving the password field ...
1
vote
1answer
46 views

Asking for a sudo password in advance

I have some scripts for backing up data. Some of them need root access, so I use them with sudo. However, sometimes I get confused, e.g. for the mySQL backup, which also needs a mySQL root password. ...
0
votes
1answer
42 views

How can I have Wicd connect to my wireless network without having to enter a password?

In the context of my earlier deleted question below: Everytime I run WICD (Network Manager) it requires my password for permission. I'm not against Ubuntu asking for passwords in general but ...
0
votes
0answers
27 views

Whitelist a program as admin

Everytime I run WICD (Network Manager) it requires my password for permission. I'm not against Ubuntu asking for passwords in general but everytime I log in is a little excessive. Is there a way to ...
9
votes
1answer
773 views

How could I have dropped out of sudoers? [duplicate]

I started to receive a message dims is not in the sudoers file. This incident will be reported. about myself. How could this happen? The suspicious command I made was creating group "advanced" ...
1
vote
0answers
36 views

How to disable mpm-itk for a specific virtualhost?

I've a main site on a server that needs to run a sudo command which I white listed via visudo. That worked fine until I installed apache-mpm-itk and then I started getting the following error: sudo: ...
0
votes
0answers
50 views

When running a shell script using sudo I am getting no tty present and no askpass program specified

I am trying to build a project using jenkins. The project is based on node. I wrote a shell script that has only npm install command. I am running the shell script from jenkins as sh ...
0
votes
0answers
114 views

My ubuntu is broken, error with gksu!

I keep getting this when is use gksu nautilus: shonn@shonn-Satellite-A505:~$ gksu nautilus Nautilus-Share-Message: Called "net usershare info" but it failed: 'net usershare' returned error 255: net ...
0
votes
0answers
12 views

How do i give the anonymous pipe to a file root privileges [duplicate]

If i go the a root owned directory (let's say root) and type: sudo echo test > test i get the following error: bash: test: Permission denied So the pipe does not keep the same user as the ...
1
vote
1answer
23 views

Enable NOPASSWD without manual interaction

I need to enable NOPASSWD for one user across 60+ hosts. I've only ever enabled it manually, using visudo. Is there a way to script this? I can easily log into all hosts as root, but I'm not sure if ...
0
votes
0answers
44 views

sudo command not working

When I try to use the command sudo mountall, the following error message appears: sudo: unable to open /var/lib/sudo/username/1: No such file or directory So how do I solve this?
7
votes
1answer
307 views

How can I change the number of password entry attempts allowed by sudo?

By default, sudo prompts me to input my user password a maximum of three times if I input wrong password. How can I change it to unlimited times(?)? How can I make it so that it asks me for my ...
3
votes
0answers
168 views

Why do some commands in rc.local still need sudo to run?

I have added a command that runs "hd-idle". It seems to need to run as root as otherwise it does not spin down the drives as instructed. Behavior seems to be the same when executed manually or via ...
-1
votes
1answer
41 views

How do I access my window's files? [duplicate]

I recently replaced the Windows by Ubuntu and I have any files in my Disc. When I had Windows. How Can I Do to access $ sudo fdisk -l to I to recover my disc?
6
votes
1answer
209 views

Access to /dev/ttyUSB0 and sudo

This is my first question here. I am running Ubuntu 12.04 and have an application accessing the USB port of computer. My Ubuntu username is gadu. Until today, i've always used the following command: ...
16
votes
1answer
1k views

What does su > echo “<username>” mean?

When I was entering the command su > echo "sachin" it was asking for a password. When I gave my password, some strange things happened as you can see: One more thing: there is another user, ...
0
votes
1answer
53 views

How do i get permission to edit a file in /etc/? [duplicate]

I'm trying to modify a file from /etc/ but I can't, because the file I want to modify require root permission and I accidentally erase it. I tried to use some sudo commands but I can't because every ...
0
votes
0answers
43 views

Sudo is working without password? Is this a bug? [duplicate]

sudo commands are running without any passwords. I had not made any setting to make something like "sudo without password" This view show how sudois running without prompting for password ...
-1
votes
1answer
40 views

Problem with Swap file Ubuntu 14.04

I have created a new user, write on /etc/sudoers - echo '<USERNAME> ALL=(ALL:ALL) ALL' , then I login my new user, and try to swap files with the following command: sudo dd if=/dev/zero ...
1
vote
1answer
301 views

Why does node.js need administrative permissions to access my windows share even though the share's premission is 0777

I have Ubuntu 14.04 running as a VMware guest on my Windows 8.1 host. I have shared a folder on my Windows Host and it is mounted in the Ubuntu guest on startup using this entry in fstab: ...
2
votes
1answer
59 views

How to find out which programs are taking up alot of memory?

I've been getting messages that I have exceeded my quota limits. I am new to Linux and am not sure what to do. With windows, I could easily just go to Control panel, add/remove programs, and uninstall ...