Ubuntu Servers :: Running Script As Root On Startup?

Jul 29, 2010

I am trying to run my script at startup but it doesn't run the script as root. Do I need to add my root username and password in the script, or somewhere else?

View 1 Replies


ADVERTISEMENT

General :: Running A Script At Startup As Root?

Apr 14, 2010

Is there a way I can run 'completely' one of my script when ubuntu's desktop appears no matter if root , administrator, desktop user or an unprivileged user logged in?

What does the script do? The script mounts a partition, looks for a file in that partition and finally on the basis of that file a decision of copying a partition to another partition is made. That copying is done via

[Code]...

View 5 Replies View Related

Red Hat / Fedora :: Running A Script As Root On System Startup?

Apr 29, 2009

There is a script that I want to run as root when the machine boots up(which starts the Redhat Certificate System services). The problem I have is if I put this on rc.local it wont run because I havent logged in as root. Is there a way that I can run this without logging in as root at the machine startup?

View 5 Replies View Related

General :: Running Shell Program On Startup As Root In Terminal

Aug 4, 2010

I am running Linux Mint 9..I play xbox live and run it through my laptops wireless network connection so i dont have to pay 100 dollars for the usb wireless adapter for the xbox. In windows 7 this is easy to configure so that when i turn my laptop on and then xbox it automatically connects.

View 10 Replies View Related

Ubuntu Servers :: 11.04 (Headless) Running Into Kernel Panic On Startup

Apr 29, 2011

I'm new to ubuntu and I wanted to setup a headless server (Asus Hummingbird, 2GB RAM, Ubuntu Server 11.04). The installation was successful but: After I tried starting my server without any connected monitor, the server did not start -> I run into a kernel panic (if I connect the monitor after a while I can see the messages on the screen, Keyboard lights flash...). What do I have to do to get the machine running without any monitor? My second problem is, that the Network is always powered down on system power down -> no WOL is possible. Is there an easy way of enabling the WOL function? I tried several things from different tutorials but nothing worked...

View 3 Replies View Related

Ubuntu Security :: Giving Root Permission To An Application But Without Running It As Root?

Jan 20, 2011

want to run VirtualBox with root permissions. Trouble is that only when run as root i can access attached USB devices inside of a virtual machine, otherwise, these a greyed out).Now running VirtualBox as a root user also changes the configuration folders, making all my virtual machines already defined disappear. I also don't want to copy all to the root configuration folders. Is there a way to give the VirtualBox root permissions but without actually running the application as a root user. Is it possible to do without changing the permissions of the non-root user, i.e. i don't want my user to have all root permissions, due to security considerations.

View 1 Replies View Related

Programming :: Suid Disabled From Running All Scripts Or Just From Running Them As Root ?

Sep 4, 2009

Is suid disabled from running all home made bash scripts or just from running them as root or:

Who would know for sure.

I googled several combinations of Mandriva Linux how-to suid disabled setUID etc... so far all I found was "many distributions are disabling suid for security reasons" nothing specific.

View 2 Replies View Related

Red Hat :: Running IPmonitor To Monitor The Disk Usage On Our Servers - Running Df -h

Mar 19, 2010

We are running IPmonitor to monitor the disk usage on our Linux servers. It does not seem to coincide with what is reported when running df -h. For example on a Red Hat 5.3 server - our IPmonitor shows that 85% is used on the /usr partition, however when I do a df -h on the server it shows that 91% is used. Why there would be a discrepancy? IPmonitor uses SNMP.

View 5 Replies View Related

Ubuntu :: 9.10 Not Running Startup Scripts

Jun 8, 2010

