CentOS 5 Server :: Writing Init Script For Wrapper - Start As Root Run By User

Nov 27, 2009

I have installed the Apache Directory Server (ApacheDS) Now I need a iniscript that startining the App as Root, so that it can use the Port 389. After them a unprivileged User (apachds) should run the Service. The same solution I am searching for Glassfish. What can I use for them? RHEL and compatibles doesn't have a start-stop-daemon like Debian.

View 3 Replies


ADVERTISEMENT

CentOS 5 :: Flash Does Not Start In Root But Does For User?

Aug 22, 2009

As root, firefox shows that no plugins are installed - does not see flash-plug. For the other user the flash-plugin is there however it only load for the first instance and then will only start again if I reload the page.

Yes I am new to Linux - I have just installed Centos 5.3 and via yum install adobe flash-plugin - lots of searching on the web to get this far.

View 3 Replies View Related

General :: Non Root User Writing To USB

Sep 7, 2010

Basically I have a USB flash drive currently formatted under vfat. I can log in as root and the system automatically picks it up and automounts the drive successfully. What needs to happen is that a non-root user needs to be able write to this device while root has mounted this device. Due to other program constraints, I can not mount the device using another user so I have to do it with root.

View 9 Replies View Related

Server :: Writing Debian Init Script For Process That Has No Syslog Integration?

May 18, 2011

I have inherited ownership of a Debian server process that logs its error message to stdout/stderr. Currently its initscript has lines like:

start-stop-daemon [options] --exec $DAEMON -- $DAEMON_ARGS < /dev/null 2>&1 | logger $LOG_OPTIONS 2> /dev/null &

I have tried to abstract as much of that away as possible. The options specify a pid file, to make a pid file. A subsequent line tries to establish whether the process is up, though I think several conditions are not checked for. This script seems pretty ropey to me. I am trying to start again with the lsb-base one in /etc/init.d/skeleton though that is going to require a lot of modification. get the code change to use the syslog API however that is out of the question at least for now.

1.) Create a named pipe
2.) Start up a logger daemon that reads from the named pipe
3.) start up the server process that writes to the named pipe

It would be ideal for this if start-stop-daemon offered options to specify where the IO of the daemon process should be redirected to. However I am not about to offer to adopt that package (with ~400 bugs) so I doubt that will happen. Trying to specify the redirection on the command line does not work. In the case of the logger daemon start-stop-daemon seems to hang on the system call. In the case of the server process the pipe gets closed when start-stop-daemon exits, so the logger daemon exits. None of that seems surprising.So what I am doing now is to write simple wrapper scripts for the server and logger processes. Both wrapper scripts have this structure:

1.) sanity check the arguments
2.) exec program [suitable redirection of IO]

Then the start-stop-daemon can call the wrapper scripts as daemons. From my experiments so far this seems to work. However I feel a bit uncomfortable with this. It introduces several new wrapper scripts.I cannot think of any obvious security holes but I suppose race conditions are inevitable.

View 1 Replies View Related

Ubuntu Servers :: Run Init Scripts As Non-root User?

Feb 9, 2011

I wrote a custom init script for a java application. The script resides in /etc/init.d and follows the convention for the init.d scripts. However, the script runs the java process as root. I need these processes to run as a non-root user. Is there a way besides using sudo or su in the script (seems inelegant), to run the script as a specific non-root user? Perhaps using a .conf file in /etc/init or a daemon wrapper? What would the Ubuntu way of doing this be?

View 2 Replies View Related

Red Hat / Fedora :: VirtualBox Init Script For No Root User

Feb 9, 2010

I'm working to make guest OS run as no privileged user. I've found a script made by an Italian guy that should start the guest instance during boot. Unfortunately the script was made for Debian and as I'm not confident with bash, I'm having some difficulties in making it work under RedHat 5.3 launched as root

vbox-ithaca start
vbox-ithaca: line 116: log_daemon_msg: command not found
sudo: VBoxManage startvm ithaca --type vrdp: command not found
vbox-ithaca: line 119: log_end_msg: command not found

these errors to me basically say that those commands aren't in PATH, but I couldn't find them anywhere

[code]...

View 1 Replies View Related

Server :: Start Services Without User Login - Centos 5.5?

Oct 4, 2010

I installed Centos 5.5 on a home PC to be used remotely.

All server daemons work fine but only start if the user is logged in.

How do I set the SSH server to start whenever the PC is turned on, rather than when the user is logged in? I read the chkconfig man page online but couldn't find anything.

