The tag has no wiki summary.

learn more… | top users | synonyms

4
votes
3answers
11k views

Execute script from rc.local as user instead of root

I want to execute a script every time my server start up. The problem is that I need to be a certain user to execute the script, if I try to do it as root it cant find certain packages (such as ruby). ...
4
votes
2answers
106 views

OK to modify HKLM\Software\Policies and HKCU\SOFTWARE\Policies on a domain?

Background: I have a domain (2003 Functional Level) with a mix of Windows XP and Windows 7 clients. We have been using Group Policy to manage our workstations. Now, I am in a situation I need to ...
4
votes
2answers
1k views

Exactly HOW are machine start-up Group Policies processed and what is required?

We have Server 2008 R2 and Windows 7 Enterprise. I'm asking this because we have several hundred laptops and netbooks at our organization. We do'nt have a NAC or a RADIUS server so all the wireless ...
3
votes
1answer
258 views

View User's current logon script without domain admin rights

Is there a way to view which logon script is running for an AD user without having domain admin rights. I've tried gpresult and it isn't displaying any login/logoff scripts, but I believe the script ...
3
votes
2answers
6k views

How to set Firefox as default browser using a script?

I have windows server 2008 r2 enterprise and windows 7 machines. I have firefox 4.0.1 currently deploying through group policy to the windows 7 machines. I know how to create a login script. I have ...
3
votes
3answers
4k views

Windows 2008 startup script will not run?

I am trying to get a very simple batch script to run when my Windows 2008 Server (R2) system starts up. I have added the script to the "Startup Scripts" in the local group policy by running ...
3
votes
2answers
100 views

Windows 2003 DC GPO Asking for Password on Startup

Simple answer I am sure...I an trying to deploy Office 2010 to clients via the GPO startup script but am having issues. Soon as the computer starts, it prepares network connections then goes on to ...
3
votes
2answers
37 views

Execution order of runlevel scripts

My runlevel 0 scripts in /etc/rc0.d, which should be executed when stopping are for example K05foo -> ... K10bar -> ... K80baz -> ... S10somemore -> ... S90halt -> ... Is it correct, that the ...
2
votes
4answers
832 views

Best way to tag/identify processes for killing them later?

In my linux startup scripts, when I start a process like (openvpn used for this example, but the question is general to any process); openvpn --config /etc/myserver.conf what is the best way to ...
2
votes
2answers
705 views

Execute specific bash script on Gentoo Linux startup

I own a VDS running Gentoo Linux and I am curious about how to execute specific bash script at startup of my VDS. I just want to startup apache2 at boot time and run two thin instances.
2
votes
1answer
970 views

No such file or directory error when trying to execute startup script in Debian

Very new to Debian (Raspbian), and I'm struggling on this one for a few days. I have a startup script that I want to execute at startup. I have executed the following commands, to make the script ...
2
votes
2answers
890 views

Uninstalling software via startup script in AD

There is an antivirus package that exists on most of our machines that needs to be removed. I did not deploy this software and it was not deployed via GPO - it was installed manually by the previous ...
2
votes
2answers
7k views

How can I set environment variables when I ssh login to my Unix box by passing custom arguments?

I want to pass some parameters as part of my ssh connection that I can use to set custom variables for my login to do certain things or run certain scripts. How do you do this running Putty on Windows ...
2
votes
3answers
294 views

how (linux kernel) network modules gets loaded without modprobe.conf

how (linux kernel) network modules gets loaded without modprobe.conf I have fedora distribution installed and can see e1000e module loaded automatically in the system. Is there a configuration which ...
2
votes
1answer
107 views

Deploy multiple office products using startup scripts

I need to deploy MS Visio 2010 and MS Project 2010 to users that belong to a specific security group. Most of the time users will only need one or the other, but on occasion they will need both. The ...
2
votes
1answer
228 views

startup script not executing on amazon linux

i'm trying to forward syslog to logentries.com which requires a line added to /etc/rsyslog.conf , so far so good. however, i'm running on amazon elastic beanstalk and have 3 environments ...
2
votes
1answer
914 views

How do I register a user logon script using PowerShell?

