sudo vim /etc/sudoers
wq!
sudo cat /etc/sudoers|grep prometheus
prometheus ALL=(ALL) NOPASSWD: ALL,!//su,!//bash,!/usr/sbin/visudo
[prometheus@cdh6-slave3 ~]$ cat /etc/sudoers
cat: /etc/sudoers: 权限不够
sudo vim /etc/sudoers save: wq!
7.4
CentOS Linux release 7.9.2009 (Core)
No response
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/vim/vim/issues/15126%40github.com.
I don't know how much this will help you, but check out the documentation on -R
and -M
, and -m
command line parameters.
Also, don't forget that whoever has more rights may pay less attention to conventions.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
sudo head -8 /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
And here, however, is the answer.
At the very top it says that you don't need to edit this file manually, you need to use the visudo utility to edit it.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
Closed #15126 as completed.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
And here, however, is the answer. At the very top it says that you don't need to edit this file manually, you need to use the visudo utility to edit it.
Tks, I found a new way to solve the problem, thank you for your help and have fun.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.