Login | Register
My pages Projects Community openCollabNet

Discussions > users > file permission on checkout

fsvs
Discussion topic

Hide all messages in topic

All messages in topic

Re: file permission on checkout

Author pmarek
Full name P.Marek
Date 2010-08-16 12:09:04 PDT
Message Hello Steve,

> could someone tell me what the permissions are that
> fsvs uses when checking
> out from a repo?
> I get the strangest data. I have checked out a large
> repo as root and some
> files are owned by nfsnobody, others have 777
> permission etc...
The defaults are IIRC the current user and primary group,
and 0700.

> Where are these permissions coming from and is there
> a way I can check this?
They are stored in the properties.

Just try "svn pl -v repos-url-of-entry", where the url can
be seen by e.g. "fsvs info filename"


Regards,

Phil


--
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

file permission on checkout

Author cobolt
Full name steve caster
Date 2010-08-16 10:38:26 PDT
Message Hi all

could someone tell me what the permissions are that fsvs uses when checking
out from a repo?
I get the strangest data. I have checked out a large repo as root and some
files are owned by nfsnobody, others have 777 permission etc...
Where are these permissions coming from and is there a way I can check this?

best regards

Steve
 
----------------original message-----------------
From: "Philipp Marek"
To: "steve caster" steve at c2root dot be
CC: "users" users at fsvs dot tigris dot org
Date: Mon, 16 Aug 2010 15:14:02 +0200 (CEST)
--------------------​--------------------​---------
 
 
> Hello Steve!
>
>> I have just check and get anotehr ? at the end like
>> ..p..? 5164 Canon/PCL Printer Driver Nl.
>> v.6.85/winnt40/pcl6/​iR9070XH.xp_
>>
>> when I do a revert of the Canon folder I need to log in to the fsvs
server.
>> What does the ? stand for?
> http://doc.fsvs-soft​ware.org/doxygen-gif​/group__cmds.html#st​atus
>
> p = permissions (owner, group, mode)
> ? means that the file size is the same, but that FSVS didn't do a whole
file
> MD5 check to verify the equal-ness. (But see change detection at
>
> http://doc.fsvs-soft​ware.org/doxygen-gif​/group__options.html​#o_chche
> ck
> for more details.)
>
>
> The login is just a preparation, in case anything is needed from the
> repository (AFAIR ;-)
>
>
> Regards,
>
> Phil
>
>
> --
> Versioning your /etc, /home or even your whole installation?
> Try fsvs (fsvs.tigris.org)!
>
>

Re: fsvs local changed by accident

Author pmarek
Full name P.Marek
Date 2010-08-16 06:14:14 PDT
Message Hello Steve!

> I have just check and get anotehr ? at the end like
> ..p..? 5164 Canon/PCL Printer Driver Nl. v.6.85/winnt40/pcl6/​iR9070XH.xp_
>
> when I do a revert of the Canon folder I need to log in to the fsvs server.
> What does the ? stand for?
http://doc.fsvs-soft​ware.org/doxygen-gif​/group__cmds.html#st​atus

p = permissions (owner, group, mode)
? means that the file size is the same, but that FSVS didn't do a whole file
MD5 check to verify the equal-ness. (But see change detection at
http://doc.fsvs-soft​ware.org/doxygen-gif​/group__options.html​#o_chcheck
for more details.)


The login is just a preparation, in case anything is needed from the
repository (AFAIR ;-)


Regards,

Phil


--
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

Re: fsvs local changed by accident

Author cobolt
Full name steve caster
Date 2010-08-16 05:17:25 PDT
Message Hi Philip

I have just check and get anotehr ? at the end like
..p..? 5164 Canon/PCL Printer Driver Nl. v.6.85/winnt40/pcl6/​iR9070XH.xp_

when I do a revert of the Canon folder I need to log in to the fsvs server.
What does the ? stand for?

best regards

