[SOLVED] How can i share cvs user home directory to all users of cvs
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How can i share cvs user home directory to all users of cvs
Hi
I had installed cvs server its works fine ..but i want to share cvs user home folder between all users..can someone help me out how can i share cvs users home folder........ i tried to connect cvs as root it delivering following error
Reason
could not connect toserver@192.168.1.5:/cvs:IOexecpetion error occurred
connection refused root not allowed
Thanks&Regards
arun
Last edited by jsaravana87; 10-18-2011 at 05:42 AM.
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Rep:
OK, keep in mind that nobody would actually do any work in ${CVSROOT} -- that's a no-no.
Best way I've fond is to add a group, say, cvs or cvsusers or something similar then add that group to your CVS users; you could do that with
Code:
groupadd cvs
Then
Code:
usermod -G -a cvs userid
or simply edit /etc/group and add the user(s) to the cvs line (comma separated list, no spaces).
Then, get logged in as root (or use su - or sudo) and do something like this (I have the CVS repository in /usr/local/cvsroot, yours may vary):
Code:
cd /usr/local
chgrp -R cvs cvsroot
find cvsroot -type d -exec chmod 775 {} \;
That will give your CVS users permissions to write in the repository and the directories in the repository. If you wish to keep all other users out of ${CVSROOT}, simply
Code:
chmod 770 /usr/local/cvsroot
and that will do that.
Your CVS users will be able to create new directories, check out existing directories, check changes back in and all the other things they need to do. It's not necessary that they
Code:
newgrp cvs
to work with CVS but it might be nice to train them to do so, along with
Code:
newgrp
to return to their default group when through working with CVS (see the newgrp manual page).
Users are expected to work in their own home directory in, say, a subdirectory named src, checking out from the repository there. Never, ever, should they work in the repository itself.
I had configured my cvs server /var/cvs path in centos...whenever user access the /var/cvs creating a folder it delivers them error permission denied
[root@bmw ~]# su - saravana
[saravana@bmw ~]$ cd /var/cvs/
[saravana@bmw cvs]$ ls
cvs CVSROOT ecae ecaret subash
[saravana@bmw cvs]$ cd subash/
[saravana@bmw subash]$ ls
ecae ecare ecarew
[saravana@bmw subash]$ mkdir dd
mkdir: cannot create directory `dd': Permission denied
[saravana@bmw subash]$ cd ..
[saravana@bmw cvs]$ mkdir ecare
mkdir: cannot create directory `ecare': Permission denied
[saravana@bmw cvs]$ cd ..
[saravana@bmw var]$
[saravana@bmw var]$ cd
[saravana@bmw ~]$ su - root
Password:
[root@bmw ~]# cd /var/cvs/
[root@bmw cvs]# ls
cvs CVSROOT ecae ecaret subash
[root@bmw cvs]# mkdir ecare
[root@bmw cvs]# chmod -R 777 ecare
[saravana@bmw cvs]$ cd ecare
[saravana@bmw ecare]$ ls
[saravana@bmw ecare]$ mkdir ty
mkdir: cannot create directory `ty': Permission denied
[saravana@bmw ecare]$
each and every time when ever one user create a folder in /var/cvs its delivering error..
i how can i have allow user to just access /var/cvs path and they should have all permision susch as del,modify,creata folder in /var/cvs ..other than that i should int get any permission other than that
Last edited by jsaravana87; 10-21-2011 at 08:36 AM.
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Rep:
Did you make note of OK, keep in mind that nobody would actually do any work in ${CVSROOT} -- that's a no-no.? I really meant it -- no -- and that means, zero, nobody -- does anything whatsoever in /var/cvs.
What a user does is, in a subdirectory of their home directory filled with source code (only source code, no binaries; no .o's, no executables) issue
Where "initial installation" can be any string you wish to use as a message; name_of_repository is the name for the group of files being imported into CVS, such as ty or ecare. The vendor and release tags are there to identify your vendor (if outside vendor is writing software for you) or release (version number -- it'll be 1.0 by default on import).
You do not create directories in ${CVSROOT} (/var/cvs in your case), cvs does that and manages all updates to any file in any repository directory (user check out a tree, change something, then check it back in using cvs). This is typical of all source code control systems.
You have two options: create a cvsusers group and add your users to that group or, if you don't care about any users being able to check out and modify anything, just use users, then
Code:
cd /var
chown -R root.cvsusers cvs < the safe way >
or
chown -R root.users cvs < the non safe way >
then
chmod 775 cvs < so the group can write >
[root@bmw ~]# useradd -d /var/cvs/ ashok
useradd: warning: the home directory already exists.
Not copying any file from skel directory into it.
[root@bmw ~]# useradd -d /var/cvs/ vijay
useradd: warning: the home directory already exists.
Not copying any file from skel directory into it.
[root@bmw ~]# setfacl -m u:ashok:rwx /var/cvs
[root@bmw ~]# setfacl -m u:vijay:rwx /var/cvs
[root@bmw ~]# groupadd permission
[root@bmw ~]# usermod -G permission ashok
[root@bmw ~]# usermod -G permission vijay
[root@bmw ~]# su - ashok
-bash-3.2$ cd /var/cvs/
-bash-3.2$ mkdir ashok
-bash-3.2$ cd ashok/
-bash-3.2$ ls
-bash-3.2$ touch ashok
-bash-3.2$
-bash-3.2$ logout
[root@bmw ~]# su - vijay
-bash-3.2$ cd /var/cvs/
-bash-3.2$ mkdir vijay
-bash-3.2$ cd vijay/
-bash-3.2$ touch vijay
-bash-3.2$ logout
[root@bmw ~]# su - vijay
-bash-3.2$ cd /var/cvs/
-bash-3.2$ ls
ashok cvs CVSROOT vijay
-bash-3.2$ rm -rf ashok/
rm: cannot remove `ashok//ashok': Permission denied
-bash-3.2$ logout
[root@bmw ~]# su - ashok
-bash-3.2$ cd /var/cvs/
-bash-3.2$ ls
ashok cvs CVSROOT vijay
-bash-3.2$ rm -rf vijay/
rm: cannot remove `vijay//vijay': Permission denied
-bash-3.2$ rm -rf vijay/
i added two user to a group but still one ashok could int del are modify the content made by vijay can someone say how can i get are modify other user conetnt
i added two user to a group but still one ashok could int del are modify the content made by vijay can someone say how can i get are modify other user conetnt
Apparently, you are not/have not read or understood the documentation. Re-read it, and try to pay attention to what it's telling you. Also, tronayne answered your questions in post #4, yet you didn't do or acknowledge ANYTHING in that post, and are amazed that it's not working.
Unless you follow the documentation, it won't work. Doesn't get much simpler than that.
Hi,
i read the complete manual im tring to make my user to login to bash shell and just they need to be accessed /var/cvs to create and modify and del it..Finally i could int find out document how to make out how to chage ownership of
usermod -G root ashok
usermod -G root vijay
even then adding user to rot priviledge i could int get thing works
Hi,
i read the complete manual im tring to make my user to login to bash shell and just they need to be accessed /var/cvs to create and modify and del it..Finally i could int find out document how to make out how to chage ownership of
usermod -G root ashok
usermod -G root vijay
even then adding user to rot priviledge i could int get thing works
Again, you are not reading/understanding the documentation. Did you not understand what tronayne said???
Quote:
Originally Posted by tronayne
You do not create directories in ${CVSROOT} (/var/cvs in your case), cvs does that and manages all updates to any file in any repository directory (user check out a tree, change something, then check it back in using cvs). This is typical of all source code control systems.
You use CVS to create users directories/groups WITHIN CVS. Their system-users have nothing to do with it.
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Rep:
Let's see if we can back up a little here -- is there some reason that you do not want your users to have an account on that system -- where they log in either directly or with SSH and have a home directory?
Could it be that they are not "local" users -- as they are using their own computers within your facility or perhaps remotely?
If that is the case -- they would be accessing CVS via an intranet or the internet -- then we need to implement CVS as a server.
When CVS is implemented as a server, remote machines can access it, check out source code, edit that code locally and then check in the changes they have made.
What you are doing is not going to work; in fact, you are well on your way to making a real mess of your system and this would be a real good time to stop what you're doing before you accidentally do something that will make a real mess. Sorry if that's harsh, but it's the truth.
If your CVS users are remote from your system -- they access it via intranet or internet -- I can help you set up CVS as a network service. But please, stop doing what you're doing -- it is not going to work.
As Druuna indicated there are some questions that should not be blithely answered and there are some LQ members that deserve more attention than just answering questions. Unless you don't understand the power of root yourself, that is. In this particular case the member (check previous threads) has repeatedly displayed poor communication skills and vestigial admin knowledge leading to him trying to do the right thing the wrong way more than a few times. Please keep that in mind.
Hi
i could int findout the command that all user in the group could access /var/cvs/cvsroot have full permission to del modfy other user content it never happens to me ..that y the reason i tried to make my user to act as root .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.