*nix Thread, auto starting lampp service with password in Technical; hi
when we reboot our ubuntu server we have to manually run the following to start the web service.
sudo ...
-
2nd March 2009, 09:21 PM #1 auto starting lampp service with password
hi
when we reboot our ubuntu server we have to manually run the following to start the web service.
sudo /opt/lampp/lampp start
followed by the password.
Can someone tell me how to get this to start the service with the password to run the service as ubuntu boots up like you can with a windows service.
Thanks
Mark
-
-
IDG Tech News
-
2nd March 2009, 11:10 PM #2 Edit the file /etc/init.d/rc.local and append the line:
Code:
/opt/lampp/lampp start
You need to edit it as root, if that doesn't mean anything to you try sudo gedit /etc/init.d/rc.local
-
-
2nd March 2009, 11:14 PM #3 you cant get an action to run in "sudo" without a password.
i assume lampp is xmapp for linux? because apache/mysql can be set as system services if they are installed manually.
its been a while scince i used ubuntu for anything but doesnt it have an init script? which has a list of things to be run as it enters each run level.
-
-
2nd March 2009, 11:22 PM #4 
Originally Posted by
Arcath
you cant get an action to run in "sudo" without a password.
/etc/init.d/rc.local is run during init as root, so this is irrelevant.
i assume lampp is xmapp for linux? because apache/mysql can be set as system services if they are installed manually.
The point of lampp is that you don't have to install them manually, everything gets put in this black box that you don't have to worry about. I'm not advocating this approach, but for simplicity and an easy intro it's an acceptable one.
its been a while scince i used ubuntu for anything but doesnt it have an init script? which has a list of things to be run as it enters each run level.
/opt/lampp/lampp is the init script, and that's why you call it from rc.local in the init system.
-
-
2nd March 2009, 11:36 PM #5 
Originally Posted by
Arcath
you cant get an action to run in "sudo" without a password.
Technically you should be able to, by editing /etc/sudoers to something like:
Code:
jsmith ALL=NOPASSWD:/opt/lampp/lampp
Meaning jsmith can run /opt/lampp/lampp without having to enter a password.
-
-
2nd March 2009, 11:50 PM #6 
Originally Posted by
webman
Technically you should be able to, by editing /etc/sudoers to something like:
True, but I didn't mention it because it's not a recommended thing, certainly not if you're unfamiliar with the consequences.
-
SHARE:
Similar Threads
-
By plexer in forum EduGeek Self Service Password Reset
Replies: 271
Last Post: 15th November 2011, 01:40 PM
-
Replies: 14
Last Post: 30th April 2009, 04:10 PM
-
Replies: 3
Last Post: 14th August 2008, 12:05 PM
-
By MrsGrinch in forum Network and Classroom Management
Replies: 3
Last Post: 26th March 2008, 05:24 PM
-
By indiegirl in forum Windows
Replies: 8
Last Post: 7th November 2005, 04:46 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules