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

Re: Newbie question

From: Hari Kodungallur <hkodungallur_at_gmail.com>
Date: Fri, 28 Aug 2009 16:15:28 -0700

On Fri, Aug 28, 2009 at 3:43 PM, Deb Heller <deb_at_es.net> wrote:

> Hello,
>
> I'm using the following:
>
> CentOS v5.3
> subversion-1.4.2-4.el5_3.1
>
> The subversion pkg was downloaded from the CentOS repo. I know that this
> version is waaay behind the code release, but that's what we have for
> the moment. If my problem has been fixed in a later version, then I'll
> update for sure. My problem is that I'm losing the group id on files
> when checked out from the repo.
>
> As a root user, the dir/files I intend to import as a tree are listed
> here. Please note that the group id name either root or users:
>
> drwx------ 2 root root 4096 Aug 24 09:30 bin/
> drwx------ 2 root root 4096 Aug 28 14:21 inputs/
> drwxr-xr-x 2 root users 4096 Aug 24 09:30 lastseen/
> drwxr-xr-x 2 root root 4096 Aug 24 09:29 lib/
> drwx------ 2 root root 4096 Aug 24 09:29 masterfiles/
> drwx------ 2 root users 4096 Aug 24 09:30 modules/
> drwx------ 2 root root 4096 Aug 24 02:39 outputs/
> drwx------ 2 root root 4096 Aug 24 09:30 ppkeys/
> -rw-r--r-- 1 root users 1024 Aug 24 09:30 randseed
> drwxr-xr-x 2 root users 4096 Aug 24 09:30 reports/
> drwx------ 2 root users 4096 Aug 24 09:30 rpc_in/
> drwx------ 2 root users 4096 Aug 24 09:30 rpc_out/
> drwxr-xr-x 2 root users 4096 Aug 24 09:30 state/
>
> When I do a svn checkout of the tree, the listing shows that copy
> inherits my root id (uid=0(root) gid=100(users) groups=100(users)):
>
> drwxr-xr-x 3 root users 4096 Aug 28 15:15 bin/
> drwxr-xr-x 3 root users 4096 Aug 28 15:15 inputs/
> drwxr-xr-x 3 root users 4096 Aug 28 15:15 lastseen/
> drwxr-xr-x 3 root users 4096 Aug 28 15:15 lib/
> drwxr-xr-x 3 root users 4096 Aug 28 15:15 masterfiles/
> drwxr-xr-x 3 root users 4096 Aug 28 15:15 modules/
> drwxr-xr-x 3 root users 4096 Aug 28 15:15 outputs/
> drwxr-xr-x 3 root users 4096 Aug 28 15:15 ppkeys/
> -rw-r--r-- 1 root users 1024 Aug 28 15:15 randseed
> drwxr-xr-x 3 root users 4096 Aug 28 15:15 reports/
> drwxr-xr-x 3 root users 4096 Aug 28 15:15 rpc_in/
> drwxr-xr-x 3 root users 4096 Aug 28 15:15 rpc_out/
> drwxr-xr-x 3 root users 4096 Aug 28 15:15 state/
>
> So my question is, how can I maintain the correct user permission on
> dir/files when checked out?
>

Subversion does not version the user/group/permissions of files.
Your id and umask at the time of checkout are the only ones that influence
the user/group/permissions of the files when checked out (well, actually
svn:executable flag also plays a role).

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2388414

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-08-29 01:16:26 CEST

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.