You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Jürgen Hermann (JIRA)" <ji...@apache.org> on 2007/03/30 14:38:25 UTC

[jira] Created: (SOLR-200) Scripts don't work when run as root in ~root and su'ing to a user

Scripts don't work when run as root in ~root and su'ing to a user
-----------------------------------------------------------------

                 Key: SOLR-200
                 URL: https://issues.apache.org/jira/browse/SOLR-200
             Project: Solr
          Issue Type: Bug
    Affects Versions: 1.1.0
            Reporter: Jürgen Hermann
            Priority: Minor
             Fix For: 1.1.0


This patch avoids an error due to permission problems when orig_dir is /root

-orig_dir=$(pwd)
-cd ${0%/*}/..
-solr_root=$(pwd)
-cd ${orig_dir}
+solr_root=$(cd ${0%/*}/.. && pwd)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SOLR-200) Scripts don't work when run as root in ~root and su'ing to a user

Posted by "Mike Klaas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-200?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Klaas updated SOLR-200:
----------------------------

    Fix Version/s:     (was: 1.1.0)

> Scripts don't work when run as root in ~root and su'ing to a user
> -----------------------------------------------------------------
>
>                 Key: SOLR-200
>                 URL: https://issues.apache.org/jira/browse/SOLR-200
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.1.0
>            Reporter: Jürgen Hermann
>            Priority: Minor
>
> This patch avoids an error due to permission problems when orig_dir is /root
> -orig_dir=$(pwd)
> -cd ${0%/*}/..
> -solr_root=$(pwd)
> -cd ${orig_dir}
> +solr_root=$(cd ${0%/*}/.. && pwd)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SOLR-200) Scripts don't work when run as root in ~root and su'ing to a user

Posted by "Mike Klaas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-200?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Klaas resolved SOLR-200.
-----------------------------

    Resolution: Won't Fix

It doesn't surprise me that "/root" as the indexdir and "/" as solr_home doesn't work, being root or not.  I don't think that this is an important case.

> Scripts don't work when run as root in ~root and su'ing to a user
> -----------------------------------------------------------------
>
>                 Key: SOLR-200
>                 URL: https://issues.apache.org/jira/browse/SOLR-200
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.1.0
>            Reporter: Jürgen Hermann
>            Priority: Minor
>
> This patch avoids an error due to permission problems when orig_dir is /root
> -orig_dir=$(pwd)
> -cd ${0%/*}/..
> -solr_root=$(pwd)
> -cd ${orig_dir}
> +solr_root=$(cd ${0%/*}/.. && pwd)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.