您的位置:首页 > 娱乐 > 明星 > 浏览器直接进入网站_外包公司与劳务派遣区别_浏览器2345网址导航下载安装_澎湃新闻

浏览器直接进入网站_外包公司与劳务派遣区别_浏览器2345网址导航下载安装_澎湃新闻

2025/1/15 11:44:17 来源:https://blog.csdn.net/u013718730/article/details/143139099  浏览:    关键词:浏览器直接进入网站_外包公司与劳务派遣区别_浏览器2345网址导航下载安装_澎湃新闻
浏览器直接进入网站_外包公司与劳务派遣区别_浏览器2345网址导航下载安装_澎湃新闻
Solutions

type sudo and password repeatly is a terrible thing

especially you are handling lots of command-line work

there are several ways to skip typing sudo and password

choose your own way after considering security issue cautionsly

Skip Password for Sudo

open sudo config file

sudo visudo

edit sudo script

root    ALL=(ALL:ALL) NOPASSWD:ALL
%admin  ALL=(ALL) NOPASSWD:ALL
%sudo   ALL=(ALL:ALL) NOPASSWD:ALL

then you don’t need to type password after use sudo command

Directly Delete Password
sudo passwd -d easing

then you don’t need to type password any more, as there is totally no password

even if outside command line, you won’t type it anywhere

Use Sudo for All Commands
sudo -s

this command means using super user doing all things below

then you don’t need to type sudo after this, but just for current terminal window

Grant Permissions to All User
sudo chmod -R 777 /home/<username>

this can help to decrease usage of sudo in a certain degree, when visit files under home dir

do not try to chmod for system dirs, such as / /etc /root /usr , which may cause unrecoverable damage to system

as linux will check permission for key files, if fails, all things will not work

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com