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
0answers
21 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
23 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
20 views

Unable to install zlib1g-dev [on hold]

I have a college project for which I need to install Multi2Sim. It relies on a dependency called zlib1g-dev. I get this message The 'zlib' library development package is missing in your system.Please ...
0
votes
0answers
22 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
760 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
15 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: ...
-1
votes
0answers
13 views

Permissions for /etc/sudoers.d/sudoers

I'm running Kubuntu 12.04. I've been getting the warning message /etc/sudoers.d/sudoers is mode 0444, should be 0440 whenever I execute sudo. So I decided to take the hint and changed the permissions ...
0
votes
0answers
15 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
36 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
2answers
36 views

How to enable root account without sudo? [closed]

I already installed debian 6. But when I logon (using my account) I can not access to internet "command ping not found", "ifconfig not founnd",... I tried to change to root account but the ...
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
14 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
33 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
262 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
60 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
32 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?
5
votes
0answers
129 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
42 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
41 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
27 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
102 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
47 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 ...
1
vote
0answers
17 views

GUI anthentication doesn't work. No privileges

This is on Xubuntu 14.04 64-bit After a forced restart (due to nvidia overheating) I noticed that no sound was playing, and in fact pulseaudio showed only dummy devices. While looking for a solution, ...
0
votes
2answers
62 views

ERROR 1045 (28000) on mysql-server installation [duplicate]

I am new to Ubuntu trying to install MySQL. sudo apt-get install mysql-server php5-mysql then to create database directory structure sudo mysql_install_db Then to secure I use sudo ...
-1
votes
1answer
43 views

Ubuntu 14.04 'sudo' and networking not working

I upgraded to Ubuntu 14.04 today and I have two problems 1) When ever i do 'sudo' followed by a command the system just stalls, nothing from 'sudo ls' to 'sudo apt-get install ... ' etc works. The ...
0
votes
2answers
28 views

How to change permission of a drive in an external hard disk?

I had an old laptop. When it got complaint I removed its hard drive and started using it as external hard disk. It has an 80 GB of memory allocation for the windows C drive partition. But now i don't ...
1
vote
0answers
84 views

Ubuntu 14.04 - Jenkins User NOPASSWD configuration

I'm trying to make my jenkins user able to execute a script with www-data user so I've tried adding jenkins ALL=NOPASSWD:ALL at the end of my sudoers file but it didn't work, password was asked ...
0
votes
0answers
17 views

Questions about checking for badblocks on a almost-definate bad HDD, I am new to Ubuntu

Heres the deal, I'm on an Asus x53sv-mh71, it's my friend's laptop. He dropped it about a month ago, and it stopped working about a week afterward. Wouldn't boot past the "starting windows" logo. I ...
1
vote
1answer
64 views

How to get root permission inside qt program?

I run my QT app without sudo permission but during running phase of the app I need to install the .deb so I am running the command dpkg -i mydeb.deb with qprocess in QT or some other commands which ...
0
votes
1answer
60 views

Superuser 'permission denied'

I wish to run a script in the root directory. The script is /opt/poky/1.6/xx If I log in as a superuser in Ubuntu 14.04 using sudo -i and my own password, I can see this file using ls /opt/poky/1.6/. ...
0
votes
3answers
78 views

How to enable sudo passowrd?

I just installed Ubuntu 12.04 on a virtual machine in the Windows Azure Cluster. By default sudo is not requiring a password. I would like to force a password on all sudo commands. How do I go ...
4
votes
5answers
1k views

Should I use “sudo” before “make install”?

I am installing the latest FFmpeg from this guide: In some places it suggests performing make install without sudo, here is a single example of several: cd ~/ffmpeg_sources wget ...
4
votes
1answer
87 views

How to automatically opening terminal windows & tabs, ssh and sudo su?

When I start my day in front of my computer, I first have to do the following: In workspace 1: Open a new terminal window, ssh loginserver, then ssh serverA1 and sudo su account00 Open a new ...
-1
votes
2answers
106 views

