Ubuntu Servers :: SuPHP - Do A Root Command?

Oct 22, 2010

I've installed suPHP on my ubuntu server, only thing is, there's no examples of php code that I could find that shows how to do a root command (e.g. su useradd ... ) I've been on this for 3 days and it's hurting my head

View 2 Replies


ADVERTISEMENT

Ubuntu Servers :: Configuring The SuPHP With 8.04?

Jan 1, 2010

I am experiencing trouble configuring suPHP on my Ubuntu 8.04 web server. I've googled around quite a bit and the general consensus is that you first disable php5, then install the suphp module (I did that from the repo). I configured one of my Vhosts to use suPHP_UserGroup, but I get the following error:

Invalid command 'suPHP_UserGroup', perhaps misspelled or defined by a module not included in the server configuration

I know the module is loaded, so I'm not sure why I'm getting this error. Is a Vhost the right place for this setting? Note that I installed from the repository instead of compiling from source if that makes any difference. Any insight on this issue? I can provide configuration files if need be.

Edit: After some extended googling, from what I understand I have to recompile suPHP using the 'paranoid' mode. Am I correct?

View 1 Replies View Related

Ubuntu Servers :: Command Line To Copy File To Root Directory

May 12, 2010

I want to copy file from the Server cd drive and USB drive to the server root directory, but I haven't find any command of listing the cd drive or usb drive.

View 4 Replies View Related

CentOS 5 :: Internal Server Error When Enable Suphp?

Sep 15, 2011

I just run Php5handler on suphp, but suddenly i got internal server error (everything ok when i running php5handler on dso) How to fix this problem?

View 1 Replies View Related

Ubuntu Servers :: After Using Crontab With /etc/crontab / Giving Error "can't Find Command Root"?

Aug 26, 2010

I have a question about using crontab with /etc/crontab...

I had a cron job that I needed to run as root. At the time I thought that sticking it in /etc/crontab would be a good idea. However, I used the crontab command to edit /etc/crontab, which I guess is not standard procedure? Specifically, I configured /etc/crontab as my local user's crontab (i.e. sudo crontab /etc/crontab) then added my cron job as I would a local user crontab (i.e. sudo crontab -e).

Originally, my cron job looked like this:

30 * * * * root /my/batch/script &> /dev/null

After adding the new cron job I started seeing errors. Something to the effect of "can't find command root" or something similar. So I removed the 'root' user definition from the cron job and the job started running fine. However, because this is /etc/crontab, there are other system related cron jobs that have been defined to run under the root account (e.g. "17 * * * * root cd / && run-parts --report /etc/cron.hourly" runs as root, etc.). So these pre-existing system cron jobs, which up until now have been running smoothly, are now generating "can't find command root" errors. But I think that the system cron jobs _are_ successfully being run someplace because logrotate seems to be working.

So what I _think_ is happening is that /etc/crontab is being run twice: once as the system crontab, and once as my sudoed local user's crontab. When I run crontab -l I see nothing, but when I run sudo crontab -l I can see the contents of /etc/crontab. I am reluctant to delete my sudoed local user's crontab, because then in the process I would be deleting the system crontab, and I do not know how I should restore the system crontab's contents. (I am still not sure as to the most appropriate way to edit the system crontab).

How can I get out of this mess? I want /etc/crontab to go back to the way it was before--running _once_ as the system crontab. As for my new cron job, I'm willing to reconfigure it anywhere so long as I am still able to run it as root. Any ideas? (I am using Ubuntu 8.04 Server LTE)

View 2 Replies View Related

Server :: Limit The Suphp User Memory Limit?

May 12, 2010

I have a VPS server with 512 MB memory. The php.ini is set so script memory limit = 16 MB. However, I have noticed in my top report, instances like the following:

Quote:

5484 coldclim 25 0 46476 32m 5920 R 0.0 6.4 0:00.93 php

The bold number of 6.4 is the % of sever memory this process is using. 6.4 % of 512 MB of memory is about 32 MB of memory, so it appears that this isn't being limited by php.ini. Am I correct? This leads to the next question: Is there some way to limit the amount of memory a single suphp process can use? (Basically, something like the setting in php.ini which limits suphp processes in the same way.)

View 2 Replies View Related

Ubuntu Servers :: Installing File Sharing Using EBox - Failed To Enable: "root Command /usr/share//ebox-samba/ebox-samba-enable Failed"

Sep 27, 2010

Installing file sharing using eBox and get the following error:

[Code]///

View 1 Replies View Related

Ubuntu :: What's The Command For Running Natilis As Root

May 7, 2010

What's the command for running natilis as root? What about my natilis spelling?

View 2 Replies View Related

Ubuntu :: Way To Add 'run As Root' Command To Right Click Menu?

May 7, 2010

