CVS permission settings

xiaoxiao2021-03-06  17

Different users set different access rights method Dalang 20040112 About permission management, I feel good

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 -a -r cvsuser zxh # Establish ZXH users with the same permissions with system user cvsuser, Enter two password cvs passwd -a -r cvsuser lxw # Establishing LXW Users have the same permissions with system user cvsuser. After entering-back, please enter two password cvs passwd -a -r administratro administrator #7772766336 Seeing the passwd files Two rows of lines ZXH: CUXQWLMDozhns: cvsuser # Middle-to-encrypted password, password uses UNIX standard CRYPT () function encryption Lxw: ZTUCMKUKZ6AP2: CVSUSER Administrator: On2stm4nif31Q: Administrator Step 3, using CVS users to log in to CVS In the default mode, it is to use the system user to log in. This will modify the configuration file config setting file config to the modified state to add the following row systemAuth = no #yes default value, indicating that if the user does not exist in the Passwd file, use the system user Check if the permission is correct # no indicates whether the user password permission is submitted correctly after passing (in setting up the config file systemauth = no, you need to create an admin file in the CVS Control Directory CVSROOT / Under the specified CVSNT, CVSNT Depending on this file to determine if a user is an administrator.

The content of the file is very a list of users. As follows: USER1 USER2 User3 These representatives USER1, USER2, and USER3 are administrators; before this CVS uses the server's administrator user as its own administrator user) Step 4, add file Writers, readers to control the read and write permission of the user Add two text files in the cvsroot directory, Writers, Readers Each line of content serve the username. Enter only the user who adds to Writers to submit users in the Add to Readers can only read the users in both files. Read in the Writers file Add to 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 Permission to read and write and control of this module

Step 7, download the directory to the local permission setting Checkout Module Checkout Module Select the Wolf's Work Directory 'LXWDIR' Checkout Module Select Happy Work Directory 'ZXHDIR' What is the choice of this selection Menu / Remote / Checkou Moudule in the open window Click the '...' button in the open window to select the Wolf's Work Directory OK button to determine the button

Step 8 Set 2 Users (LXW; ZXH) Select the module LxW to the access rights of your directory, and enter the following three commands in the command line, cvs chacl -r default: n cvs chacl -r lxw: RCW CVS LSACL selection module ZXH In command line input as follows 3 commands, CVS chacl -r default: n cvs chacl -r zxh: RCW CVS LSACL Description plus '-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 landing WinCVS, which can only checkou's respective modules LXWDIR, ZXHDIR to develop work in the local directory cvsroot directory when executing the cvs passwd -a -r cvsuser zxh. There is no associated user and password in the Passwd file and generate related users and passwords in the Passwd file under the server cvsroot directory.

If this is the case, it is a normal phenomenon because you didn't add a passwd control file into the CVS version control - file checkoutlist

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

New Post(0)