Nп/п : 79 из 100
 От   : hongy...@gmail.com                  2:5075/128        18 сен 23 22:04:14
 К    : All                                                   18 сен 23 08:09:02
 Тема : sed -i `/%sudo/c %sudo ALL=(ALL:ALL) NOPASSWD:ALL` /etc/sudoers
----------------------------------------------------------------------------------
                                                                                 
@MSGID:
<f1c33e51-6c3b-4e7a-ab15-fd694fdee755n@googlegroups.com> dabc9104
@REPLYADDR hongy...@gmail.com
<hongyi.zhao@gmail.com>
@REPLYTO 2:5075/128 hongy...@gmail.com
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID:
<f1c33e51-6c3b-4e7a-ab15-fd694fdee755n@googlegroups.com>
@TZUTC: -0700
@PID: G2/1.0
@TID: FIDOGATE-5.12-ge4e8b94
I noticed the following usage here [1]:

sed -i `/%sudo/c %sudo  ALL=(ALL:ALL)  NOPASSWD:ALL` /etc/sudoers
visudo -c

 But I`m puzzled by the `c` that appeared in the `/%sudo/c` part of
the sed command above. Any tips will be helpful.

[1] https://blog.51cto.com/u_4820306/5425575

Regards,
Zhao
--- G2/1.0
 * Origin: usenet.network (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5075/128
@PATH: 5075/128 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх