LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-05-2007, 08:06 AM   #1
ajeetraina
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu,Red Hat, Fedora
Posts: 292

Rep: Reputation: 30
SVN User authentication???


I have configured SVN in one of the Linux distros and tortoise SVN as a windows client.We have 15 developers working on one of the project with tortoise SVN.But I want to restrict group of users (say A) not to access project( say B).
As for now i can see two filesasswd and svnserve.conf.
So can anyobne help me with this authentication be provided as per the condition????
Pliz help.
 
Old 07-05-2007, 09:44 AM   #2
Ztyx
Member
 
Registered: Dec 2001
Location: Stockholm, Sweden
Distribution: Ubuntu, Kubuntu and Debian
Posts: 338

Rep: Reputation: 30
Hi ajiitraina,

Have a look att page 180 in the Subversion book:
http://svnbook.red-bean.com/nightly/en/svn-book.pdf

Regards,

Jens
 
Old 07-05-2007, 11:15 PM   #3
ajeetraina
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu,Red Hat, Fedora
Posts: 292

Original Poster
Rep: Reputation: 30
Hello,

Dude !!! I forget to inform you that I have configured SVN with svn protocol(svn://...) only no http and DAV.So pliz let me know how to go for it.I have only two files with db and README.TXT .

Pliz Help !!!!
 
Old 07-06-2007, 01:35 AM   #4
p_s_shah
Member
 
Registered: Mar 2005
Location: India
Distribution: RHEL 3/4, Solaris 8/9/10, Fedora 4/8, Redhat Linux 9
Posts: 237
Blog Entries: 1

Rep: Reputation: 34
Format of authz file :
http://tortoisesvn.net/docs/release/...-mod_authz_svn

Example:
http://svn.haxx.se/tsvnusers/archive-2006-10/0352.shtml
Code:
        *** passwd ***

        [users]
        fotini = fotinistricky
        hedley = hedleystricky
        kellie = kelliestricky
        neil = neilstricky

        *** authz ***
        [groups]
        training = fotini,hedley,kellie,neil

        [repository://localhost/svn-repos]
        training = rw
        * = r
This is For example only. Change files according to your path.
 
Old 07-08-2007, 11:35 PM   #5
ajeetraina
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu,Red Hat, Fedora
Posts: 292

Original Poster
Rep: Reputation: 30
Thanks shah,

I finally made things go around.Well, hope you will also help me with this also.

I have SVN ready and working with SVN protocol.My manager says take the Backup to the remote Windows Server.
I have written the script as :
--------------------------------------------------------------------------------
### /etc/cron.daily/svn-fullbackup for incre or full backup(not sure)

root@dicexx:/etc/cron.daily# vi svn-fullbackup
root@dicexx:/etc/cron.daily# cat svn-fullbackup


mount -t smbfs //1bangalore3/gice /mnt/win -o username=singhrainaa/groupinfra%Passw0rd,uid=singhrainaa
python /home/admin/svn-backup-dumps.py -z /home/admin/repo /mnt/win/
mail - "The Backup Is ready" root@localhost



root@dicexx:/etc/cron.daily#
So the script which I downloaded from net is working fine and I am taking the Backup from Linux to Windows machine.
Now with pretty things going around he wants me to put the zipped dump file named datewise just like 000.00038-02July2007 ..How can I go for it.

Help !!!
 
Old 07-09-2007, 02:18 AM   #6
p_s_shah
Member
 
Registered: Mar 2005
Location: India
Distribution: RHEL 3/4, Solaris 8/9/10, Fedora 4/8, Redhat Linux 9
Posts: 237
Blog Entries: 1

Rep: Reputation: 34
Script is not providing option for filename, so you have to change filename in python script only.

There is a function called create_dump in the script :
Code:
def create_dump(self, checkonly, overwrite, fromrev, torev=None):
...
filename = "%s.%s.svndmp" % (self.__reposname, r)
...
You are supposed tweak this line to add date.
I am not familiar with python, so i can't provide you exact syntax right now.
Here is the similar code in shell script.
Code:
#cat test.sh
TEMP1=`date +%d%b%Y`
echo $TEMP1
Meanwhile, I am trying to get hands on python. Will tell you if succeed.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
anon svn read-only over apache: '.svn/entries': No such file hedpe Linux - Software 2 04-29-2009 05:31 AM
SVN user permission help deepanvenkatesh Linux - Software 1 10-21-2006 10:38 PM
SVN Setup & User Permissions navvywavvy Linux - Security 3 12-05-2005 02:34 PM
NT user authentication hzhuang Linux - Security 2 08-11-2003 06:39 AM
Squid proxy with user authentication and user rights duvanhorn Linux - Networking 0 08-07-2003 03:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration