Bftpd running under root

Hello
I have a problem with my bftpd. It is working but its runnig under root user. I dont know how to run it like ftp.
Thank you for your replies.
[jerka@pils ~]$ su
Heslo:
[root@pils jerka]# su ftp -c "/usr/sbin/bftpd -D" -s /bin/bash
You must change your password immedeatly (need by rootem)
Change password for ftp.
(present) UNIX password:
[root@pils jerka]#
I try run it like ftp but as you can see, its not worknig.
Here is my bftpd.conf
Configuration file for bftpd.
global {
DENY_LOGIN="no"
PORT="21"
PASSIVE_PORTS="0"
DATAPORT20="no"
ADMIN_PASS="x"
PATH_BFTPDUTMP="/var/run/bftpd/bftpdutmp"
XFER_BUFSIZE="2048"
XFER_DELAY="0"
ALLOW_FXP="no"
CONTROL_TIMEOUT="300"
DATA_TIMEOUT="30"
RATIO="none"
ROOTDIR="%h"
UMASK="022"
LOGFILE="/var/log/bftpd.log"
HELLO_STRING="Welcome to PILS ftp server"
AUTO_CHDIR="/"
FILE_AUTH="/etc/bftpdpass"
RESOLVE_CLIENT_IP="no"
MOTD_GLOBAL="/etc/ftpmotd"
MOTD_USER="/.ftpmotd"
RESOLVE_UIDS="yes"
DO_CHROOT="yes"
LOG_WTMP="yes"
BIND_TO_ADDR="any"
PATH_FTPUSERS="/etc/ftpusers"
AUTH_ETCSHELLS="no"
ALLOWCOMMAND_DELE="yes"
ALLOWCOMMAND_STOR="yes"
ALLOWCOMMAND_SITE="yes"
HIDE_GROUP=""
QUIT_MSG="Stejne jsem to vsechno hodil do krbu!"
USERLIMIT_GLOBAL="0"
USERLIMIT_SINGLEUSER="0"
USERLIMIT_HOST="0"
GZ_UPLOAD="no"
GZ_DOWNLOAD="no"
Last edited by jerka (2007-12-18 11:00:00)

u can chroot it, or just leave it be, i dont have any ideas how you might use port 21 w/o root privilegies.

Similar Messages

  • Managed Client running under root

    Hi
    Can any one of you here tell me what is Managed Client???
    I saw that one in the Activity Monitor and it is running under root account.
    Is this one of the Apple Remote Desktop?
    Or other Application is running.

    Try a google search for *managed client site:apple.com* and peruse the hits.

  • Dropbox process running under root.

    Hello people i just checked activity monitor for a process and i saw the process "dbfseventsd" and i google it and it came up that it is a dropbox process, and it was running under the root user and it was a 32bit process. Can anyone tell me why that process was there note the process is not always there when i use dropbox.
    Thanks
    Alex

    Hello All
    Since a couple days, in my Home appears DCQd7rmUW9.tmp. It is a temp file produced by dbfseventsd but operated by Java. It is a DropBox process anyway?

  • Netbeans not running under root user

    I noticed that after installing Netbeans under user 'root', I'm able to use it under my user account, but it doesn't launch when I'm logged in as root.  I'm running Arch x86_64 with XFCE in VirtualBox.  Everything else works, including:
    Firefox
    Pidgin
    Eclipse
    SRWare Iron browser
    It's not a big problem but when I'm logged in under my user account I can't install new plugins from inside Netbeans.
    I tried running it from the command line but nothing happens, including when I try "sh netbeans -verbose".
    I"m curious why I'm unable to start Netbeans when I'm logged in as root.  Has anyone else experienced this?

    Maybe you should reinstall it "as user" if you're experiencing problems with plugins installation.
    Edit: IIRC you can use xhost to let root run GUI apps.
    Last edited by karol (2010-09-01 22:26:09)

  • What is this Wine that takes over 100 MB of memory running on root on my computer?

    What is this Wine that takes over 100 MB of memory running under root on my computer?

    The only apps I have installed since purchasing are Mac Keeper and the most recent version of Caffeine.
    Also, wine is running by itself, and it is there going when I first turn the computer on. I can shut it down through activity monitor, though.
    When I look at the process heirarchically, though, it shows up.
    The process heirarchy looks like this: launchd -> AntiVirus -> wine and nothing is running under wine.

  • Java only runs as root under redhat 9

    Further to my thread here:- http://forum.java.sun.com/thread.jsp?forum=37&thread=473177&tstart=0&trange=15
    One key thing I forgot to post was that java WILL run when run as root.
    It also 'half' runs as a non root user if you specify a max memory setting with -Xmx (it gets further before it dies).
    Any clues anyone.
    Please refer to the previous thread for more details.
    Thanks

    Further to my thread here:-
    http://forum.java.sun.com/thread.jsp?forum=37&thread=47
    177&tstart=0&trange=15
    One key thing I forgot to post was that java WILL run
    when run as root.Yes, but when you run as root the environment that you run in is different than that of a user.
    It could of course be a permissions problem. For example it is skipping a directory because the user doesn't have permission to access it. But the exception exit still suggests that it is finding something that it shouldn't. And that probably isn't a good idea even if it is a permission problem on a directory.

  • Application Runs Under Windows 8.1 But Not Under Windows XP (I Know XP Is Deprecated)

    The problem is with the obtuse error message put out by Windows's program loader. It reads, in part, "..is not a valid Win32 application." The application runs everywhere except on Windows XP. Looking for root cause of the problem. It's a very
    simple application. Only a few lines of code. 
    C:\Packaged-Software\32-BIT\Reboot.exe is not a valid Win32 application.
    Proposed nature of the problem:
    1. The file was downloaded from a website but the download was incomplete.
    2. The full file system filename path contains bad characters such blank space.
    3. Visual Studio constructed an application that won't run anywhere much less on XP.
    4. The supporting libraries are not properly installed (e.g. .NET Framework4, and VCREDIST).
    Retorts:
    1. The file wasn't downloaded from a website and is intact.
    2. The filename path doesn't contain any spaces.
    3. The application runs under Windows 8.1.  Also on Windows 7.
    4. The supporting libraries are properly installed.
    So, what's the problem?  One surely will not discover the root cause from "not a valid application."
    Body must be 4 to 60000 characters long.  I had put the code here.  It isn't 60000 character long.  But it validated as if there are more than 60000 characters.  Sorry for the incomplete submission due to website construction error.
    MARK D ROCKMAN

    Hi F7H2fw,
    How did you develop the application ?
    Here is a similar symptom and this may explain the issue somehow:
    Setup.exe is not a valid Win32 application
    http://blogs.msdn.com/b/vsnetsetup/archive/2012/10/16/setup-exe-is-not-a-valid-win32-application.aspx
    I suspect there is a compatibility issue here .
    Considering this is more likely a developing issue .It is recommended to ask for help from our MSDN Forum .They are more familiar with the developing issue .If it is possible ,please attach the code in that thread .Thanks for your understanding and cooperation.
    MSDN Forum
    https://social.msdn.microsoft.com/Forums/en-US/home
    Best regards
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • [Solved] xf86-video-ati low fps under normal user, fine under root

    Hi again. someone must had played HL1. So did I, but I had to run it under root to get the sufficient performance. I tried both OpenGL and DirectX drivers.
    At 640x480 the FPS is ~5. At 1024x768 it's "1".
    after some digging I found that glxinfo produces different output for me and for root:
    # glxinfo
    OpenGL vendor string: Mesa Project
    OpenGL renderer string: Software Rasterizer
    # sudo glxinfo
    OpenGL vendor string: DRI R300 Project
    OpenGL renderer string: Mesa DRI R300 20060815 x86/MMX/SSE2 TCL
    How do I permit the normal user to utilize HW acceleration?
    wine-1.1.26
    xf86-video-ati 6.12.2
    xorg-server 1.6.2
    Last edited by leniviy (2009-08-01 11:14:16)

    Is your user added to the video group?

  • Hi how to add new folders under root for jsp in tomcat4.1.18

    hi,
    previsously i used tomcat3.3 and tomcat4.1.12 run sucessfully.
    now i downloed jakartha_tomcat4.1.18,
    i am running sample succesfuly direcly under root.
    now i want my some jsp appilcationes to run under xyz,pqr folders
    here my jsp files are abc.jsp,fgh.jsp while running file url like this
    http://localhost:8080/xyz/abc.jsp
    http://localhost:8080/pqr/fgh.jsp
    while running url server not locate the files.
    where i add these xyz and pqr folders in server.xml.
    here my server.xml like this any one can modify this
    <!-- Example Server Configuration File -->
    <!-- Note that component elements are nested corresponding to their
    parent-child relationships with each other -->
    <!-- A "Server" is a singleton element that represents the entire JVM,
    which may contain one or more "Service" instances. The Server
    listens for a shutdown command on the indicated port.
    Note: A "Server" is not itself a "Container", so you may not
    define subcomponents such as "Valves" or "Loggers" at this level.
    -->
    <Server port="8005" shutdown="SHUTDOWN" debug="0">
    <!-- Comment these entries out to disable JMX MBeans support -->
    <!-- You may also configure custom components (e.g. Valves/Realms) by
    including your own mbean-descriptor file(s), and setting the
    "descriptors" attribute to point to a ';' seperated list of paths
    (in the ClassLoader sense) of files to add to the default list.
    e.g. descriptors="/com/myfirm/mypackage/mbean-descriptor.xml"
    -->
    <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
    debug="0"/>
    <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
    debug="0"/>
    <!-- Global JNDI resources -->
    <GlobalNamingResources>
    <!-- Test entry for demonstration purposes -->
    <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
    <!-- Editable user database that can also be used by
    UserDatabaseRealm to authenticate users -->
    <Resource name="UserDatabase" auth="Container"
    type="org.apache.catalina.UserDatabase"
    description="User database that can be updated and saved">
    </Resource>
    <ResourceParams name="UserDatabase">
    <parameter>
    <name>factory</name>
    <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
    </parameter>
    <parameter>
    <name>pathname</name>
    <value>conf/tomcat-users.xml</value>
    </parameter>
    </ResourceParams>
    </GlobalNamingResources>
    <!-- A "Service" is a collection of one or more "Connectors" that share
    a single "Container" (and therefore the web applications visible
    within that Container). Normally, that Container is an "Engine",
    but this is not required.
    Note: A "Service" is not itself a "Container", so you may not
    define subcomponents such as "Valves" or "Loggers" at this level.
    -->
    <!-- Define the Tomcat Stand-Alone Service -->
    <Service name="Tomcat-Standalone">
    <!-- A "Connector" represents an endpoint by which requests are received
    and responses are returned. Each Connector passes requests on to the
    associated "Container" (normally an Engine) for processing.
    By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
    You can also enable an SSL HTTP/1.1 Connector on port 8443 by
    following the instructions below and uncommenting the second Connector
    entry. SSL support requires the following steps (see the SSL Config
    HOWTO in the Tomcat 4.0 documentation bundle for more detailed
    instructions):
    * Download and install JSSE 1.0.2 or later, and put the JAR files
    into "$JAVA_HOME/jre/lib/ext".
    * Execute:
    %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
    $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix)
    with a password value of "changeit" for both the certificate and
    the keystore itself.
    By default, DNS lookups are enabled when a web application calls
    request.getRemoteHost(). This can have an adverse impact on
    performance, so you can disable it by setting the
    "enableLookups" attribute to "false". When DNS lookups are disabled,
    request.getRemoteHost() will return the String version of the
    IP address of the remote client.
    -->
    <!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
    port="8080" minProcessors="5" maxProcessors="75"
    enableLookups="true" redirectPort="8443"
    acceptCount="100" debug="0" connectionTimeout="20000"
    useURIValidationHack="false" disableUploadTimeout="true" />
    <!-- Note : To disable connection timeouts, set connectionTimeout value
    to -1 -->
    <!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
    <!--
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
    port="8443" minProcessors="5" maxProcessors="75"
    enableLookups="true"
         acceptCount="100" debug="0" scheme="https" secure="true"
    useURIValidationHack="false" disableUploadTimeout="true">
    <Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
    clientAuth="false" protocol="TLS" />
    </Connector>
    -->
    <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
    port="8009" minProcessors="5" maxProcessors="75"
    enableLookups="true" redirectPort="8443"
    acceptCount="10" debug="0" connectionTimeout="0"
    useURIValidationHack="false"
    protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <!--
    <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
    port="8009" minProcessors="5" maxProcessors="75"
    acceptCount="10" debug="0"/>
    -->
    <!-- Define a Proxied HTTP/1.1 Connector on port 8082 -->
    <!-- See proxy documentation for more information about using this. -->
    <!--
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
    port="8082" minProcessors="5" maxProcessors="75"
    enableLookups="true"
    acceptCount="100" debug="0" connectionTimeout="20000"
    proxyPort="80" useURIValidationHack="false"
    disableUploadTimeout="true" />
    -->
    <!-- Define a non-SSL legacy HTTP/1.1 Test Connector on port 8083 -->
    <!--
    <Connector className="org.apache.catalina.connector.http.HttpConnector"
    port="8083" minProcessors="5" maxProcessors="75"
    enableLookups="true" redirectPort="8443"
    acceptCount="10" debug="0" />
    -->
    <!-- Define a non-SSL HTTP/1.0 Test Connector on port 8084 -->
    <!--
    <Connector className="org.apache.catalina.connector.http10.HttpConnector"
    port="8084" minProcessors="5" maxProcessors="75"
    enableLookups="true" redirectPort="8443"
    acceptCount="10" debug="0" />
    -->
    <!-- An Engine represents the entry point (within Catalina) that processes
    every request. The Engine implementation for Tomcat stand alone
    analyzes the HTTP headers included with the request, and passes them
    on to the appropriate Host (virtual host). -->
    <!-- You should set jvmRoute to support load-balancing via JK/JK2 ie :
    <Engine name="Standalone" defaultHost="localhost" debug="0" jmvRoute="jvm1">
    -->
    <!-- Define the top level container in our container hierarchy -->
    <Engine name="Standalone" defaultHost="localhost" debug="0">
    <!-- The request dumper valve dumps useful debugging information about
    the request headers and cookies that were received, and the response
    headers and cookies that were sent, for all requests received by
    this instance of Tomcat. If you care only about requests to a
    particular virtual host, or a particular application, nest this
    element inside the corresponding <Host> or <Context> entry instead.
    For a similar mechanism that is portable to all Servlet 2.3
    containers, check out the "RequestDumperFilter" Filter in the
    example application (the source for this filter may be found in
    "$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters").
    Request dumping is disabled by default. Uncomment the following
    element to enable it. -->
    <!--
    <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
    -->
    <!-- Global logger unless overridden at lower levels -->
    <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="catalina_log." suffix=".txt"
    timestamp="true"/>
    <!-- Because this Realm is here, an instance will be shared globally -->
    <!-- This Realm uses the UserDatabase configured in the global JNDI
    resources under the key "UserDatabase". Any edits
    that are performed against this UserDatabase are immediately
    available for use by the Realm. -->
    <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
    debug="0" resourceName="UserDatabase"/>
    <!-- Comment out the old realm but leave here for now in case we
    need to go back quickly -->
    <!--
    <Realm className="org.apache.catalina.realm.MemoryRealm" />
    -->
    <!-- Replace the above Realm with one of the following to get a Realm
    stored in a database and accessed via JDBC -->
    <!--
    <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
    driverName="org.gjt.mm.mysql.Driver"
    connectionURL="jdbc:mysql://localhost/authority"
    connectionName="test" connectionPassword="test"
    userTable="users" userNameCol="user_name" userCredCol="user_pass"
    userRoleTable="user_roles" roleNameCol="role_name" />
    -->
    <!--
    <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
    driverName="oracle.jdbc.driver.OracleDriver"
    connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL"
    connectionName="scott" connectionPassword="tiger"
    userTable="users" userNameCol="user_name" userCredCol="user_pass"
    userRoleTable="user_roles" roleNameCol="role_name" />
    -->
    <!--
    <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
    driverName="sun.jdbc.odbc.JdbcOdbcDriver"
    connectionURL="jdbc:odbc:CATALINA"
    userTable="users" userNameCol="user_name" userCredCol="user_pass"
    userRoleTable="user_roles" roleNameCol="role_name" />
    -->
    <!-- Define the default virtual host -->
    <Host name="localhost" debug="0" appBase="webapps"
    unpackWARs="true" autoDeploy="true">
    <!-- Normally, users must authenticate themselves to each web app
    individually. Uncomment the following entry if you would like
    a user to be authenticated the first time they encounter a
    resource protected by a security constraint, and then have that
    user identity maintained across all web applications contained
    in this virtual host. -->
    <!--
    <Valve className="org.apache.catalina.authenticator.SingleSignOn"
    debug="0"/>
    -->
    <!-- Access log processes all requests for this virtual host. By
    default, log files are created in the "logs" directory relative to
    $CATALINA_HOME. If you wish, you can specify a different
    directory with the "directory" attribute. Specify either a relative
    (to $CATALINA_HOME) or absolute path to the desired directory.
    -->
    <!--
    <Valve className="org.apache.catalina.valves.AccessLogValve"
    directory="logs" prefix="localhost_access_log." suffix=".txt"
    pattern="common" resolveHosts="false"/>
    -->
    <!-- Logger shared by all Contexts related to this virtual host. By
    default (when using FileLogger), log files are created in the "logs"
    directory relative to $CATALINA_HOME. If you wish, you can specify
    a different directory with the "directory" attribute. Specify either a
    relative (to $CATALINA_HOME) or absolute path to the desired
    directory.-->
    <Logger className="org.apache.catalina.logger.FileLogger"
    directory="logs" prefix="localhost_log." suffix=".txt"
         timestamp="true"/>
    <!-- Define properties for each web application. This is only needed
    if you want to set non-default properties, or have web application
    document roots in places other than the virtual host's appBase
    directory. -->
    <!-- Tomcat Root Context -->
    <Context path="" docBase="ROOT" debug="0"/>
    <!-- Tomcat Examples Context -->
    <Context path="/examples" docBase="examples" debug="0"
    reloadable="true" crossContext="true">
    <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="localhost_examples_log." suffix=".txt"
         timestamp="true"/>
    <Ejb name="ejb/EmplRecord" type="Entity"
    home="com.wombat.empl.EmployeeRecordHome"
    remote="com.wombat.empl.EmployeeRecord"/>
    <!-- If you wanted the examples app to be able to edit the
    user database, you would uncomment the following entry.
    Of course, you would want to enable security on the
    application as well, so this is not done by default!
    The database object could be accessed like this:
    Context initCtx = new InitialContext();
    Context envCtx = (Context) initCtx.lookup("java:comp/env");
    UserDatabase database =
    (UserDatabase) envCtx.lookup("userDatabase");
    -->
    <!--
    <ResourceLink name="userDatabase" global="UserDatabase"
    type="org.apache.catalina.UserDatabase"/>
    -->
    <!-- PersistentManager: Uncomment the section below to test Persistent
              Sessions.
    saveOnRestart: If true, all active sessions will be saved
    to the Store when Catalina is shutdown, regardless of
    other settings. All Sessions found in the Store will be
    loaded on startup. Sessions past their expiration are
    ignored in both cases.
    maxActiveSessions: If 0 or greater, having too many active
    sessions will result in some being swapped out. minIdleSwap
    limits this. -1 or 0 means unlimited sessions are allowed.
    If it is not possible to swap sessions new sessions will
    be rejected.
    This avoids thrashing when the site is highly active.
    minIdleSwap: Sessions must be idle for at least this long
    (in seconds) before they will be swapped out due to
    activity.
    0 means sessions will almost always be swapped out after
    use - this will be noticeably slow for your users.
    maxIdleSwap: Sessions will be swapped out if idle for this
    long (in seconds). If minIdleSwap is higher, then it will
    override this. This isn't exact: it is checked periodically.
    -1 means sessions won't be swapped out for this reason,
    although they may be swapped out for maxActiveSessions.
    If set to >= 0, guarantees that all sessions found in the
    Store will be loaded on startup.
    maxIdleBackup: Sessions will be backed up (saved to the Store,
    but left in active memory) if idle for this long (in seconds),
    and all sessions found in the Store will be loaded on startup.
    If set to -1 sessions will not be backed up, 0 means they
    should be backed up shortly after being used.
    To clear sessions from the Store, set maxActiveSessions, maxIdleSwap,
    and minIdleBackup all to -1, saveOnRestart to false, then restart
    Catalina.
    -->
              <!--
    <Manager className="org.apache.catalina.session.PersistentManager"
    debug="0"
    saveOnRestart="true"
    maxActiveSessions="-1"
    minIdleSwap="-1"
    maxIdleSwap="-1"
    maxIdleBackup="-1">
    <Store className="org.apache.catalina.session.FileStore"/>
    </Manager>
              -->
    <Environment name="maxExemptions" type="java.lang.Integer"
    value="15"/>
    <Parameter name="context.param.name" value="context.param.value"
    override="false"/>
    <Resource name="jdbc/EmployeeAppDb" auth="SERVLET"
    type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/EmployeeAppDb">
    <parameter><name>username</name><value>sa</value></parameter>
    <parameter><name>password</name><value></value></parameter>
    <parameter><name>driverClassName</name>
    <value>org.hsql.jdbcDriver</value></parameter>
    <parameter><name>url</name>
    <value>jdbc:HypersonicSQL:database</value></parameter>
    </ResourceParams>
    <Resource name="mail/Session" auth="Container"
    type="javax.mail.Session"/>
    <ResourceParams name="mail/Session">
    <parameter>
    <name>mail.smtp.host</name>
    <value>localhost</value>
    </parameter>
    </ResourceParams>
    <ResourceLink name="linkToGlobalResource"
    global="simpleValue"
    type="java.lang.Integer"/>
    </Context>
    </Host>
    </Engine>
    </Service>
    <!-- The MOD_WEBAPP connector is used to connect Apache 1.3 with Tomcat 4.0
    as its servlet container. Please read the README.txt file coming with
    the WebApp Module distribution on how to build it.
    (Or check out the "jakarta-tomcat-connectors/webapp" CVS repository)
    To configure the Apache side, you must ensure that you have the
    "ServerName" and "Port" directives defined in "httpd.conf". Then,
    lines like these to the bottom of your "httpd.conf" file:
    LoadModule webapp_module libexec/mod_webapp.so
    WebAppConnection warpConnection warp localhost:8008
    WebAppDeploy examples warpConnection /examples/
    The next time you restart Apache (after restarting Tomcat, if needed)
    the connection will be established, and all applications you make
    visible via "WebAppDeploy" directives can be accessed through Apache.
    -->
    <!-- Define an Apache-Connector Service -->
    <!--
    <Service name="Tomcat-Apache">
    <Connector className="org.apache.catalina.connector.warp.WarpConnector"
    port="8008" minProcessors="5" maxProcessors="75"
    enableLookups="true" appBase="webapps"
    acceptCount="10" debug="0"/>
    <Engine className="org.apache.catalina.connector.warp.WarpEngine"
    name="Apache" debug="0">
    <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="apache_log." suffix=".txt"
    timestamp="true"/>
    <Realm className="org.apache.catalina.realm.MemoryRealm" />
    </Engine>
    </Service>
    -->
    </Server>
    ==========
    any one may modify above one
    thanks
    pullareddyj

    As the server.xml is big enough, I took the minimum portion of it. Hope u can proceed with it.
    <!-- Tomcat Root Context -->
    <Context path="" docBase="ROOT" debug="0"/>
    <!-- New contexts -->
    <Context path="/xyz" docBase="pathTo_xyz" debug="0" crossContext="true"/>
    <Context path="/pqr" docBase="pathTo_pqr" debug="0" crossContext="true"/>
    <!-- Tomcat Examples Context -->
    <Context path="/examples" docBase="examples" debug="0"
    reloadable="true" crossContext="true">
    You should also provide a WEB-INF folder under pqr or xyz folder.
    You should also provide a web.xml file under each WEB-INF folder.
    The minimal web.xml is
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/j2ee/dtd/web-app_2_3.dtd">
    <web-app>
    </web-app>
    That's it. Try it out. Hope it is OK.
    Hafizur Rahman
    SCJP

  • Apache : One httpd process running as root instead of nobody

    Hello,
    Running mediawiki under apache 2.2.8-2, I see strange messages saying that some files under /root/.texmf-var/ do not exist !
    I was sure that apache was configured to run as the user nobody !
    After doing a ps|grep, I get :
    # ps auxw | grep httpd
    [b]root[/b] 32465 0.6 0.5 89788 10352 ? Ss 18:16 0:00 /usr/sbin/httpd -k start
    nobody 32468 0.0 0.3 89788 7552 ? S 18:16 0:00 /usr/sbin/httpd -k start
    nobody 32469 0.0 0.3 89788 7552 ? S 18:16 0:00 /usr/sbin/httpd -k start
    nobody 32470 0.0 0.3 89788 7552 ? S 18:16 0:00 /usr/sbin/httpd -k start
    nobody 32471 0.0 0.3 89788 7552 ? S 18:16 0:00 /usr/sbin/httpd -k start
    nobody 32472 0.0 0.3 89788 7552 ? S 18:16 0:00 /usr/sbin/httpd -k start
    And the same after killing them all and restarting /etc/rc.d/httpd
    I have in httpd.conf:
    User nobody
    Group nobody
    How is it possible ?
    Any hint ?
    -mathieu

    This is necessary to use port 80
    There might be other reasons.

  • Any restriction on Mac that binaries running from root dirs like /usr/libexec/ cannot load dylib's at run-time?

    Hi all,
    Is there any restriction on Mac OS X 10.6/10.7 that binaries running from root directories like /usr/libexec/ cannot load dylib's at run-time using dlopen() or NSAddImage()?
    I am trying to run a binary like "sample" from a directory inside /usr/libexec/ which tries to load a dylib like "sample.dylib" which is present in the same directory as "sample".
    It resulted in a segmentation fault with the following error and stack-trace.
    Program received signal EXC_BAD_ACCESS, Could not access memory.
    Reason: KERN_INVALID_ADDRESS at address: 0x0000000000003430
    0x0000000000003430 in ?? ()
    Using gdb, I could find out that the program crashed inside dlopen() (the path passed to dlopen() being a simple filename like "sample.dylib").
    The dlopen() at the top of the stack-trace pasted below gets called around 10 times; it does not crash during this 2nd level dlopen() any-time.
    #0  0x00007fff81be9e93 in dlopen ()
    #1  0x00007fff82838f7f in map_images_nolock ()
    #2  0x00007fff82821bc0 in map_images ()
    #3  0x00007fff5fc039b9 in __dyld__ZN4dyldL18notifyBatchPartialE17dyld_image_statesbPFPKcS0_jPK15dyld_imag e_infoE ()
    #4  0x00007fff5fc0c839 in __dyld__ZN11ImageLoader4linkERKNS_11LinkContextEbbRKNS_10RPathChainE ()
    #5  0x00007fff5fc04d48 in __dyld__ZN4dyld4linkEP11ImageLoaderbRKNS0_10RPathChainE ()
    #6  0x00007fff5fc08f68 in __dyld_dlopen ()
    #7  0x00007fff81be9ec0 in dlopen ()
    #8  0x000000010002694f in AAA ()
    #9  0x0000000100026730 in XXX ()
    #10 0x0000000100026494 in YYY ()
    #15 0x00000001000566a9 in main (argc=7, argv=0x7fff5fbff810) at ../../main.c:50
    After this 2nd level dlopen() gets called 10-15 times, the stack will unwind from map_images_nolock () till  __dyld_dlopen (). But when it tries to finish all the instructions inside  __dyld_dlopen () and step out of it, the program crashes with the EXC_BAD_ACCESS signal.
    Please find below the final stack-traces obtained during debugging when I put breakpoints for AAA() and dlopen() and went on stepping inside till the program crashed.
    (gdb) bt
    #0  0x00007fff5fc04d48 in __dyld__ZN4dyld4linkEP11ImageLoaderbRKNS0_10RPathChainE ()
    #1  0x00007fff5fc08f68 in __dyld_dlopen ()
    #2  0x00007fff81be9ec0 in dlopen ()
    #3  0x000000010002694f in AAA ()
    #4  0x0000000100026730 in XXX ()
    #5  0x000000010002663c in YYY ()
    #11 0x00000001000566a9 in main (argc=7, argv=0x7fff5fbff7f0) at main.c:50
    (gdb) step
    Single stepping until exit from function __dyld__ZN4dyld4linkEP11ImageLoaderbRKNS0_10RPathChainE,
    which has no line number information.
    0x00007fff5fc08f68 in __dyld_dlopen ()
    (gdb) bt
    #0  0x00007fff5fc08f68 in __dyld_dlopen ()
    #1  0x00007fff81be9ec0 in dlopen ()
    #2  0x000000010002694f in AAA ()
    #3  0x0000000100026730 in XXX ()
    #4  0x000000010002663c in YYY ()
    #10 0x00000001000566a9 in main (argc=7, argv=0x7fff5fbff7f0) at ../../main.c:50
    (gdb) step
    Single stepping until exit from function __dyld_dlopen,
    which has no line number information.
    Program received signal EXC_BAD_ACCESS, Could not access memory.
    Reason: KERN_INVALID_ADDRESS at address: 0x0000000000003430
    0x0000000000003430 in ?? ()
    To summarise:
    For some reason, a user wants to install a product and its binaries under /usr/libexec/.
    This binary tries to dynamically load a dylib using dlopen("sample.dylib", RTLD_LAZY | RTLD_LOCAL).
    It looks like, the dynamic linker then opens dependent dylibs and runs module initialisers. Then crashes when returning (which sounds like a trashed stack).
    Can anyone please tell me whether there is some OS-imposed restriction or OS bug which can explain this type of behaviour?
    (Note: The crash does not occur if the binary and dylib are installed under a normal user's home directory and run from there.)
    Many thanks,
    Vinay

    The otool output for the binary and dylib are pasted below.
    localhost:Latest dev$ otool -L /usr/libexec/Dipu/sample/sample
    /usr/libexec/Dipu/sample/sample:
    /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
    /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 476.18.0)
    /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
    /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.4)
    localhost:Latest dev$ otool -L /usr/libexec/Dipu/sample/sample.dylib
    /usr/libexec/Dipu/sample/sample.dylib:
    libProduct.dylib (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 136.0.0)
    /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
    /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
    /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.4)
    /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 476.18.0)

  • Vhost configuration for Adobe Media Server running under linux.

    Please help me with Vhost configuration for Adobe Media Server running under linux.
    I was running a media sharing website for which I wanted to use Adobe Media Server.
    To use, AMS, I disabled the already installed Apache server and installed AMS along with the built in Apache server. I could successfully install AMS and could login to AMS Admin Console through my IP number.
    My existing website, www.mydomain.com is having its contents located at:
    /home/mydomain/public_html
    (Directory created under the old version of Apache not bundled with AMS)
    Users will be uploading their videos, which will get transcoded and will be delivered to the website visitors in the existing scenario.
    To use this website with AMS, this is what I did:
    I created a folder for my domain, www.mydomain.com as below
    /opt/adobe/ams/conf/_defaultRoot_/www.mydomain.com
    Copied Application.xml and Vhost.xml from /opt/adobe/ams/conf/_defaultRoot_/   and pasted them in /opt/adobe/ams/conf/_defaultRoot_/www.mydomain.com
    In the Application.xml file there are 2 entries:
    <Alias name="mydomain.com"></Alias>
    <AppsDir>${/home/mydomain/public_html}</AppsDir>
    Please help me with further steps to be completed:
    Do I need to create a separate VirtualHost entry in the Apache installed with AMS?
    If yes, can I specify already existing document root for my website (/home/mydomain/public_html) or do I need to create a separate folder under webroot/Apache ?
    If yes to point 2 above, then do I need to copy all the existing contents from /home/mydomain/public_html to the newly created folder ?
    I hope, I can serve all my static contents like html pages and php and media like video/audio. In that case do I need create alias to my Media/Alias folder or AMS will automatically start streaming when a video/audio is requested ?
    What other steps do i need to complete?
    Any help in this regard would be highly appreciated.
    Thanks and Regards

    Dear sir or madam,
    Here is Letswin Technology, which specializes in global servers, web hosting, VPS, VPNj. If anything I can do for you, pls contact us!
    Have a nice day!

  • Everything runs als Root, can someone give me a hand for the system rights?

    yeah I screwed up big times because of this neat unknow_user "Feature" in Leopard.
    First i installed a os 10.4 app under leopard which let the disk utility slow down and the finder crashes if i change the user rights, and then i changed globally the group and user of everything in the application folder and my documents folder with pathfinder for looking if i can solve the problem that way.
    -But now everything runs as Root and even the hd itself has a owner root and as group admin.
    i don't get the difference between system, root, admin, wheel, username for the owner and group. I googled but found nothing clear about this.
    And i also wonder what i should do about the group and the meaning of root, system, admin, wheel, username as a group for a single user system. Where should i give a read, read&write and execute permission for example?
    at the moment everything seems to run mostly root and every program runs on root and i think this is the worst think that can happen and causes some trouble for the programs.
    Can someone give me a short hand and for example tell me if i should set the hd owner to my username and the group to system or admin or whatever and this also for the application and documents/film and other stuff on my user folder?
    that would be great
    I think i have to reinstall leopard, but as long as this unknow_user problem still resist and no patch is available, i see the same thing happen again and again for me, so a little help would be great
    here the ls -l -a from the system and user directory
    drwxrwxr-t 26 root admin 1496 Nov 1 23:41 .
    drwxrwxr-t 26 root admin 1496 Nov 1 23:41 ..
    -rw-rw-r--@ 1 root admin 15364 Nov 5 22:42 .DS_Store
    drwxrwxr-x@ 3 root admin 102 Oct 30 18:40 .Spotlight-V100
    drwxrwxr-x@ 2 root admin 68 Aug 2 12:29 .Trashes
    -rw-r--r-- 1 root admin 0 Oct 30 17:09 .com.apple.timemachine.supported
    drwx------ 2 root admin 952 Nov 5 22:09 .fseventsd
    -rw-rw-r--@ 1 root admin 262144 Oct 10 11:42 .hotfiles.btree
    drwxr-xr-x@ 2 root wheel 68 Aug 2 12:30 .vol
    drwxrwxrwx+ 400 adrian admin 13872 Nov 5 22:00 Applications
    drwxr-xr-x 2 root admin 102 Nov 1 23:01 Data
    -rw-r--r--@ 1 root admin 10240 Oct 25 05:19 Desktop DB
    -rw-r--r--@ 1 root admin 37442 Oct 25 01:39 Desktop DF
    drwxrwxr-x@ 13 root admin 544 Oct 30 19:46 Developer
    drwxr-xr-x 5 adrian adrian 204 Sep 12 14:25 InputManagers
    -rw-r--r--@ 1 adrian adrian 1568128 Nov 1 23:45 Installer Log File
    drwxrwxr-t+ 60 root admin 2108 Nov 1 22:06 Library
    drwxr-xr-x@ 2 root wheel 68 Aug 2 10:08 Network
    drwxr-xr-x 3 root wheel 136 Oct 30 18:01 System
    drwxrwxrwx@ 3 root admin 102 Aug 2 17:21 TheVolumeSettingsFolder
    drwxr-xr-x 5 root admin 238 Nov 2 00:03 Users
    drwxrwxrwt@ 4 root admin 170 Nov 5 20:21 Volumes
    -rw-r--r-- 1 adrian admin 0 Oct 29 22:51 az.log
    drwxr-xr-x@ 2 root wheel 1360 Oct 30 17:57 bin
    drwxrwxr-t@ 2 root admin 68 Jan 13 2006 cores
    dr-xr-xr-x 2 root wheel 512 Nov 2 04:11 dev
    lrwxr-xr-x@ 1 root admin 11 Oct 30 17:57 etc -> private/etc
    dr-xr-xr-x 2 root wheel 1 Nov 2 04:11 home
    lrwxr-xr-x 1 root 502 11 Nov 1 22:40 mach -> mach_kernel
    -r--r--r--@ 1 root admin 615748 Oct 29 18:23 mach.sym
    -rw-r--r--@ 1 root wheel 10243756 Oct 10 06:38 mach_kernel
    -rw-r--r--@ 1 root wheel 10696809 Oct 10 06:38 mach_kernel.ctfsys
    dr-xr-xr-x 3 root wheel 2 Nov 2 04:11 net
    drwxr-xr-x@ 3 root admin 102 Sep 14 17:40 opt
    drwxr-xr-x@ 6 root wheel 204 Oct 29 18:23 private
    drwxr-xr-x@ 2 root wheel 2244 Oct 30 18:01 sbin
    drwxr-xr-x 11 root admin 374 Jun 9 2006 sw
    lrwxr-xr-x@ 1 root admin 11 Oct 30 17:57 tmp -> private/tmp
    drwxr-xr-x@ 13 root wheel 510 Oct 30 19:52 usr
    lrwxr-xr-x@ 1 root admin 11 Oct 30 17:57 var -> private/var
    and for the my user folder:
    drwxr-xr-x+ 22 adrian adrian 1156 Nov 3 02:30 .
    drwxr-xr-x 5 root admin 238 Nov 2 00:03 ..
    -rw-r--r-- 1 adrian adrian 3 Sep 13 22:41 .CFUserTextEncoding
    -rw-r--r--@ 1 adrian adrian 15364 Nov 5 21:50 .DS_Store
    -rw-r--r-- 1 adrian adrian 11 Oct 16 17:17 .PortAuthority2.4.rc
    drwx------ 2 adrian adrian 68 Nov 5 20:58 .Trash
    -rw-r--r-- 1 adrian adrian 0 Aug 16 04:37 .Xauthority
    -rw-r--r-- 1 adrian adrian 2552 Nov 5 22:43 .bash_history
    drwxr-xr-x 4 adrian adrian 136 Aug 17 21:11 .config
    drwxr-xr-x 8 adrian adrian 306 Aug 6 02:22 .dvdcss
    drwxr-xr-x 2 adrian adrian 578 Oct 21 19:32 .fontconfig
    -rw-r--r-- 1 adrian adrian 489724 Aug 30 17:49 .fonts.cache-1
    drwxr-xr-x 2 adrian adrian 68 Sep 14 17:40 .macports
    -rw-r--r-- 1 adrian adrian 1643 Aug 30 19:01 .mime.types
    -rw-r--r-- 1 adrian adrian 47 Oct 12 22:45 .parallels_settings
    -rw-r--r-- 1 adrian adrian 194 Sep 28 02:52 .profile
    drwxr-xr-x 3 adrian adrian 102 Sep 23 00:48 .stella
    drwxr-xr-x 2 adrian adrian 68 Aug 16 20:09 .wapi
    -rw-r--r-- 1 adrian adrian 467 Nov 5 04:21 .webaom
    -rw-r--r-- 1 adrian adrian 570 Aug 16 04:37 .xinitrc
    drwxr-xr-x 3 adrian adrian 170 Aug 5 08:10 Applications
    drwxr-xr-x+ 23 adrian adrian 1190 Nov 5 20:21 Desktop
    drwxrwxrwx+ 35 adrian adrian 2210 Nov 5 22:08 Documents
    drwxr-xr-x+ 14 adrian adrian 3332 Nov 5 20:02 Downloads
    drwxr-xr-x+ 48 adrian adrian 1836 Oct 30 19:11 Library
    drwxr-xr-x+ 9 adrian adrian 748 Nov 2 23:49 Movies
    drwxr-xr-x+ 8 adrian adrian 510 Sep 29 05:44 Music
    drwxr-xr-x 2 root adrian 68 Nov 3 02:30 New Folder
    drwxr-xr-x+ 6 adrian adrian 748 Oct 18 23:26 Pictures
    drwxrwxrwx+ 3 adrian adrian 238 Nov 4 20:34 Public
    drwxr-xr-x+ 3 adrian adrian 204 Aug 14 21:29 Sites
    drwxr-xr-x 3 adrian adrian 340 Oct 31 05:55 CompilationUnix
    -rw-r--r-- 1 adrian adrian 129 Oct 6 16:48 license.jai

    lllaass wrote:
    lizdance40, did you read the original post? The poster's problem is that when he connects the iPod to his computer the iPod does not appear in iTunes. He does not say he has a wifi problem with his iPod.
    lizdance40 wrote:
    You need to do an update on your router's firmware, or get a higher speed router..
    Or replace the router and or modem.  High demand can burn out a router in 2 years.  Typical life is about 4-5 at most.
    The new iPod is more advanced and if your router is slow or inconsistant signal your iPod will stop trying to connect to save your battery.
    of course he dose have a wifi problwm. read the last line of the original post

  • SSO to partner application running under IIS

    Hi,
    We have a complete set-up for 9iAS Release2 where some applications are running. In parallell we have an application running under IIS, and would now like to enable the IIS application as a partner application to 9iAS letting the 9iAS SSO server handle the authentication.
    In the documentation of Oracle Proxy Plug-in I read that this proxy plug-in can be used to proxy requests from IIS to Oracle http server (OHS) and also in this way enable SSO.
    My question is if this can be done only for applications running under 9iAS but having IIS as web server, or if it is also possible like in our case to enable SSO via the proxy plug-in to applications runnind under IIS?
    If this is not supported is the only available solution to use the SSO SDK in my IIS application?
    Thanks and regards,
    Rikard

    Here's a DIY answer.
    See Metalink Note 269820.1 which shows you how to use Perl to overwrite the host name in the HTTP header and remove the port number.

  • How to allow access to web service running under ApplicationPoolIdentity

    Hi All,
    I have a WCF web service hosted in IIS 7 (or maybe 7.5, whichever comes with Windows server 2008 R2) using DefaultAppPool running under ApplicationPoolIdentity per Microsoft's recommendation. The web service needs to call a stored procedure to insert data
    to a db. The web server is on a different VM than the database server. The db server is running SQL 2008 R2. Both VMs run Windows server 2008 R2.
    When the web service tries to connect to db, it encounters this exception:
    Exception in InsertToDb()System.Data.SqlClient.SqlException (0x80131904): Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
       at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
    Here's the connection string in web.config:
    Application Name=somewebservice;Server=somewebserver;Integrated Security=SSPI;Database=somedatabase;Connection Timeout=60"
    How should I configure SQL security to make this work?
    Thanks in advanced.

    Thanks for the link Dan. Maybe I'm the one who cause the confusion :)
    If I understand you(and Erland) correctly, you suggest using a custom, domain account for application pool identity. However, if we do that, our IT will need to maintain those accounts, and they don't  want that. So I'm choosing a built-in account called
    ApplicationPoolIdentity as the application pool identity, but it's not working. Network Service, on the other hand, works, but my boss wants us to follow MS's best practice.
    What's puzzling is that according to this: http://learn.iis.net/page.aspx/624/application-pool-identities/, both Network Service and ApplicationPoolIdentity uses machine account to access network resource (like db in this case), but in my case, Network Service
    works, but not ApplicationPoolIdentity.
    Hallo Stephen,
    with respect - it seems to me that only idiots are working at your IT ;)... It is absolutely useful to work with "service accounts" created within the domain. That's the only way to manage and control accounts!
    If you want to "pass through" the identity of the web user (SSO) you have to check whether the app pool is set to "allow impersonate". As far as I understand the ApplicationPoolIdentity-function the app pool will create a unique user named as the service.
    I assume that will not work with the connection to the sql server because this user is unknown.
    Local Service will not work because it's restriction is located to the local machine.
    Network Service will work because access to network resources will be available.
    So my recommendation is to use a dedicated service account or impersonation:
    http://msdn.microsoft.com/en-us/library/xh507fc5.aspx
    Uwe Ricken
    MCITP Database Administrator 2005
    MCITP Database Administrator 2008
    MCITS Microsoft SQL Server 2008, Database Development
    db Berater GmbH
    http://www-db-berater.de

Maybe you are looking for

  • How can I use multiple client side vlans in ACE?

    In CSM we have a default-gateway per Client VLAN, in ACE there is no equivalent command! How does the ACE handles routing in this situation?

  • Best practice to verify 'public' code for unauthorized changes

    Hi everybody, I have to make sure, that some "critical" classes within my project are only executed during runtime, when they are authorized by me. On the other hand these classes are not secret and the source is available for others. I thought about

  • Sample file link not working

    Hello - on this page: http://www.adobekb.com/working_with_master_pages.html, the link under "Deconstructing Site Layouts" - the link for "Download Sample Files" brings up an error. Can someone tell me where to get those files?

  • Brand new MacBook Pro & Youtube: Not working together

    I just bought this new MBP and whenever I go to watch a Youtube video, it encounters some serious difficulties. The videos load up to just a few seconds in and stop. If I drag the slider to any point in the video, it will play from that point, but on

  • Recovery mode, error 1015

    After trying to restore my iPhone 3g, it suddenly went into recovery mode so i tried to restore it and the error 1015 came up. What do i do to fix this?