Win2000 CVS Different users set different access rights methods

xiaoxiao2021-03-06  35

Have a user 1: lxw; user 2: zxh has a module :: lxwdir; user 2 module: zxhdir requires LXW only access LXWDIR; ZXH can only access ZXHDIR

Step 1, Set the CVS library configuration file (module cvsroot) access method method: establish a superuser's work directory WinCvsadmin a. Log in to the WinCVS B.checkout library control file Checkout moudl 'cvsroot' with CVSNT Server Super User Administrtor, this directory The next file is the advanced profile of CVS, you can modify it locally, submit it, itself is in version control, modify the CVSROOT access, after the command line input as the following command #, does not need to enter each line command Execute alone, this is 4 commands CVS Chakl default: n # Cancel all users' default permissions CVS Chakl Administrator: RCW # Set the Administrator owns all permissions read; create and delete; write CVS Chown Administrator # Change owner administrator CVS LSACL # Viewing the setting of permissions Step 2, establishing a CVS user can use the WinNT system as a user, access CVS, but this method is too bad to establish a CVS own user a. Create a Winnt system user CvSuser, permission is set to a general user, as long as you can access Winnt, you can b. Create a password file passwd, create a file directly in the server cvsroot directory, you can passwD for security reasons, do not list the passwd in the CheckoutList file. C. Create a CVS user Enter the WinCVS command line Enter the command cvs passwd -r cvsuser -a zxh user has the same permissions with the system user cvsuser, enters two passwords CVS passwd -r cvsuser -a lxw # Establishing LXW users with the same permissions with system user cvsuser. After entering-back, I will entertain the password cvs passwd -r administratro -a administrator. Establish the same authority as the system user administrator. After entering the return, please enter two passwords See the passwd files Two rows of lines ZXH: Cuxqwlmdozhns: cvsuser # Middle into the encrypted password, password uses UNIX standard CRYPT () function encryption LXW: ZTUCMKUKZ6AP2: CVSUSER Administrator: On2STM4NIF31Q: Administrator

Step 3, use the CVS user to log in to log in to the default mode, which is used in the default mode, which is to modify the configuration file config setting file config to the modified status to the following line systemAuth = no #yes default value, indicating if the user is There is no existence in the passwd file, use the system user check the permissions to correct if the user password permission is submitted correctly after password authority (in setting up the config file systemauth = no, it is necessary to establish the application in the CVS Control Directory CVSROOT / Under the CVS file. Specify the file of the administrator list of CVSNT, CVSNT determines whether a user is an administrator based on this file. The content of the file is a list of users. As follows: user1 user2 user3 These representative USER1, USER2, USER3 are administrators; here Previous CVS uses the server's administrator user as its own administrator user) Step 4, add file Writers, readers to read and write two text files under the cvsroot directory, Writers, Readers, each of the contents of each line Name Only users who join Writers can submit users in the Add to Readers can only read the users in the two files can only read them in the Writers file to join the following ZXH LXW Administrator.

Step 5, configure the CVS library module file --Modules a. Set the MODUES file to editable status b. Add the following 3 lines of Cvsroot Cvsroot Big Wolf's Work catalog -a lxwdir Happy Work catalog -A ZXHDIR C. Save Submit commit step 6, upload the work directory for 2 users, selected LXW's work directory 'lwdir' import module Check ZXHDIR 'Import Module Note: Uploaded directorys cannot be empty directory, underneath must have files () After the file is uploaded, then the 2 directory OR renames (supplementation methods) are deleted: Packet: The same user is divided into a group, which is convenient to maintain. It is the meaning of the role, the group is used in pairs The division of module access. Method: a. Create a new file groupb in the server-side cvsroot directory. Establish group group1, group2, group file contents of Group1: user1 user2 user3 group2: user5 user6 user7c. After the group is divided, and Like a single user, you can have the same permissions in the group, such as selected modules, execute the following command chacl -r default: n cvs chacl -r group1: RCW CVS LSACL can make, user user1 user2 user3 The read and write and control of the module sessile 7, download the directory to the local permission settings Checkout Module Checkout Module Select the Wolf's Work Directory 'lxwdir' Checkout Module Select Happy Work Directory 'zxhdir' What is the choice menu / remove / checkou moudule In the Open window Click the '...' button to select the Wolf's Work Directory OK button to determine the button on page 8 Set 2 Users (LXW; ZXH) Select the module for the access rights of their respective directories LXW, enter the following three commands in the command line, cvs chacl -r default: n cvs chacl -r lxw: RCW CVS LSACL Select the module ZXH, enter the following three commands in the command line, cvs chacl -r default: n CVS chacl - R ZXH: RCW CVS LSACL Description Add '-r' parameter indicates that the permissions of the module are recursive. Explain: If the directory structure DIRA | --- Dira1 | --- Dira2 command: CVS chacl default: n Only valid for the directory DIRA, and the subdirectory invalid CVS chacl -r default: n pairs DIRA and its underlying catalog Effective June 9 has completed setting with user LXW or ZXH to log in WinCVS, which can only CHECKOU LXWDIR, ZXHDIR for the corresponding development work.

转载请注明原文地址:https://www.9cbs.com/read-60915.html

New Post(0)