UBUNTU AND SUDO
来源:互联网 发布:犀牛软件 mac 破解版 编辑:程序博客网 时间:2024/06/05 23:53
One of the recurrent problems for regular users is how to perform certain tasks that require superuser privileges. These tasks include installing and updating software, editing system configuration files, and accessing devices. In the Win-dows world, this is often done by giving users administrative privileges. This allows users to perform these tasks. However, it also enables programs executed by the user to have the same abilities. This is desirable in most cases, but it also permits malware (malicious software) such as viruses to have free run of the computer.
In the Unix world, there has always been a larger division between reg-ular users and administrators, owing to the multiuser heritage of Unix. The approach taken in Unix is to grant superuser privileges only when needed. To do this, the su and sudo commands are commonly used.
Up until a few of years ago, most Linux distributions relied on su for this purpose. su didn’t require the configuration that sudo required, and having a root account is traditional in Unix. This introduced a problem. Users were tempted to operate as root unnecessarily. In fact, some users operated their sys-tems as the root user exclusively, because it does away with all those annoying “permission denied” messages. This is how you reduce the security of a Linux system to that of a Windows system. Not a good idea.
When Ubuntu was introduced, its creators took a different tack. By default, Ubuntu disables logins to the root account (by failing to set a password for the account) and instead uses sudo to grant superuser privileges. The initial user account is granted full access to superuser privileges via sudo and may grant sim-ilar powers to subsequent user accounts.
In the Unix world, there has always been a larger division between reg-ular users and administrators, owing to the multiuser heritage of Unix. The approach taken in Unix is to grant superuser privileges only when needed. To do this, the su and sudo commands are commonly used.
Up until a few of years ago, most Linux distributions relied on su for this purpose. su didn’t require the configuration that sudo required, and having a root account is traditional in Unix. This introduced a problem. Users were tempted to operate as root unnecessarily. In fact, some users operated their sys-tems as the root user exclusively, because it does away with all those annoying “permission denied” messages. This is how you reduce the security of a Linux system to that of a Windows system. Not a good idea.
When Ubuntu was introduced, its creators took a different tack. By default, Ubuntu disables logins to the root account (by failing to set a password for the account) and instead uses sudo to grant superuser privileges. The initial user account is granted full access to superuser privileges via sudo and may grant sim-ilar powers to subsequent user accounts.
- tomcat配置文件server.xml详解
- SOME SPECIAL PERMISSIONS
- IDC分析师观点:视频会议是未来五年中国统一通信市场增长的主要驱动力,统一通信产品IP化趋势愈加明显
- assert()函数用法总结
- 为什么在析构函数中不应该抛出异常?
- UBUNTU AND SUDO
- oj 他胖吗
- 背包问题(2)01背包 Bone Collector
- Lucene的Version字段探索
- PLSQL Developer 连接 Oracle数据库
- OC 字符串操作
- 基于VTK的任意平面切割
- Java 7之基础 - 浅克隆与深克隆
- 如何利用【百度地图API】,制作房产酒店地图?(下)——结合自己的数据库