[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Owner on Unix file

From: Bob Proulx <bob_at_proulx.com>
Date: 2005-07-17 19:45:21 CEST

On Wednesday 13 July 2005 23:09, Albert Shih wrote:
> I've a repository for my web-site. All my file is in this repository. But
> I don't work directely on the web-server. After I commit from my computer I
> go to web server and make a svn update.
>
> But...after that the new file have root for owner (that's normal because I
> run svn update on root account). But I want the owner is other (eg : www).
> Many time this account www don't have shell I can run svn update under this
> account.

When I run into this case I just use the superuser power of root to
chown the own to the www web user.

  svn update
  chown -R www-data:www-data .

Since this is only a problem for root (on modern systems non-root
users can't give away ownership) it only needs to be solved for the
root user.

Bob

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Jul 17 19:47:01 2005

This is an archived mail posted to the Subversion Users mailing list.