Define a digest for a command for multiple files in a sudoers configuration
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start by reading the sudoers documentation for command digests, command aliases, and sudoedit file arguments; the issue does not name a source file or test. Clarify whether and how a digest can be specified for sudoedit commands that are restricted to particular files, and document a working configuration or the limitation. Done means the documented guidance addresses the examples in the issue.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hi Team,
I am configuring sudo in my RedHat 8 node using the digest feature.
So for the command that needs full whitelisting, I am allowing using the below method which is working fine.
%my_group_name ALL=(ALL) NOPASSWD:SETENV: sha224:8c3f2dea6e13bb4a4fbed2314d6f2a1ba00f79c63faac6b2907f09bf8 /usr/bin/ls
But there are a few commands that I need to allow for limited files as -
Cmnd_Alias SUDOEDIT = sudoedit /etc/sudoers, sudoedit /var/log/audit/audit.log, sudoedit /etc/audit/auditd.conf
When I am allowing this using the below entry, it is not working.
**%my_group_name ALL=(ALL) NOPASSWD:SETENV: sha224:8c3f2dea6e13bb4a4fbed2314d6f2a1ba00f79c63faac6b2907f09bf8 SUDOEDIT **
OR
Defaults!SUDOEDIT digest_sha512=ad8a2af7358908c6ed8978c4104316b0f500b0c1432ae31b373e41559d3044fe4ce4d4c8b210754cb6ae2925316eec9384fa583c1122660d59e6e08c29a6e5e9
%my_group_name ALL=(ALL) NOPASSWD: SUDOEDIT
I need support on how to define any command when it needs to only allow specific files to be executed with a digest check.
- Ngôn ngữ chính
- C
- Star
- 1.7k
- Fork
- 306
- Merge trung bình
- 1 ngày 2 giờ
- Pull request đã merge (30 ngày)
- 22
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của sudo-project/sudo
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
sudo-project/sudo#583 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
sudo-project/sudo#581 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Signal forwarded to the command is lost when it arrives between fork() and execve() of the commandĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
sudo-project/sudo#566 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
sudo-project/sudo#553 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
sudo-project/sudo#552 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của sudo-project/sudo
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
libsdl-org/SDL#16607 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
PowerShell/Win32-OpenSSH#2482 · 1 reaction ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
OpenMathLib/OpenBLAS#6192 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 2 ngày