My company manufactures a medical instrument and the software that runs on it. Under the hood, it's got a PC running Windows 7. I'm developing a process so that untrained technicians can configure the ...
2
votes
3answers
208 views

Start Linux scripts sequentially with blocking

I want to create a script to start two different scripts in sequence. The first script start an application server, which although the process has started (and i'm back at the prompt), it will only ...
2
votes
1answer
436 views

Starting a service only after another one is completely started (on CentOS)

I have installed on my CentOS server postgresql service and another one called netnfork. The 'netnfork' service starts only after postgresql starts. netnfork init script: #!/bin/sh # # netnfork init ...
2
votes
0answers
263 views

Is it possible to embed TCL directly into a Cisco startup-config?

Is it possible to embed TCL directly into a Cisco startup-config? From the (lack of) information I'm finding, it doesn't look do-able. I have a tool that generates Cisco configurations based on some ...
1
vote
4answers
2k views

Windows : Only Run Install Startup Script if Directory Doesn't Exist

I want to install some programs via a startup script, but once it has run for the first time it'll just reinstall wasting time and overwriting. It's a Server 2008 R2. Somewhere I found this IF NOT ...
1
vote
4answers
2k views

Filtering GPO's Based on Computer Account Security Group

So, I have a GPO, which runs a quick start up script to delete locally installed IP printers from all machines on our AD domain during computer start up. This works great...the issue appears when we ...
1
vote
4answers
1k views

Can a GPO Startup Script starts a background process and exit immediately?

I have Googled, and not yet found an answer. Scenario: One of my GPOs have a Startup Script that takes a long time to finish. For some reasons, we have to run the scripts synchronously. Naturally, ...
1
vote
5answers
4k views

Ubuntu 9.10: how do I troubleshoot a startup script that doesn't appear to run?

I've created a bash script 'foo'. I've made that script executable with chmod+x and added it the the start-up by running sudo update-rc.d foo defaults 80 Despite that, it doesn't appear to be ...
1
vote
2answers
2k views

Process in rc.local does not seem to run — where to see?

I want to run a process in rc.local (Ubuntu Natty) but I am having trouble determining if it has run. I added /bin/sleep 10 /usr/bin/killall PassengerWatchdog /bin/echo "Killall returned with code ...
1
vote
1answer
350 views

EC2 startup script?

We're using Amazon's 32-bit Linux AMI. What is the best way to automatically run a script after the OS is loaded (not on ssh login, just after it has booted up)?
1
vote
2answers
4k views

Getting Xvfb to start upon booting system in Ubuntu Maverick

I'm trying to get Xvfb to run when the system starts up on Ubuntu 10.10 (Maverick), but it's not working. In /etc/rc.local, I have the following: /root/start_xvfb.sh >> ...
1
vote
2answers
175 views

auto start user(not root user) process on fedora boot

I have a VM running under Fedora OS. That VM has four users lets say(A, B, C, D). That VM has one process running under each user. So when that VM is rebooted, what should I do so that those process ...
1
vote
3answers
266 views

Update saved password for basic authentication using a script

I have a website that uses basic authentication as described on this webpage. Each of the computers I manage have the password saved in their browser. There is only one username and password for ...
1
vote
1answer
429 views

How to change rc.d startup order in FreeBSD?

My question exactly same as this question except I want to change services in FreeBSD. I made some research and I found rcorder command which gives full order of services with below paramaters. ...
1
vote
1answer
497 views

Thin processes not starting after reboot on Ubuntu 12.04

Well, I'm running Ubuntu 12.04.2 and I have Thin installed by gem install thin sudo thin install sudo /usr/sbin/update-rc.d -f thin defaults and I have my configs at /etc/thin. But after system ...
1
vote
1answer
509 views

Running Script on EC2 Boot

I want to mount my EBS volume and start up the Apache/MySQL servers on my EC2 machine, but I can't even get my script to run at startup. I've tried putting it in: /etc/init.d/ /etc/rc.d/rc5.d/ ...
1
vote
2answers
2k views

GPO startup script not copying files

I created a GPO startup script to execute for computers in a specific AD container. The script takes a file from the AD netlogon share and places it on a directory on the computer. Given the right ...
1
vote
2answers
38 views

How do I output the previous logged in IP's during an SSH login to my ubuntu server?

I have Ubuntu 12.04 installed and everytime I log in, I would like to see the previous IP addresses that logged in to my server. How would I go about doing this? I have fail2ban installed already.
1
vote
1answer
72 views

Is it safe to remove the Bash Shell startup files for Samba user accounts?

I'm in the process of setting up Samba shares for a SOHO network and would like to know whether or not it is safe/advisable to remove a Samba user's Bash Shell startup files (i.e. .bash_logout, ...
1
vote
1answer
546 views

Run unison in background on startup?

I'm running Debian 6 64bit. What I'm trying to do is run Unison on startup to constantly monitor files on the LAMP server I have running on my VM and sync that with the VM Shared folder. while true ...
1
vote
1answer
72 views

control which version of PostgreSQL starts

I have three versions of Postgres (8.4, 9.0, 9.1) running on my Ubuntu box. Each version is configured to listen on a different port. When I reboot the machine, only the 9.0 version starts ...
1
vote
1answer
1k views

Group Policy Startup Script Not Working

I have a startup script on my server that is suppose to run at startup and install Office 2010 on my workstation computer however it is not working. Running rsop.msc it shows that the startup script ...
1
vote
2answers
4k views

Group policy startup script needs elevated priviledges

I have a script that I want to run at startup but that requires elevated priviledges. Is there a way of doing this with Group Policy? I tried adding it in as a startup script using GPO but it ...
1
vote
0answers
12 views

How to use input variables within a systemd script? [duplicate]

I'm trying to write a systemd service that both starts at boot time and can be used during a user session using the "sudo systemctl restart" command. However, when using this command I need to be ...
1
vote
0answers
142 views

Reconnect Windows Network Drive after network connection has been established

User uses a piece of software (simple database and front end app) that connects to a database stored on another workstation, by way of mapped drive. This mode of access is supported by the software ...
1
vote
0answers
53 views

Run script when Varnish starts

I'd like to run a script when Varnish starts. This script should execute a webrequest to a webserver (its backend), which then makes sure Varnish's cache gets filled with all pages residing on this ...
1
vote
0answers
314 views

postgres not starting after reboot on ubuntu

I'm not familiar with ubuntu (raring), so could someone help me please: I'm using postgresql 9.1 from apt. It installed the appropriate init script in /etc/init.d/postgresql. I can start the server ...
1
vote
0answers
166 views

Thin configuration doesn't start on boot, but they do on manual start [closed]

I have some thin config files (generated with sudo thin install) which are slightly modified (only paths where they're located). I can start them just fine with /etc/init.d/thin start, but if the ...
1
vote
1answer
406 views

Permanently change hostname of Debian Squeeze virtual server

I have a virtual server running Debian Squeeze. I can change the hostname by running the hostname new.host.name command or by editing /etc/hostname and then running /etc/init.d/hostname.sh, but after ...
1
vote
1answer
172 views

Office 2007 Installer Not Logging When Run During Startup Script

I'm using a startup script to deploy Microsoft Office 2007 Standard. It's not working quite right and I'm trying to find logging information for it. Unfortunately, no log is being generated by setup. ...
0
votes
1answer
54 views

How do I make a program start up automatically on reboot?

I am currently renting a VPS that is running CentOS 6.5. I am using it to run a basic forum site, and obviously, I need a web server and MySQL to power that. I have chosen Apache for my web server, ...
0
votes
1answer
94 views

Providing network drive access to a windows service

I have a windows service, which requires access to a network drive. As Windows Service does not perform interactive logon, it's not possible to use mapped drive from active directory user logon ...
0
votes
2answers
186 views

Can memcache invoke a script to reload itself after startup on Ubuntu?

Since memcache stores everything in ram, it will lose its store after a node recovers from failure. Does memcache offer a hook to invoke a script after it starts up? We want that script to do ...
0
votes
2answers
424 views

LSB confirm startup script won't start apache tomcat on ubuntu

I want to start my tomcat server automatically on startup. Therefore I retrieved a simple LSB conform script from the net and modified it to my needs. This is the script: # Provide logging functions ...