I've installed ssh, as well as a script of my own, in /etc/init.d, and I've added both of them to the startup sequence (I've tried both the "rcconf" graphical utility, and "update-rc.d"). The installation utilities seem to be working just fine and report success, and everything seems to be where it should be, but on reboot, my startup scripts don't start up.

I have these scripts running on MANY machines withOUT the GDM/Gnome Desktop running. On this ONE machine, though, I have Gnome running.

Is there some fundamental difference between the GUI Desktop's startup sequence and the text-mode-only startup sequence?

View 4 Replies View Related

Ubuntu :: 10.04 Startup Scripts Not Running?

Jul 21, 2010

I have just installed a fresh Ubuntu 10.04 x64 installation. I have a script that I am added manually that is not starting on startup like it should, but I also have 2 normal startup scripts that are not running either. Apache2 and mt-daapd are 2 applications that I installed with sudo apt-get install apache2 mt-daapd. Neither application is starting during bootup. I tried making sure there were in the rc.d by using update-rc.d but both said that they already existed. Another script (mount_data) I made myself also has been added and is executable like it should be that isn't running at bootup.

View 9 Replies View Related

Ubuntu :: Bmcapture Using 100% CPU Running On Startup

Nov 7, 2010

I noticed my computer seemed to be running excessively noisily, and upon checking into System Monitor, I noticed that my CPU was being held constantly at 100%. None of the processes listed on the process tab seemed t be responsible, but I found this thread which gave me the 'top' command.

Running it, I found a process running as root called 'bmcapture' that was responsible for the CPU use. Trying to 'kill' it failed; using 'sudo kill' gave me no error messages, but the process continued to run. This carried on through a restart.

I then proceeded to shut the computer down and leave it off for a minute. When I booted up again, the CPU was still running at full, and using 'top' I determined the same process was responsible; however, 'sudo kill' successfully killed it this time, with apparently no adverse effects.

My question is if anyone has any information about what 'bmcapture' is, whether its harmful (aside from the obvious issue of it using full CPU) or malicious, and if there's any way to stop it running on startup, because as it is I'm having to manually 'sudo kill' it every time I turn my computer on to stop it eating my CPU alive.

View 3 Replies View Related

Ubuntu :: 10.04 - Make MySQL Running On Startup?

May 3, 2010

I run Ubuntu 10.04. For some reason, MySQL won't start on startup. How do I make it run on startup? I installed it by installing LAMP using tasksel and did everything according to: [URL]. Also, I have another problem: When I try to start/stop/restart mysql in the terminal, the terminal will not give me any prompts after entering the command. E.g., after entering "sudo service mysql start", nothing will happen. Even after waiting for 30min, nothing happens.

View 9 Replies View Related

Ubuntu :: Running An Application Or Script At Startup

Oct 13, 2010

I want to launch qiv upon startup to show a series of photos in slideshow fashion (this will be the sole purpose of this particular laptop). I tried adding the command via System->Preferences->Startup Applications but this does not produce the desired result. In fact, the slide show doesn't even start.

View 5 Replies View Related

Ubuntu :: Gnunetd Process Running At Startup?

Dec 5, 2010

I installed Gnunet (a secure P2P program) on Ubuntu 10.10 using Ubuntu software centre but had difficulties getting it to work so removed it. However, the gnunetd process loads at startup. It is only visible when typing 'top' in the console and not in the system monitor list of processes.gnunetd --version tells me that it is 0.8.1b sudo apt-get remove gnunetd tells me 'unable to locate package' why the process loads and how to remove it? I can kill it in the console but would like a way of getting rid of it permanently.

View 2 Replies View Related

Ubuntu :: Conky Script Not Running At Startup

Feb 1, 2011

I am trying to run a script that runs at startup. I have followed directions found at this Website: [URL]. Everything works except the script which consists of two lines.

#!/bin/bash
sleep 30 && conky ;
I changed the file permissions to be executed and named it .conky-startup.sh.

Then I went to System>Preferences>Startup Applications and created a new entry that points to my script file. When I restarted my system, Conky didn't start. If I try to run the file from Nautilus or the Terminal, nothing happens.

View 6 Replies View Related

Ubuntu :: Startup Applications Not Running Anymore?

Apr 13, 2011

Im not sure why they aren't working - but my startup applications are not running at boot. They run fine from terminal.

I have a startup application for Xchat and the command is just xchat (which works fine from terminal) but it isn't loading at? - I have checked and im not running in safe mode or anything like that - just the standard ubuntu desktop).

Unrelated Question:

Is there a 'global' i.p address I can use to represent all devices on my LAN - so I can mass whitelist in firestarter?

View 5 Replies View Related

Ubuntu :: Failure To Mount Root Device On Startup

Jan 14, 2010

Recently installed some minor software, some games and Ubuntu Tweak, I am not sure if that's what caused this issue or not. I shutdown after the installations, then when I tried to start back up the small, white ubuntu logo appears just like it normally does, then it just goes to a black screen. I turned off the computer and restarted in (Recovery Mode). It goes about its thing then it says it is waiting for root file system, then after about 30 seconds it says "Gave up waiting for Root File System" how to fix this without reinstalling?

View 2 Replies View Related

Ubuntu :: Root Script At Startup For Power Management

Apr 25, 2011

I'm trying to enable a few of the powertop suggestions at boot. My plan had been to put the changes in /etc/rc.local, but it appears possible that some of the changes are happening too early in the boot process to take effect. Specifically

echo 1 > /sys/devices/system/cpu/sched_mc_power_savings and cd /sys/devices; find . -name link_power_management_policy -print0|xargs --null -n 1 -I{} -t bash -c "echo "min_power" > "{}""

both work if run with sudo permissions after I've logged in. where to put these such that they'll take effect on boot? Or can I put a sleep in the rc.local?

View 4 Replies View Related

Ubuntu :: Running Evolution In The Background At System Startup?

Jul 3, 2010

How do I make Evolution run at system start-up in the background and check my in-box?

View 1 Replies View Related

Ubuntu :: Endless Script Running At Startup Safe?

Aug 7, 2010

Sometimes I need remotely connect to my computer, but my router gains IP address dynamically. So I wrote simple script which gains my router IP and send me email:

Code:
#!/bin/bash
function send_mail {
echo $1 | mutt -s "New IP" myemail.com
}
old_ip=
while true; do
new_ip=`wget www.whatismyip.com/automation/n09230945.asp -O - -q`
if [ -n "$new_ip" ] && [ "$new_ip" != "$old_ip" ];
then
old_ip=$new_ip
send_mail "IP changed, sending new IP: $new_ip"
fi
sleep 5m
done

I need it to run at system startup. When I'm adding it to .bash_profile bash path/resolveIP & I'm not getting any mail. In case of bash path/resolveIP (without &) I'm getting mail, but I guess it will never get to the next command in .bash_profile. So I put my script in /etc/init.d directory, but I don't know is it okay to have endless script there????

View 1 Replies View Related

Software :: Change A Process Running In Root-user To Non-root User ?

Oct 28, 2009

Is It possible to change a process running in root-user to non-root-user by setting suid / uid / euid / gid etc... I so please instruct how, when and wat to set in order to change a process running in root-user to non-root user

View 4 Replies View Related

Debian :: Startup Script As Root?

Sep 5, 2010

I need to run a few simple commands at the startup of my computer. (need to run as root if possible without needing to enter login's infos)

Basicly, the commands are about the same line, so i'll just post one: screen -S Name1 -L -d -m php -f /root/mainloop.php config.php

View 3 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

General :: Which Are Root's Startup Files

Sep 21, 2010

I was going through a server hardening manual.t some interval it was mentioned that there should not be any alias for commands defined in roots startup files .

View 1 Replies View Related

Fedora :: Running A Command At Startup?

Mar 12, 2010

I'm trying to get synergy+ to work on Fedora 12 on start up. I'd like to be able to log into Fedora using my keyboard and mouse through synergy+. I've tried adding the line
Code:synergyc <localipaddress> at the end of the /etc/rc.local file but I still can't use my keyboard and mouse to log in. I've also tried adding the lineCode:su <username> -c "synergyc <localipaddress>" to /etc/rc.local but it still doesn't work. Just to clarify, I do have synergy+ working on Fedora but I need to start it after logging in on each reboot by switching my keyboard over to the other computer.

View 2 Replies View Related

General :: Running A Program On Startup?

Aug 9, 2011

I have a program I have made, and I would like it to run as soon as the system is finished booting. I am using Ubuntu Mini Remix to recreate a LiveCD/USB stick. After booting, it drops me to a command line where I can enter "sudo qct" and it will run my program (which is called qct, and it has to be run as root).I want this to be automated.Instead of going to a command line, I want it to run the program itself at that point. How would I go about doing this? I have read many tutorials about scripting but I cannot seem to get it to work.

View 11 Replies View Related

Red Hat :: Running A Process Behind The Scenes At Startup?

May 6, 2010

I have not been able to find any information on this, mostly because I am sure I am searching for the wrong terms. Let me explain what it is I need to do.I have a timeclock process that needs to be running all the time on my Red Hat server. Right now, I manually start the process from terminal:Code:# ./timeclockThis runs the process inside the terminal. The only problem is that if I close the terminal by accident, the timeclock stops working. This is all well and good for now, until I get more timeclocks.Then I will need to have one terminal open per. What I would like to do is to make this process run at start up, and run behind the scenes (no terminal). At the same time, I need to be able to re-run the process (again, hopefully behind the scenes) in case the timeclock goes offline or the process crashes.I know very basic things about Linux administration, and I know it is possible to do this (as there are processes now setup by someone else that do this), I just do not know how. EDIT: An idea I had would be to make the script run every minute, checking to see if the process is already running, and if it is not, then to start it. That way it would automatically correct itself if it went offline.

View 3 Replies View Related

Ubuntu :: CodeWarrior Startup Crash - Getting Error On Running Cwide

Aug 5, 2010

I am a Ubuntu 10.4 Linux User (32 bits)! I installed the CodeWarrior Development Studio v10. The installation was OK. However, I am getting an error when I run cwide (see below). The problem seems to be in the library libpemicro_jloaderh.so.

A fatal error has been detected by the Java Runtime Environment: SIGSEGV (0xb) at pc=0xb17fb230, pid=2450, tid=2999868272 JRE version: 6.0_20-b02 Java VM: Java HotSpot(TM) Client VM (16.3-b01 mixed mode, sharing linux-x86 ) Problematic frame: C libpemicro_jloaderh.so+0x137230]

An error report file with more information is saved as: /home/alex/hs_err_pid2450.log If you would like to submit a bug report, visit: [URL]... The crash happened outside the Java Virtual Machine in native code. See problematic frame for where to report the bug.

View 3 Replies View Related

Ubuntu Servers :: Redirecting Ports For Running Two Web Servers

Sep 5, 2010

I am running apache2 and tornado web servers on the same server with one ip address.

The apache2 listens on port 80. Tornado listens on port 8888. I want to redirect requests from a specific ip port 80 to port 8888. I don't have the ability to change the port request on the device. It wants is looking for a web server on port 80.

Any other web server request should go to the apache.

I tried adding the following to /etc/ufw/before.rules

When I run iptables -L it doesn't appear. I have disabled and enabled ufw with no help.

View 3 Replies View Related

Fedora :: Running XScreenSaver Daemon On Startup

Jan 23, 2010

I'm having some problems getting my screensaver to work automatically.If I start the screensaver config program then it gives me this message: "The XScreenSaver daemon doesn't seem to be running on display ":0.0". Launch it now?" If I click yes then my screensaver works exactly as expected.How can I get the XScreenSaver daemon to start automatically?

View 3 Replies View Related







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