sudo和su在linux中 [英] sudo and su in linux

查看:82
本文介绍了sudo和su在linux中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么su和sudo命令需要是Set-UID程序。如果它们不会发生什么?

why "su" and "sudo" commands need to be Set-UID programs. What will happen if they are not?

推荐答案

这是一个安全问题。有些命令在没有根级访问的情况下不会执行。其中一些命令可能很危险,因此Linux不允许您错误地执行它们......
It's a matter of security. There are some commands that will not execute without root-level access. Some of those commands can be dangerous so Linux not allow you to execute them by mistake...


这篇关于sudo和su在linux中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