Steve
----------------original message-----------------
From: "Philipp Marek"
To: "steve caster" steve at c2root dot be
CC: "users" users at fsvs dot tigris dot org
Date: Mon, 16 Aug 2010 14:10:34 +0200 (CEST)
--------------------​--------------------​---------
 
 
> Hello Steve!
>
>> we have the following setup in the field:
>>
>> windows server which sync to a linux server running fsvs. When setting up
>> the server I did an fsvs check out using the root user (stupid me)
therefore
>> all files checked out have rootas user.
>>
>> Now the smb running on that server did a sync and changed the ownership
to
>> nobody. The files are the same. I found that the copy script not only
looks
>> at the file itself but also at the creation time.
>>
>> Is there a way I can revert to the original files, without having to
>> download the original file from the server?
> If *only* the meta-data has changed (mtime, owner, group, or mode),
> FSVS should see this, and show the files with only meta-data changes
> (so no "C"):
>
> root@cacao:/etc # ls -la passwd ; fsvs st -v passwd
> -rw-r--r-- 1 root root 1641 2. Aug 08:57 passwd
> ...... 1641 passwd
> root@cacao:/etc # touch passwd ; chown 1.2 passwd ; fsvs st -v passwd
> .tp... 1641 passwd
>
> Furthermore a "revert" will use the local information to fix the
meta-data:
>
> root@cacao:/etc # fsvs revert passwd ; ls -la passwd
> Reverting to revision 26:
> .m.. 1641 passwd
> -rw-r--r-- 1 root root 1641 2. Aug 08:57 passwd
>
> (This shows that meta-data was fixed, ie. the previous status.)
>
>
>> Second Q:
>>
>> can I move a local copy from one client to another client? I mean, can I
>> copy the /etc/fsvs and /var/spool/fsvs folder + the data from 1 client to
>> another? We are talking over +100 GB of data.
> Well, copying /etc/fsvs and /var/spool/fsvs should work, too.
> There's nothing host-specific there (at least if BDB is byte-order
compatible
> etc.)
>
> The "normal", suggested way would be to copy the data with whatever means
> (tape, harddisk, rsync, scp, tar | netcat, etc.), and doing
> fsvs urls ....
> fsvs sync-repos
>
> to get a clean filelist in the new working copy.
>
> This is mostly time-bound by the number of files, as FSVS unfortunately
> has to query the repository in two ways to get the filesize *and* the
original
> meta-data.
>
>
> Regards,
>
> Phil
>
>
> --
> Versioning your /etc, /home or even your whole installation?
> Try fsvs (fsvs.tigris.org)!
>
>
>

Re: fsvs local changed by accident

Author pmarek
Full name P.Marek
Date 2010-08-16 05:10:42 PDT
Message Hello Steve!

> we have the following setup in the field:
>
> windows server which sync to a linux server running fsvs. When setting up
> the server I did an fsvs check out using the root user (stupid me) therefore
> all files checked out have rootas user.
>
> Now the smb running on that server did a sync and changed the ownership to
> nobody. The files are the same. I found that the copy script not only looks
> at the file itself but also at the creation time.
>
> Is there a way I can revert to the original files, without having to
> download the original file from the server?
If *only* the meta-data has changed (mtime, owner, group, or mode),
FSVS should see this, and show the files with only meta-data changes
(so no "C"):

    root@cacao:/etc # ls -la passwd ; fsvs st -v passwd
    -rw-r--r-- 1 root root 1641 2. Aug 08:57 passwd
    ...... 1641 passwd
    root@cacao:/etc # touch passwd ; chown 1.2 passwd ; fsvs st -v passwd
    .tp... 1641 passwd

Furthermore a "revert" will use the local information to fix the meta-data:

    root@cacao:/etc # fsvs revert passwd ; ls -la passwd
    Reverting to revision 26:
    .m.. 1641 passwd
    -rw-r--r-- 1 root root 1641 2. Aug 08:57 passwd

(This shows that meta-data was fixed, ie. the previous status.)


> Second Q:
>
> can I move a local copy from one client to another client? I mean, can I
> copy the /etc/fsvs and /var/spool/fsvs folder + the data from 1 client to
> another? We are talking over +100 GB of data.
Well, copying /etc/fsvs and /var/spool/fsvs should work, too.
There's nothing host-specific there (at least if BDB is byte-order compatible
etc.)

The "normal", suggested way would be to copy the data with whatever means
(tape, harddisk, rsync, scp, tar | netcat, etc.), and doing
    fsvs urls ....
    fsvs sync-repos

to get a clean filelist in the new working copy.

This is mostly time-bound by the number of files, as FSVS unfortunately
has to query the repository in two ways to get the filesize *and* the original
meta-data.


Regards,

Phil


--
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

fsvs local changed by accident

Author cobolt
Full name steve caster
Date 2010-08-16 04:28:17 PDT
Message Hi all,

 

we have the following setup in the field:

windows server which sync to a linux server running fsvs. When setting up
the server I did an fsvs check out using the root user (stupid me) therefore
all files checked out have rootas user.

Now the smb running on that server did a sync and changed the ownership to
nobody. The files are the same. I found that the copy script not only looks
at the file itself but also at the creation time.

Is there a way I can revert to the original files, without having to
download the original file from the server?

Second Q:

can I move a local copy from one client to another client? I mean, can I
copy the /etc/fsvs and /var/spool/fsvs folder + the data from 1 client to
another? We are talking over +100 GB of data.

best regards

 

Steve
Attachments
Messages per page: