---
title: "如何让普通用户可以关机重启计算机"
author: "吕不为"
date: "2010-09-05T16:25:01Z"
tags: []
categories: ["操作系统"]
slug: "untitled"
draft: false
lastmod: "2010-09-05T16:25:01Z"
id: 755933
url: "https://lvbuwei.iteye.com/blog/755933"
---

我们知道，可以用sudo halt -p这样的命令，让普通用户关闭计算机。但是如何不使用sudo就可以让普通用户关闭计算机呢。

我们可以将用户加入到operator组中，这样就可以直接用命令halt -p关闭计算机了。

 

将用户test增加到operator组中

pw groupmod operator -m test