You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Deb Heller <de...@es.net> on 2009/08/28 22:43:14 UTC

Newbie question

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? 


Regards,
d

-- 
Deb Heller-Evans                1 Cyclotron Road
Computer Systems Engineer       Berkeley, CA 94720
ESnet  http://www.es.net/       Desk: 510/495-2243

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: Newbie question

Posted by Hari Kodungallur <hk...@gmail.com>.
On Fri, Aug 28, 2009 at 3:43 PM, Deb Heller <de...@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@subversion.tigris.org].