account blocked by changing the /etc/passwd : how to revert or gain access again

To get root access to my existing account in ubuntu i followed this post. But even after following the steps mentioned i wasn't able to create/modify file or directory without using the sudo keyword. ...
1
vote
0answers
41 views

Why does sudo prevent catching SIGTSTP (Ctrl+Z)?

This program is written to catch SIGTSTP (Ctrl+Z) and bypass its normal effect, printing a message and returning to its normal operation instead of allowing its process to be suspended: ...
-1
votes
1answer
80 views

sudo chmod 755 /dev/sda7 -R simply returns a new command prompt line?

I am logged into my computer through the guest account, because i am unable to login through the master/admin. account via user interface. (Simply a blank, blue screen appears upon login.) So i'm ...
0
votes
2answers
49 views

How to properly detach a command?

I have this little script I use to launch a root Nautilus window (yeah, dangerous, but sometimes necessary): #!/bin/bash gksudo --description "Launch a root Nautilus" -- sh -c "xdg-open / &" ...
0
votes
2answers
43 views

How to save output to file that required root access

I want to save output of command to a file that my current user do not have access to. But my user can have root access using sudo. I'm running for example: sudo crontab -l > /var/BackUp/crontab ...
0
votes
1answer
50 views

Can't use sudo, gedit, i'm getting error in upgrading

sudo: unable to open /var/lib/sudo/username/7: No such file or directory W: Not using locking for read only lock file /var/lib/dpkg/lock E: Unable to write to /var/cache/apt/ E: The package lists or ...
-1
votes
1answer
92 views

Nano edit, permission denied

I am trying to edit a index.php by using sudo nano index.php. Nano opens me into index.php, then i add the code into the file, save and try to exit but it says permission denied. I am using ssh ...
-3
votes
1answer
64 views

Enabling root privileges permanently and have no password

I want to enable root privileges permanently so that, for example, I never need to type sudo. I also want a blank password. I found a thread addressing this with link Always Sudo Privileges. Exactly ...
1
vote
3answers
105 views

User in sudo group cannot use sudo command

I have a user, supersecretuser, that is in the sudo group, but doesn't have sudo access. Is there something else that needs to be done to give this user sudo access? $ ssh supersecretuser@myserver ...
2
votes
0answers
33 views

How do I remove sudo from my server without breaking everything?

I am creating a test server VM, and I would like to delete the sudo executable by deleting it via apt. I know the root password, so that is not a downside. Is there any problem about removing sudo ...
0
votes
1answer
26 views

Changing Administrator [duplicate]

Due to a mishap with my main profile I am wondering if anyone could assist me in making my secondary profile the administrator. Something went wrong with my primary profile and I can no longer see ...
1
vote
0answers
21 views

Lost premisssions after editing sudoers file [duplicate]

Please, can someone help me. The problem: I would like to give permissions to reboot for users not from admin group. On the Internet I found the advice to change the "sudoers" file with command ...
1
vote
1answer
130 views

How can I make Sublime Text 3 run as root from Unity?

I know I am not root because I cannot browse packages. First, I am aware of this page, but it is not working for me. After following those instruction, I get the prompt when I open Sublime from ...
0
votes
1answer
35 views

problem occuring while creating .exe file

I'm trying to run test problem in the mfix but got struck with an error sh: 0: Can't open ../../model/make_mfix. bhaskar@admin2-Precision-T7600:~/mfix/run/tests/Added_Mass$ sh ../../model/make_mfix ...
0
votes
1answer
46 views

Problem with adduser on new install

I am a noob trying to get an install of ubuntu 14.04 LTS up and running on a virtual server on linode. I have not done much on it yet. Earlier today I tried to add some users. I was able to add one ...
2
votes
1answer
55 views

If I use && to run two commands - do I need to put sudo in once or twice?

Suppose I have the following command curl -Lo .amb j.mp/docker-ambari && . .amb && amb-deploy-cluster (assuming this is running on vagrant - so not a real machine) And I know I've ...