You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@archiva.apache.org by Cameron Jones <cm...@gmail.com> on 2007/08/24 12:58:11 UTC

Filesystem Users, Groups and Permissions

Hi,

I've got archiva installed under tomcat and running as a tomcat user.
My repository is located on a shared filesystem which is owned by the
repository owner and to allow tomcat to write to the directories i've
added it to the repository group and assigned write privileges to the
group.

Is there a way to get tomcat to write files under a different user or
group, or set the permissions on the new files? I've got a few things
running under tomcat so i don't really want to provide full access to
the repository but i'm not sure if there is any way of doing this.

Thanks,
Cam

Re: Filesystem Users, Groups and Permissions

Posted by Cameron Jones <cm...@gmail.com>.
Ok, i'll look at doing that. For the record i've got it all working ok
now. There was a couple of extra things i had to do to get it working
on tomcat (6.x), the nastiest was upgrading
to redback-xwork-integration-1.0-alpha-3-20070816.220359-1.jar to fix
the login issue when running under tomcat which essentially makes it
completely unusable since you can never gain access to the repository
through http.

I also just found that the file\directory permissions are set in your
maven settings.xml config in the <server> definition.

One thing which has me a bit perplexed is that when using the proxy
connectors sometimes a build fails if it needs a new artifact not yet
in the repository however on the next run it works fine.

Cam

On 8/24/07, Wendy Smoak <ws...@gmail.com> wrote:
> On 8/24/07, Cameron Jones <cm...@gmail.com> wrote:
>
> > I've got archiva installed under tomcat and running as a tomcat user.
>
> We've had multiple reports of problems running Archiva on Tomcat, if
> you've got it working, please share your setup and tips here:
> http://docs.codehaus.org/display/MAVENUSER/Archiva+on+Tomcat
>
> (Or just post to the list if that's easier and someone can update the page.)
>
> > Is there a way to get tomcat to write files under a different user or
> > group, or set the permissions on the new files? I've got a few things
> > running under tomcat so i don't really want to provide full access to
> > the repository but i'm not sure if there is any way of doing this.
>
> Not that I know of... I'd probably give Archiva its own Tomcat
> instance with separate permissions.
>
> --
> Wendy
>

Re: Filesystem Users, Groups and Permissions

Posted by Wendy Smoak <ws...@gmail.com>.
On 8/24/07, Cameron Jones <cm...@gmail.com> wrote:

> I've got archiva installed under tomcat and running as a tomcat user.

We've had multiple reports of problems running Archiva on Tomcat, if
you've got it working, please share your setup and tips here:
http://docs.codehaus.org/display/MAVENUSER/Archiva+on+Tomcat

(Or just post to the list if that's easier and someone can update the page.)

> Is there a way to get tomcat to write files under a different user or
> group, or set the permissions on the new files? I've got a few things
> running under tomcat so i don't really want to provide full access to
> the repository but i'm not sure if there is any way of doing this.

Not that I know of... I'd probably give Archiva its own Tomcat
instance with separate permissions.

-- 
Wendy