From owner-freebsd-questions Thu Aug 10 2: 9: 4 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail2.netcologne.de (mail2.netcologne.de [194.8.194.103]) by hub.freebsd.org (Postfix) with ESMTP id 8937B37BCEE for ; Thu, 10 Aug 2000 02:09:01 -0700 (PDT) (envelope-from pherman@frenchfries.net) Received: from bagabeedaboo.security.at12.de (dial-194-8-209-69.netcologne.de [194.8.209.69]) by mail2.netcologne.de (8.9.3/8.9.3) with ESMTP id LAA19815; Thu, 10 Aug 2000 11:08:59 +0200 (MET DST) Received: from localhost (localhost.security.at12.de [127.0.0.1]) by bagabeedaboo.security.at12.de (8.10.2/8.10.2) with ESMTP id e7A98TD59050; Thu, 10 Aug 2000 11:08:29 +0200 (CEST) Date: Thu, 10 Aug 2000 11:08:28 +0200 (CEST) From: Paul Herman To: Adam Hefetz Cc: freebsd-questions@FreeBSD.ORG Subject: Re: user permissions In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 10 Aug 2000, Adam Hefetz wrote: > Hi, > I have problems with my user permissions. When trying to reboot I get this: > > $ shutdown -r now > bash: /sbin/shutdown: Permission denied Indeed, you have to be super-user to use shutdown itself. However, if you are a member of the "operator" group, you can also use shutdown, because it is normally setuid root for the "operators" and no one else: -r-sr-x--- 1 root operator 164556 Jul 29 12:58 /sbin/shutdown So just add yourself to the operator group, and everything should be fine... EXCEPT when you... > I tried doing 'chown adam:wheel /sbin/shutdown' but then I get this message: > > shutdown: NOT super-user Now you've made it so that no-one but root may use shutdown. To change it back, do: chown root:operator /sbin/shutdown chmod 4550 /sbin/shutdown > Also, when I try using ppp I get this message: (mark already helped you there.) -Paul. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message