Permission Control for CVS + ACL in Linux

Source: Internet
Author: User
Article Title: Permission Control for CVS + ACL in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

I installed cvs-1.11.22-cvsacl-1.2.5-patched.tar.gz and used CVS + ACL for permission control under linux. But there are several problems:

1. According to the instructions on the acl website, perform initial configuration after installation and set the default permissions:

Execute cvs-d/opt/cvsroot racl ALL: r-r ALL, this is to set the default read-only permission for ALL users on the repository;

Then I run other acl commands, such as cvs-d/opt/cvsroot racl-l proj1. The system reports an error and the error message is as follows:

[Root @ bogon cvsroot] # cvs-d/opt/cvsroot racl-l proj1

* ** Glibc detected ** cvs: free (): invalid pointer: 0x098876ca ***
======= Backtrace: ============
/Lib/i686/nosegneg/libc. so.6 [0x428716]
/Lib/i686/nosegneg/libc. so.6 (cfree + 0x90) [0x42bc80]
Cvs [0x804d893]
Cvs [0x804dbb2]
Cvs [0x804e08f]
Cvs [0x804e471]
Cvs [0x808f3c0]
Cvs [0x806bfbd]
Cvs [0x808dff3]
Cvs [0x808e789]
Cvs [0x804c887]
Cvs [0x807c295]
Cvs [0x804cc1e]
Cvs [0x8079dc3]
/Lib/i686/nosegneg/libc. so.6 (_ libc_start_main + 0xdc) [0x3d4dec]
Cvs [0x804af41]
======= Memory map: ========
00135000-00136000 r-xp 00135000 0 [vdso]
003a1000-003bb000 r-xp 00000000 08: 0b 558590/lib/ld-2.5.so
003bb000-003bc000 r -- p 00019000 08: 0b 558590/lib/ld-2.5.so
003bc000-003bd000 rw-p 0001a000 08: 0b 558590/lib/ld-2.5.so
003bf000-004ff000 r-xp 00000000 08: 0b 558591/lib/i686/nosegneg/libc-2.5.so
004ff000-00501000 r -- p 00140000 08: 0b 558591/lib/i686/nosegneg/libc-2.5.so
00501000-00502000 rw-p 00142000 08: 0b 558591/lib/i686/nosegneg/libc-2.5.so
00502000-00505000 rw-p 00502000 0
00530000-00532000 r-xp 00000000 08: 0b 558592/lib/libdl-2.5.so
00532000-00533000 r -- p 00001000 08: 0b 558592/lib/libdl-2.5.so
00533000-00534000 rw-p 00002000 08: 0b 558592/lib/libdl-2.5.so
0054f000-00561000 r-xp 00000000 1288812/usr/lib/libz. so.1.2.3
00561000-00562000 rw-p 00011000/usr/lib/libz. so.1.2.3
00688000-00693000 r-xp 00000000 08: 0b 558600/lib/libgcc_s-4.1.2-20080102.so.1
00693000-00694000 rw-p rja000 08: 0b 558600/lib/libgcc_s-4.1.2-20080102.so.1
008f5000-00930000 r-xp 00000000 08: 0b 558607/lib/libsepol. so.1
00930000-00931000 rw-p 0003a000 08: 0b 558607/lib/libsepol. so.1
00931000-0093b000 rw-p 00931000 00:00 0
0093d000-00953000 r-xp 00000000 08: 0b 558608/lib/libselinux. so.1
00953000-00955000 rw-p 00015000 08: 0b 558608/lib/libselinux. so.1
00962000-00975000 r-xp 00000000 08: 0b 558604/lib/libnsl-2.5.so
00975000-00976000 r -- p 00012000 08: 0b 558604/lib/libnsl-2.5.so
00976000-00977000 rw-p 00013000 08: 0b 558604/lib/libnsl-2.5.so
00977000-00979000 rw-p 00977000 0
00a34000-00b51000 r-xp 00000000 08: 0b 558610/lib/libcrypto. so.0.9.8b
00b51000-00b64000 rw-p 0011c000 08: 0b 558610/lib/libcrypto. so.0.9.8b
00b64000-00b67000 rw-p 00b64000 00:00 0
00b69000-00b6b000 r-xp 00000000 08: 0b 558605/lib/libkeyutils-1.2.so
00b6b000-00b6c000 rw-p 00001000 08: 0b 558605/lib/libkeyutils-1.2.so
00baf000-00bb1000 r-xp 00000000 08: 0b 558609/lib/libcom_err.so.2.1
00bb1000-00bb2000 rw-p 00001000 08: 0b 558609/lib/libcom_err.so.2.1
00bb4000-00bc3000 r-xp 00000000 08: 0b 558606/lib/libresolv-2.5.so
00bc3000-00bc4000 r -- p rje000 08: 0b 558606/lib/libresolv-2.5.so
00bc4000-00bc5000 rw-p rjf000 08: 0b 558606/lib/libresolv-2.5.so
00bc5000-00bc7000 rw-p 00bc5000 00:00 0
00bc9000-00bd1000 r-xp 00000000 1282576/usr/lib/libkrb5support. so.0.1
00bd1000-00bd2000 rw-p 00007000 1282576/usr/lib/libkrb5support. so.0.1
00bd4000-00c64000 r-xp 00000000/usr/lib/libkrb5.so. 1288838
00c64000-00c67000 rw-p 0008f000 08:09 1288838/usr/lib/libkrb5.so. 3.3
00c69000-00c96000 r-xp 00000000/usr/lib/libgssapi_krb5.so.2.2
00c96000-00c97000 rw-p 0002d000 08:09 1288839/usr/lib/libgssapi_krb5.so.2.2
00c99000-00cbe000 r-xp 00000000/usr/lib/libk5crypto. so.3.1
00cbe000-00cbf000 rw-p 00025000 1288837/usr/lib/libk5crypto. so.3.1
05023000-0502c000 r-xp 00000000 08: 0b 557147/lib/libcrypt-2.5.so
0502c000-0502d000 r -- p 00008000 08: 0b 557147/lib/libcrypt-2.5.so
0502d000-0502e000 rw-p 00009000 08: 0b 557147/lib/libcrypt-2.5.so
0502e000-05055000 rw-p 0502e000 00:00 0
08048000-080de000 r-xp 00000000/usr/local/bin/cvs
080de000-080e1000 rw-p 00095000 1212448/usr/local/bin/cvs
080e1000-080e2000 rw-p 080e1000 00:00 0
09883000-098a4000 rw-p 09883000 0
B7e00000-b7e21000 rw-p b7e00000 0
B7e21000-b7f00000 --- p b7e21000 00:00 0
B7f45000-b7f49000 rw-p b7f45000 0
B7f5e000-b7f60000 rw-p b7f5e000 0
Bfe83000-bfe98000 rw-p bfe83000 0 [stack]
Cvs [racl aborted]: received abort signal

What is this? When I enter/CVSROOT/access and cancel the default permission set, no error is reported. In addition, it is no problem to set permissions for individual users or groups. You can set permissions for ALL.

2. using acl to set a user's permission for a module to n (without any permission): Then, the user can retrieve the module from the client or retrieve all subfolders, only the files in the file cannot be seen. I want n users to not see all the content in the module. How should I set it?

When no acl is used in the past, I used chown and chmod to set the permission. If no permission is set, the folders and files in the module cannot be obtained. I want to use ACL to achieve this effect, instead of seeing the subfolders in it.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.