Plus I put a script in my startup services to be run whenever the computer boots (I'm guessing when the users logs in). How do I go about setting that to run too whenever the system boots instead?

View 1 Replies View Related

CentOS 5 :: Init Error \ Failed To Mount The Root Filesystem?

Jun 17, 2011

I had a LiveUSB of CentOS 5.5, so I decided the install it.With no installer,I just copied the files to my hard drive.his was in a multi boot with Windows 7, Ubuntu 9.10, and FreeDOS.I updated GRUB2 and it detected CentOS. I loaded my entry and it failed to mount the root filesystem.I took the initrd0 file from the LiveUSB syslinux folder and added that ramdisk to the entry. Now it finds the root filesystem (/dev/sda9 as Ext3).But it fails shortly after loading /sbin/init. It talks about an init error where it says "File not found!!!".The previous lines involved umounting old filesystems, like /dev.

View 4 Replies View Related

Ubuntu Servers :: Server 10.04 Does Not Start Init.d Scripts?

May 17, 2010

I have two ubuntu servers. I have upgraded them to 10.04. Now I have serious problems at startup: iscsitarget and heartbeat scripts do not start all the times I reboot.I have installed monit to try to start iscsitarget and heartbeat and guess what? It does not start too at boot.In one of the two server sometimes it also starts with ethernet cards swapped.

View 2 Replies View Related

Server :: When Start Qmail Seervice It Gives Error#/etc/init.d/qmail Start?

Apr 29, 2011

when i start qmail seervice it gives error#/etc/init.d/qmail startStarting qmail-toaster:

svscansupervise: fatal: unable to acquire pop3/supervise/lock: temporary failure
supervise: fatal: unable to acquire log/supervise/lock: temporary failure
supervise: fatal: unable to acquire log/supervise/lock: temporary failure
supervise: fatal: unable to acquire pop3-ssl/supervise/lock: temporary failure

View 9 Replies View Related

OpenSUSE :: Start VirtualBox With Non Root User

Nov 28, 2010

I want to start VB in headless mode. It is possibe to tell VB to run the VM with a useraccount, but i will asked after his password.
So it is not possible to run it in runnlevel 2 and 3.

View 9 Replies View Related

CentOS 5 Server :: Ventrilo Server Init.d Script?

Oct 3, 2009

I just installed the ventrilo server daemon on CentOS 5.3 and I'm having 2 issues with the init.d script I wrote. Issue 1: the stop command does not work. I suspect due to an issue with where the daemon puts the pid file. Issue 2: chkconfig says that the "service ventrilo does not support chkconfig". The script is below.

#!/bin/bash
# ventrilo server
# Pull in init.d functions
. /etc/rc.d/init.d/functions
VENPATH=/etc/ventrilo
VENBIN=/usr/bin/ventrilo_srv

[Code]...

View 2 Replies View Related

Debian Configuration :: How To Start And Stop Asterisk Service By Non Root User

Aug 25, 2011

I am using debian squeeze server with asterisk 1.6 installed and configured.my problem is non root users need to access the server using ssh and restart asterisk server after making changes in asterisk configuration files.As of now i am giving root username/password for this process (i know it is not at all a good idea) .now how can i create a username and configure it which can only access and modify asterisk configuration files and restart asterisk server without any other privileges.

View 1 Replies View Related

CentOS 5 :: FTP User To Access To Root?

Jul 19, 2011

Hey I have made a user so that he is able to access my ftp files though filezilla.

However he does not have access to the root folder. How can I edit this?

View 2 Replies View Related

Server :: Relational Interface/wrapper Around SQL Database?

May 19, 2011

I'm not a database guru, so be patient with me: Is there some kind of "wrapper" software you can put around an SQL database (MySQL perhaps) that allows you to internally configure database rules on a higher level than the database itself can actually implement? (E.g., "rows in table A can be deleted, but only if there are no related rows in table B and only if column x for the row in table A is in state y.")The idea would be to keep from having to trust this kind of logic to the client programs, while also avoiding the need to write a full fledged server daemon just for your application. The clients submit their SQL insert requests to the wrapper daemon, and the daemon passes them on to the database if they pass a rules table defined for that particular database.

View 3 Replies View Related

Ubuntu Security :: Tcp Wrapper On A Dekstop - No Server Situation?

Mar 30, 2011

I did a NMAP on a 10.4 desktop system. Found tcp wrapper on my system with an open port. Again I do not run a server. etc/host-deny and etc/host-allow contain no active elements. I know tcp wrapper as a great tool to secure a server. Closing the port with ufw gives no result, tcp wrapper still show up.

View 6 Replies View Related

Software :: Possible To Do Public And Private Ftp Server In One Host Without Using Tcp Wrapper?

May 13, 2011

I want to know that it is possible to do public and private ftp server in one host without using tcp wrapper.

View 1 Replies View Related

Server :: Diffrence /etc/init.d And /etc/init.d/rc.d Scripts?

Jul 29, 2010

me the difference between /etc/init.d scripts and /etc/init.d/rc?.d scripts.

View 3 Replies View Related

CentOS 5 :: Access Denied For User 'root'@'localhost'

Jan 27, 2009

I followed this tutorial for setting up my server. Whatever I type into mysql or mysqladmin all I get back is Quote:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

View 1 Replies View Related

CentOS 5 :: Xorg: No Profile For User 'root' Found

Jul 28, 2009

I'm trying to get Xorg running on a Dell 2850.I can't get it to work.I installed xorg-x11-drivers via yum, and used both "Radeon / ati" drivers, including the default vesa.

Here are the main errors (error log file attached):

Could not init font path element unix/:7100, removing from list!
(**) RADEON(0): RADEONSaveScreen(2)
localuser:root being added to access control list
No profile for user 'root' found

[code]...

and at the end it says:

FreeFontPath: FPE "built-ins" refcount is 2, should be 1; fixing.

View 1 Replies View Related

CentOS 5 :: Removing Root SSH Access / Adding New User?

Jul 13, 2010

I am going to remove root access via SSH which seems fine but I don't know how to add a new user, do I have to create a group first or are there existing groups I can add a user to, and does it matter which group I add a user to if I want this user to have root access with sudo?

View 11 Replies View Related

CentOS 5 Server :: DHCPD Doesn't Start - How To Make It Start

Sep 2, 2010

I'm configuring a new Centos 5.5 server in replacement of an old W2K server.The topology of our network is simple : one file/dhcp/dns relay server and workstations (PC's and some MAC's) plus network printers and scanners.All the workstations have dynamic IP addresses (easier because a lot of 'dynamic' changes : new persons with their own laptop, ...) and the server and printers/scanners have fixed IP addresses.I edited the dhcpd.conf (see here underneath), I have the file dhcpd.leases but it doesn't start !

DHCPD.CONF
ddns-update-style interim;
ignore client-updates;

[code].....

View 3 Replies View Related

General :: Log On As Another Regular But No Root User With That Password And Boot Up Into Centos

Jul 22, 2011

I forgot the root passwd for linux (via the "single" mode) and, according to all confirms, did so successfully! I then try to log on to Centos as root, and I can't....it says "incorrect passwd"! So then I log on as another, regular, but not root, user, with that passwd, and boot up into Centos. if I try to "su" to root, with the new root passwd, again it says its incorrect. there is no "system admin" passwd set. I checked!. I need root access within Centos!

View 8 Replies View Related

CentOS 5 :: Make Tomcat Startup At Boot As Non Root User?

May 4, 2009

Can anyone tell me how to make this script,( located in /etc/init.d/tomcat ) startup at boot time under the tomcat user and not the root user?

#!/bin/bash
# tomcatStartup Script for Tomcat
# chkconfig: 2345 20 80
# description: Tomcat Server basic start/shutdown script
# processname: tomcat
# pidfile: /var/run/tomcat.pid

[Code]...

View 5 Replies View Related

CentOS 5 Networking :: How Do I Set Sbin In Default Path For Non Root User

Jun 25, 2009

I'm running a server with CentOS 5 where the software that needs to run on the server uses ifconfig to verify the system IPv4.The problem is that /sbin isn't set for the user that is supposed to run the software (sadmin) which means the software can't execute ifconfig and thus terminates.now the workaround I've been using is simply to input.

View 10 Replies View Related

CentOS 5 :: Enter Password For Root User - SSH Access Denied

Apr 18, 2011

I have a new CentOS server install. I am trying to connect from a windows xp box using putty ssh. I can get as far as putting in the password for root user and then it tells me access denied.

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

CentOS 5 Server :: Reboot The Server With Centos 5.5 The SMB Deamon Doesn't Start?

Feb 22, 2011

when I reboot the server with centos 5.5 the SMB deamon doesn't start?

View 2 Replies View Related

CentOS 5 :: Recover / Reset Password For Root Via Single User Mode

Oct 20, 2009

Can someone assist me with recovering/resetting the password for Root via Single User Mode in CentOS v5? I've modified the kernel line using Single, S, and 1 but it appears that these commands are being totally ignored as the server continues with the boot process and displays the GUI logon screen. The server in question is a VM box running on ESX v3.5 U4. The person that created this VM is no longer employed here and I've exhausted everything I know regarding Single User Mode.

View 12 Replies View Related

Server :: Root User Not Logging In Gui / Get That?

Dec 13, 2010

I have RHEL4 server. my root is able to login from CUI mode but not able to login from GUI mode. normal user is able to login from GUI mode and we go to root through su command but directly root is not able to login from GUI

View 2 Replies View Related







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