linux运维 - 当拿到手里一台新的linux服务器的时候,你是怎么建用户权限的?
PHP中文网
PHP中文网 2017-04-17 16:12:46
0
2
303

看过linux相关资料里面,都是警告不要用root帐号做操作。自己程序搭建过很多服务器,有的也是比着资料建用户体系。比如,安装mysql的时候,新建一个mysql的用户,用户组,然后用这个用户操作安装mysql,新建nginx的时候,同样的。。

但是,还有很多时候,为了方便拿着root就搞起了。
请问,在linux做用户操作权限的基本套路是什么?假设服务器有少数几个人去操作,而且一般只是启停类的操作。并不会像大型项目那样,有多个用户同时的操作服务器。

PHP中文网
PHP中文网

认证0级讲师

reply all(2)
左手右手慢动作

For processes, the user who executes the process is usually created.

General companies just use sudo+audit, or small companies with dozens of servers can just use sudo.

Of course, it is recommended to do an audit.

There are not many people, so you can do audits through the recording function of bash.

伊谢尔伦

For root operation, just set the startup user as a normal user! !

Large companies all use automated operation and maintenance, above the virtual layer + automated operation and maintenance tools!

A small company has dozens of servers with multiple operations and maintenance! Use a fortress machine! This is the so-called operation and maintenance audit!

Several people are doing start and stop operations, sudoer file restrictions!

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!