Restart apache service without password prompt?
location: linuxquestions.com - date: July 6, 2004
I'm looking for a way to restart the Apache service on a webserver without getting prompted for the root password. Even better, I'd like to set up a little script so I can place some shortcuts on the desktop to start, stop, and restart the service automatically. Of course, I'm not having much luck in doing this.
I'd imagine that this sort of thing wasn't put in on purpose, but I'm hoping someone knows of a way to make it work. I'm running on Fedora Core 1 currently. This system is being used on an internal network by a few other people only. However, every so often the Apache service needs to be restarted, and it's a hassle to have to come and find me to do it each time, so I'm hoping to set up some launchers to do it for them. I'm just hoping someone can help me find a way to get this set up.
Thanks in advance.
[SOLVED] scp/ssh to cygwin server from linux server without password prompt...
location: linuxquestions.com - date: May 16, 2011
I've seen how to do this from native linux native server to linux native server. Not a problem. My question has to do with ssh/scp exchange of key exchange between a windows cygwin server and a linux server.
There seems to be no /home/root/.. to hold the key exchange files. I've tried this between a cygwin server with a /home/administrator/.. subdirectory and the /root subdirectory on the linux server. Is this how I should do this?
Someone else set this up between these two servers earlier but forgot to document how it was done in his notes.
I don't want to break the existing systems by setting up the key generation incorrectly on the functioning pair's of servers.
Help/validation would be appreciated. Thanks!
installing mysql without password prompt
location: ubuntuforums.com - date: July 20, 2009
I am using the following command to install mysql server and it prompts me for a password:
apt-get -y install mysql-server
I am running this from a batch script and am looking for a way to suppress the password prompt. Any suggestions?
install mysql on ubuntu without password prompt
location: linuxexchange.com - date: October 12, 2011
how to write a script to install mysql server on ubuntu?.
sudo apt-get install mysql will install and ask for password for this how to assing password in script.
sudo apt-get install mysql # To install mysql server
# How to write script for assigning password to mysql root user
Install MySQL on Ubuntu Natty without password prompt and using shell variable as password
location: linuxexchange.com - date: July 12, 2012
I'm trying to install MySQL on Ubuntu Natty from a shell script. However, I keep running into one major issue: when I try to define the password outside of the shell script.
Below is the code to my shell script (which I have saved in /etc/init.d/install_mysql:
echo mysql-server-5.1 mysql-server/root_password password $dbpass | debconf-set-selections
echo mysql-server-5.1 mysql-server/root_password_again password $dbpass | debconf-set-selections
apt-get -y install mysql-server
So what I enter in the terminal is:
chmod +x /etc/init.d/install_mysql
MySQL installs, but it installs without a password, so I can just do something like mysql -uroot to access mysql (which I don't want).
The funny thing is if I put the password in the shell script as regular text, it works ok. So if I my install script is as follows, everything works (i.e. I must specify a password to access mysql):
SCP from one server to another without password prompt
- date: June 2, 2011
What is the best way of doing SCP from one box to the other without prompting for password?
There are two servers:
Server A (10.152.2.10): /home/oracle/export/files.txt
Server B (10.152.2.11): /home/oracle/import/
If I want to transfer the files using scp from server A to server B without being prompted to enter a password
[running this from Server A, /home/oracle/export/]
scp files.txt [email protected]
This would prompt me for a password upon entering the command.
I understand that a keygen is required to be generated and copied to Server A. Thus [at server A]:
ssh-keygen -t rsa
This gives me two files stored in /home/oracle/.ssh:
1. Am I supposed to copy the two files (id_rsa, id_rsa.pub) over into server B /home/oracle/.ssh ?
While doing some google search on this, some articles mentioned about appending/concatenating this to authorized_keys.
2. Am I supposed to create this file on my own?
I seem to be confused on what is
restart apache service automatically using cron 12AM daily
location: linuxexchange.com - date: January 1, 1970
I have a CentOs setup in test server.
I wanna to run a cron job (the cron needs to run apache server at 12AM) daily.
My cron.daily fodler is located in /etc/cron.daily
Please let me know the steps how to implement this.
Usually I use to restart the apache service using the below command:
service httpd restart
I wanna to do restart apache service automatically using cron 12AM daily.
Thanks in advance.
Run a .desktop as root without password prompt
location: linuxquestions.com - date: July 26, 2005
I'm setting up a Mandrake 10 computer for my grandmother. Unfortunately she's stuck with dialup - but fortunately her Dialup ISP supports linux and I got their client up and running. There's only one problem - in order to talk to the modem, the shell script that runs the dialer client must be run as root, as well as running ifdown to actually hang up. Now, as it is I have the desktop shortcut set to Run as Root - but this prompts me for a password. (It's in KDE.) I've made the root password nothing, but it still asks. I'de rather not make my grandmother have to click through a bunch of root login screens to sign on and off - so far I only can think of three options - none of which I know the feasability of.
1) Somehow make the desktop icon automatically provide the root password. I'de make a shortcut to ifdown ppp0 as well using the same idea so there'd be no confusion.
2) Modify the shell script that runs the client to SU in as root first, and again somehow provide the password,
su authentication failure without password prompt
location: linuxquestions.com - date: January 11, 2011
I have a strange behaviour on a Slackware 13.1 box:
loading php module without restart apache
location: linuxquestions.com - date: September 23, 2010
I need to load php module without restart/reload apache, is there a way to do that, php has its option to load zend extension using '-z',
php -z <filename>
is there anyway because I need to load php module in runtime, that I don't want to loose the live running session.
Page: 1 2 3 4 5 6 7 8 9 10