Fedora sudoers中新增使用者

2021-08-22 02:30:02 字數 389 閱讀 7104

在一般使用者下執行sudo命令提示llhtiger is not in the sudoers file. this incident will be reported.解決方法:

一、$whereis sudoers -------

找出檔案所在的位置,預設都是/etc/sudoers

二、 #chmod u+w /etc/sudoers 

三、vim /etc/sudoers 編輯檔案,在root all=(all)all行下新增*** all=(all)all,***為你的使用者名稱。

新增方法:找到root行,按下」i「鍵進入編輯模式新增即可!編輯好後esc鍵進入一般模式,「: wq"儲存退出!

最後, #chmod u-w /etc/sudoers 回到檔案的原許可權!

springcloud向consul中新增微服務

pom相關依賴 org.springframework.cloud spring cloud starter consul discovery yaml配置示例 consul服務埠號 server port 8006 spring name consul provider payment consu...

android LinearLayout新增分隔線

linearlayout支援直接顯示分隔線。設定標籤的 android showdividers屬性可以再linearlayout的相應位置顯示分隔線。如果有多個linearlayout,顯示效果和在 linearlayout之間加分隔線是一樣的。android showdividers屬性可以設定...

iOS中uitableview滑動刪除新增按鈕

一 如果我們不新增任何按鈕,直接需要乙個刪除的話,很簡單 void tableview uitableview tableview commiteditingstyle uitableviewcelleditingstyle editingstyle forrowatindexpath nsinde...