Questions tagged [sudo]

The sudo command is a program for Unix and Unix-like computer operating systems that allows a user to run programs with the security privileges of another user (normally the superuser, or root). The name is an abbreviation for "substitute user do" (as in, do a command as if started by another user).

The sudo command is a program for Unix and Unix-like computer operating systems that allows a user to run programs with the security privileges of another user (normally the superuser, or root). The name is an abbreviation for "substitute user do" (as in, do a command as if started by another user).

Unlike the su command, users typically supply their own password to sudo rather than the root password. After authentication, and if the /etc/sudoers configuration file permits the user access, then the system will invoke the requested command.

2818 questions
1
vote
2 answers

Different environment when running sudo as root?

I'm trying to install the Xeon Phi coprocessor. The specific behavior is probably related to the tools involved - my question is of a more general nature. When I execute a command as root, I get a segmentation fault. When I execute it as root but…
mrks
  • 8,033
  • 1
  • 33
  • 62
1
vote
2 answers

How to run 'at' as a different user?

I often need to run at jobs as a different user. I've always done something like $ echo "$PWD/batchToRun -parameters" | sudo su - otheruser -c "at now" batchToRun is also scheduled to run via otheruser's crontab. This works out well until…
jhfrontz
  • 1,165
  • 4
  • 19
  • 31
1
vote
2 answers

Arduino IDE error msgs

A few days ago everything was working Ok but now I have 2 errors with Arduino: IDE error when I open a random sketch. And then that window dies and cant even close it. It says Thread -l ... Java.Lang.NullPointerException Heres a…
fersarr
  • 3,399
  • 3
  • 28
  • 35
1
vote
1 answer

sudo for script which use mysql connect with anonymous user

I have following script: [root@localhost:~]# cat /mnt/start_discovery #!/bin/sh InterfaceNumber=$((65471 - $1)) mysql --user=' ' --execute="insert into dc.discovery_commands(device, job_ttd) select $InterfaceNumber, DATE_ADD( UTC_TIMESTAMP(),…
1
vote
2 answers

BASH web server on port 80 without running as root all the time

I am building a very small http server to control a raspberry pi-based device from a browser using this as a starting point: http://paulbuchheit.blogspot.com/2007/04/webserver-in-bash.html The core of it is: #!/bin/bash RESPONSE=/tmp/webresp [ -p…
Mike
  • 2,429
  • 1
  • 27
  • 30
1
vote
1 answer

sudo password required with MySQL Workbench

I have MySQL Server and MySQL Workbench installed on my Mac running OS X 10.8.2. I was having no problems until I tried to increase the innodb_buffer_pool_size by changing the configuration file. Since then, if I try to access the Server Logs,…
Nick Francis
  • 11
  • 1
  • 2
1
vote
1 answer

ubuntu 10.04 sudo and path

Ubuntu 10.04.4 LTS I have seen the posts regarding sudo and PATH on various sites including stackoverflow. I think this is different, so I'm pretty sure it is not a duplicate (but I'm not sure). 1) First, the non-sudo path to ruby: $ which…
JohnA
  • 699
  • 2
  • 7
  • 15
1
vote
1 answer

sudo command is not working on mac os x

When run sudo command anywhere in my terminal then I get following error Zafars-MacBook-Pro:etc zafarsaleem$ sudo sudo: /private/etc/sudoers is mode 0755, should be 0440 sudo: no valid sudoers sources found, quitting I followed this link but when I…
Om3ga
  • 30,465
  • 43
  • 141
  • 221
1
vote
2 answers

Execute a remote command after sudo - su anotheruser in Rundeck

I'm new with Rundeck and completely amazed with it and I'm trying to execute a job and my scenario is detailed bellow: Rundeck is configured with ssh password less authentication between node Server (rundeck server) and node Target (remote Solaris…
Bera
  • 1,272
  • 4
  • 23
  • 49
1
vote
1 answer

Git Permission Denied

So I seem to have been a bit carless with sudo when trying to setup my git account was following a tutorial and this is what I entered 458 git credential-osxkeychain 459 curl -s -O…
sonobenissimo
  • 191
  • 4
  • 14
1
vote
1 answer

sudo'd mysqldump over ssh syntax?

I'd like a single command that: ssh's into my server as user foo, using the public keys I have set up executes a mysqldump of some database with the /etc/mysql/debian.cnf defaults-file to stdout, so I can pipe it locally while doing a sudo on the…
Johannes Ernst
  • 3,072
  • 3
  • 42
  • 56
1
vote
3 answers

Post commit hook for the svn update

I have one repository and one working copy of it. In the post-commit hook of repository I have written a command to execute one file which run the command of SVN update. My repository is in the /var/www/svnrepos/help/ My working copy is in…
Satish
  • 1,012
  • 2
  • 15
  • 32
1
vote
2 answers

Sudo not prompting for password Mac bash script

I am trying to write a script that appends a line to the /etc/hosts, which means I need sudoer privileges. However, if I run the script from the desktop it does not prompt for a password. I simply get permission denied. Example…
spassen
  • 1,550
  • 8
  • 20
  • 32
1
vote
0 answers

JPype installation on Mountain Lion: "error: command 'gcc' failed with exit status 1"

I am trying to install JPype into a Python virtual environment (running on Mountain Lion with Xcode and Command Line Tools installed; further system details below), but I keep winding up with a gcc error. ~: python setup.py install running…
1
vote
2 answers

sudo commands with JAVA/shellscripts

I am trying to do a simple shutdown program in JAVA and I can't believe that I couldn't find an answer to this anywhere else. I first tried using sudo in my java program: import java.io.IOException; import java.io.BufferedReader; import…
user1700434
  • 121
  • 1
  • 2
  • 4