is there a way to add a 'run as root' command to the right click menu? so i could right click on a launcher, or a file in /usr/bin(or some other no editing folder) and easily run as root?

View 5 Replies View Related

Ubuntu :: Crontab Command Requires The Root?

Feb 3, 2011

I tried scheduling a task using crontab -e and added the line:

Code:

58 23 3 2 4 /usr/bin/freshclam --verbose --log=/home/EXISTING DIR where I have permissions

The timing was simply a test run. My syslog gives the following error:

Code:

(CRON) error (grandchild #4309 failed with exit status 62).

I also tried to add to root crontab as below, but got the same error.

Code:

sudo crontab -u root -e a

View 9 Replies View Related

Ubuntu :: Command For Running Natilis As Root?

May 10, 2011

What's the command for running natilis as root? What about my natilis spelling?

View 1 Replies View Related

Ubuntu :: Launch A Root Command In The Boot In 11.04?

Jun 20, 2011

In a computer, the brightness can't be changed with the fn key (and the brightness starts at 100%) :S I can set the brightness with this command from a shell: sudo setpci -s 00:02.0 F4.B=25 In Ubuntu 10.04 worked set this command in /etc/rc.local But in Ubuntu 11.04 I did this, but it didn't work. In which file can I set a root command in the boot in Ubuntu 11.04?

View 3 Replies View Related

Ubuntu :: Difference: Run Program From Rc2.d Or From Root Command Line?

Mar 26, 2010

Example: In rc2.d I have S99test. In it: Code: #!/bin/sh mplayer -playlist "/music/Thom Yorke - The Eraser" Reboot; hear the loveliness; press pause (lirc setup)...still loveliness.

Login as root; "pkill mplay";hear nothing; "/etc/rc2.d/S99test"; more loveliness; press pause...silence! I know that i the former case, mplayer is assigned (for lack of a proper term) to a session, e.g. tty1. Not so in the latter. But why should a program like mplayer not receive (or ignore?) input from lircd, simply because it doesn't have a session? And how can I get mplayer (or any program run from boot scripts) to work with other programs (like lircd)?

View 1 Replies View Related

Ubuntu :: Get Root Script To Run A Command As Normal User?

Jun 8, 2010

Because I have a flaky wireless device, I occasionally get a hung connection and this script gets things running again in just a few seconds except obviously the boldfaced item, as it still tries to run in the root directory and gives errors:

Configuration file "/root/.kde/share/config/knetworkmanagerrc" not writable.
Please contact your system administrator.

So I am not sure how to get knetworkmanager to run as me, the user ubuntu in the /home/ubuntu directory

#!/bin/bash
service network-manager stop
sleep 1
killall -9 knetworkmanager

[code]....

View 1 Replies View Related

Ubuntu :: Cant Remember Sudo Command To Enable Root?

Jul 2, 2010

I have done this before and its driving me insane, i just cant remember what command it was and google isnt revealing anything either.i usually type:"sudo command" and it asks my password which is ok, but i have a bunch of commands to issue as root and dont want to have to type sudo each timethis is what I want to see:

View 3 Replies View Related

Ubuntu :: Cannot Use 'sudo' Command Either With Root Or User Passwords

Apr 19, 2010

I was wondering if someone had a logical reason and therefore complete, hopefully that makes total sense, for why when I install Ubuntu I cannot use the 'sudo' command either with root or user passwords. Even if I try to edit the permissions for sudoers, I still recieve an error message that says access is denied and so as the root user on my pc I don't understand why I can't put my name in the sudoers file or use the sudo command with the correct password.

View 9 Replies View Related

Fedora :: You Need To Be Root To Preform This Command?

Mar 21, 2011

I am trying to install Wine 1.2 through the terminal, I type yum -y install wine1.2 cabextract and then hit enter. Then it says "You need to be root to preform this command" What does this mean and how do I become "root?"

View 3 Replies View Related

Fedora :: Run A Root Command From Script?

Feb 15, 2009

I am playing about with Fedora10 installed in VirtualBox on a Fedora9 x86_64 system. To mount a shared folder I need to run a command as root, which works OK, if done the right way. I thought it might be simpler to do it via a shell script, but that doesn't work and neither does the use of sudo, or su. The only way I have managed to get it to work without error is to use 'su -' Here is the response I got from the terminal...

[terry@localhost ~]$ sudo mount -t vboxsf -o uid=terry ShareVM /home/terry/ShareVM
/sbin/mount.vboxsf: mounting failed with the error: Protocol error
[terry@localhost ~]$ su

[code]...

here is the script that doesn't work...

#! /bin/sh
# this script sets up the share directory
sudo mount -t vboxsf -o uid=terry ShareVM /home/terry/ShareVM

View 2 Replies View Related

General :: Run A Command Under Root As Another User?

Jan 8, 2010

So, i've a little question. I have a Linux Red Hat 5.1 System wich has a programm that needs to be started as a user -> usera .When i reboot the server, how can i make it possible to run a command in the shell as usera user?Someone told me, that this is not possible to make an autostart entry because this works only with the root account?!What i want its simple.- Command -> startprg need's to be started as user usera automatically after an automated reboot of the red hat linux

View 4 Replies View Related

General :: Run Command As Root On Startup?

May 14, 2011

As I tried to explain on the title, what i need is to run this command "NetworkManager --no-daemon" as root every time I start my arch+gnome so that the nm-applet would show on the panel.I need to know a way to do this automaticaly each time I start my pc

View 6 Replies View Related

Ubuntu :: What The Diffent - Root User And Susdo In Command Line

Jan 4, 2010

Why we have to log in as root user some times while we can use sudo in command line ,is it diffrent , does sudo dont have all access and all permessions? i am really lost , i know little of alot of things in ubuntu ,but still missong alot of circles to make the complate picture.

View 8 Replies View Related

Ubuntu :: Short Specification Of Root Director For Copy Command

Jan 18, 2011

I would like to copy a file from some random folder and send to a "Test" folder in root directory. But I havn't found how to specify the root directory without using ../ until i reach the root directory.i.e. suppose I'm in my random folder where I want to copy my file sudo cp somefile.txt (root???)/Test

what do i put for root?Just as additional explanation, if I have a Test folder in my home directory that i wanted to transfer to, then i could simply do cp somefile.txt $HOME/Test.

View 2 Replies View Related

Ubuntu Servers :: How To Enter In Root Mod

Jan 16, 2010

i have ubuntu server 9.1 and i login as admin user ,but i need to login as root how? so i can change some configration files

View 3 Replies View Related

Ubuntu Servers :: Cron For Root Does Not Run

Jan 28, 2010

Cron for root does not run,it's 8.04LTS ubuntu server,however Cron runs for other users,Can anyone help?i've checked many times that i have the right syntax.

View 9 Replies View Related

Ubuntu Servers :: Take Apache2 Away From Root?

Feb 4, 2010

I think my apache2 is owned and running as root. I don't know if I installed it like a noob a while ago but I would like to secure it now especially since I just figured out how setup virtual hosts and I may want to eventually let people host sites on my server and I obviously don't want to have to give them root access. How can I confirm that apache2 is running as root and how do I take it away from the root user?

View 6 Replies View Related

Ubuntu Servers :: Only Root Can Write To /tmp

Mar 2, 2010

8.04 64bit LTS no gui loaded Only the root user can write to /tmp. I tried to create a cron job for a user and received an error

Code:

crontab -e
no crontab file for ed - using an empty one
/tmp/crontab.SCQ30O: Permission denied
Creation of temporary crontab file failed - aborting

Then I tried a simple touch /tmp/test1 and it failed with a 'touch: cannot touch `/tmp/test1': Permission denied I tried the Windows fix and rebooted, no change. Only root can write to tmp. This may sound lame but... using ls /tmp show reversed video (highlighted blue on green) on the servers the the users have access to, just plain blue on the 'broke' one. I did a sudo chmod a+w /tmp but do not know if that was a smart thing to do or not...

View 2 Replies View Related

Ubuntu Servers :: 9.04 - How To Access Root (No GUI)

Jul 15, 2010

I am a Newbie to Server platform. Just installed Ubuntu 9.04 server, As my Lappy not supporting OEL 4. I was shocked to see that there is no GUI. Anyhow, in that it is showing to Login. I enter the Username and password which was created during Installation on Ubuntu server. It was fine. How to goto Root?
I typed su - root and entered password
Says Authentication failure.
How can I overcome this? While Installation where ever it asks for a password I use the same one.

View 1 Replies View Related

Ubuntu Servers :: FTP Without The Root Account?

Mar 3, 2011

I try to use FTP to put new files and catalogs on my server and I always run into problems that I have not the right to create catalogs and files in the named catalogs and so on, it is very annoying.Is there a way around this problem or do I have to activate root account to not run into these problems all the time? I have worked with different UNIX-versions and variants for the last 15 years at least and have always had access to root account, why is it so dangerous to have access to root account in ubuntu?

View 3 Replies View Related

Ubuntu Servers :: FTP To /var/www Owned By Root?

Jul 3, 2011

I have a ubuntu lamp server setup and working. The issue I am trying to overcome is the the /var/www directory is owned by root. I am trying to remotely upload content from my development machine using FTP. I don't know what the "right" way to setup remote ftp to the /var/www directory.I don't want to introduce serious security holes but, I do want to be able to just click publish from my dev box. A tutorial would be great if anyone knows of a good one. If not just letting me know what I am supposed to do.

View 3 Replies View Related

SUSE :: Enabling The Locate Command If Not The Root?

Apr 26, 2010

Is there a way of enabling the locate command if you're not the root?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved