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
1 answer

Sudo.pm: some instance doesn't work

I'm using the Perl module Sudo.pm from CPAN. Here is the code I'm using: # In this two variable I'll store the object that runs sudo commands and # the exit status of the commands my ($su, $run); # This functions accept an object returned from…
Zagorax
  • 11,440
  • 8
  • 44
  • 56
1
vote
1 answer

how to access and query database in unix?

I have a very general question about unix. After using the ls command in the shell prompt, the following is listed students students is a database which i wanted to access. How to access and query this database? Should i use sudo su commands?
user1074122
  • 373
  • 3
  • 6
  • 14
1
vote
1 answer

Can't start service as a specific user?

Been fighting with Linux for the past few days. For whatever reason I can't start my service as a specific user. If I try to start my service as a specific user it will not work: sudo -u logAdmin /sbin/service logService start However; if I run the…
Kevin
  • 2,852
  • 6
  • 21
  • 33
1
vote
3 answers

Symfony2 and sudo privileges

I am developing an application using Symfony2. The problem I have is that when creating a folder throe a function in a entity the folder created has no sudo privileges, I would like to know how would it be possible to create the folder directly with…
Haritz
  • 1,702
  • 7
  • 31
  • 50
1
vote
3 answers

Add Entries to Hosts File

I would like to create a bash script that I will run inside an administrator account. I want the script to backup the existing hosts file to the same directory with the file extension .original and then I want the script to add 3 pre-defined entries…
sardean
  • 171
  • 1
  • 8
1
vote
2 answers

Fabric + django asynchronous prompt for sudo password

I'm working on the deployment tool in Django and fabric. The case is putting some parameters (like hostname and username) in the initial form, then let Django app to call fabric methods to do the rest and collect the output in the web browser. IF…
user1029968
  • 297
  • 2
  • 19
1
vote
2 answers

Running a script as root, without having root access

I'm trying to have a script run as root that adds directories and changes permissions, but I'm not sure how to have it run as root without prompting the user for a password. The user is not necessarily a sudoer, so doing any kind of sudo -S command…
jtcramer
  • 107
  • 3
  • 9
1
vote
1 answer

using ruby for admin-script: bunder / gem / rvm confusion

I have a git-repo which i clone onto my servers to do some administrative stuff. Most of the scripts are ruby, i need some gems. Until now i just installed the gems using sudo, but that doesn't seem like a good idea. I tried rvm and bundler, but i'm…
Fabian Zeindl
  • 5,860
  • 8
  • 54
  • 78
0
votes
1 answer

gem issue when using sudo

I have made a script that is already working properly in my development environment with RVM. This script reads *.eml files and parses them. Now, my problem is this. When I transfer it to the production server, it gives a Permission denied -…
Noel Llevares
  • 15,018
  • 3
  • 57
  • 81
0
votes
1 answer

How to boot from new CF card?

I have a embedded development box which has a CF (Compact Flash) card and it contains linux fedora 11 OS followed by complete development code , scripts etc. Objective: I need to take the image from CF present in the development box and upload…
samantha
  • 565
  • 3
  • 13
  • 29
0
votes
1 answer

installing packages on Mac OS X

Hi I'm currently on Mac OS X Lion. I had a question that when I install a package like "pip" or "node", which are command line applications or packages. I cannot run them by simply type "pip" or "node'. I have to sudo to run them. Without sudo, it…
0
votes
1 answer

Java Wrapper Script w/ sudo not working

I have a Java executable that takes in command line arguments to launch root protected applications on my Linux box. We have separate user accounts that are given sudo access to launch the single Java executable, which the user can then use to…
sirmarlo
  • 217
  • 1
  • 3
  • 8
0
votes
1 answer

exec sudo commands on ssh in python

I need a python lib to execute ssh command. I also need the output. I tried paramiko: It was exactly what i needed but no way to execute sudo commands there. there are some online posts for that but none seem to work. I also tried fabric: The…
Abhi
  • 115
  • 1
  • 6
0
votes
1 answer

Phusion Passenger not starting: "sudo: passenger: command not found"

I'm running Ubuntu 11.10 server and successfully installed Phusion Passenger. I'm getting the following errors when I try to start it: christy@beast0:/$ passenger status Phusion Passenger Standalone is not running, according to PID file…
trilobyte
  • 123
  • 2
  • 9
0
votes
2 answers

Why does running "apachectl -k start" not work, but "sudo apachectl -k start" does?

I'm working on my OS X with the default installation of Apache. For some reason, when I run the "apachectl" command without the "sudo" I get "no listening sockets available / unable to open logs." I'm guessing this is a permissioning thing, so can…
Bialecki
  • 30,061
  • 36
  • 87
  • 109