---
title: "普通用户增加sudo权限"
author: "mrjeye"
date: "2011-05-19T10:46:54Z"
tags: ["Bash", "F#"]
categories: ["操作系统"]
slug: "sudo"
draft: false
lastmod: "2011-05-19T10:46:54Z"
id: 1049954
url: "https://mrjeye.iteye.com/blog/1049954"
---

修改/etc/sudoers文件，修改命令必须为visudo才行

　　#/usr/sbin/visudo -f /etc/sudoers

　　在root ALL=(ALL) ALL 之后增加

　　yourusername ALL=(ALL) ALL

　　普通用户的.bash_profile文件在PATH变量中增加

　　/sbin;/usr/sbin;/usr/local/sbin;/usr/kerberos/sbin