0
votes
0answers
53 views

How can I run an autorun file as root with no gui

I set up a server using ubuntu with no gui. I need root for some tasks that I want to autorun on this server. Normally I would just use gksudo because autorun programs never seem to work with su or ...
1
vote
1answer
116 views

sudo su doesn't change users for mysql

On a Ubuntu 11.10 ubuntu-server: Last night, on my server, I did: sudo su - mysql to change to the mysql user so I could run the mysql client, which is set up so it will only authenticate from the ...
3
votes
2answers
302 views

How to set root proxy settings via command line?

I am using fabric to deploy a project and have run into an issue: fabric does not currently (as far as I'm aware) have the ability to specify options to it sudo command, therefore I cannot use sudo ...
0
votes
3answers
82 views

apt-get upgrade says sudo needs to be upgraded, is this correct?

I have a Ubuntu Server running 10.04 - to be precise, Ubuntu 10.04.4 LTS according to lsb_release -a. I just ran sudo apt-get update and sudo apt-get upgrade and got this output: Reading package ...
0
votes
2answers
486 views

Cannot change permission for /var/www/ [duplicate]

Possible Duplicate: problems with sudo permissions - /var/lib/sudo owned by uid I recently installed Ubuntu Server and put the GUI on so I can get the hang of Linux. However, I can't seem ...
0
votes
1answer
84 views

sudo update stucks at connecting

I have an Ubuntu 12.04 LTS Server, and I want to install the GUI, which causes error everytime. but before installing the GUI, I want to run the update command: sudo apt-get update But I always get ...
3
votes
1answer
187 views

Can't reboot system using ssh

I am running Ubuntu Server 12.04 and I would like to reboot my system. I ssh into it fine, but when I run sudo reboot I get the following error -bash: /usr/bin/sudo: Input/output error. It is at this ...
2
votes
1answer
1k views

Ubuntu Live CD: How to switch user on LiveCD to “root”

I have created my customized live CD by following the instructions @ Ubuntu Forum Thread 688872 The Live CD gets created fine and it is able to bootup as well. I see my customized setting in place. ...
2
votes
1answer
43 views

Is it possible to run an application as superuser within boot without input?

I have an Ubuntu 12.04 Desktop machine running as a server with no input devices accessible after initial setup. I need to place any application that I want to run within the boot process. I have one ...
2
votes
1answer
455 views

Lost control of root account, Ubuntu Server 11.10

after I created a group, and put the root account in it, I lost control of it and now it's not root anymore. Also I can't login with "root". How can I revert this? Now there is no way I can use sudo ...
3
votes
2answers
3k views

Why does sudo not add root's PATH with Ubuntu 12.04?

I've recently upgraded my server to Ubuntu Server 12.04. Previously it was running 11.04. Ever since then I've been having trouble carrying out root user commands through sudo. An example of this ...
0
votes
1answer
109 views

Executing adb from php

I am trying to run adb from PHP using: exec( 'adb devices', $output, $return_val ); but I get 126 error. I think the problem is that php is running as 'www-data' user and does not have permissions ...
3
votes
1answer
708 views

Permission denied on /dev/xvdf despite sudo?

I'm trying to get a stream off port 9999 and write to /dev/xvdf. I'm using Amazon EC2 with the Ubuntu 11.10 server image. By default I log in as 'ubuntu' which has sudo privileges. However, when I run ...
2
votes
0answers
4k views

“no valid sudoers sources found, quitting” error, how to fix it? [duplicate]

Possible Duplicate: How to modify a invalid /etc/sudoers file? It throws out an error and not allowing me to edit again at the time of running sudo command i got the following error: ...