Date: Thu, 10 Aug 2000 11:08:28 +0200 (CEST) From: Paul Herman <pherman@frenchfries.net> To: Adam Hefetz <adam_hefetz@hotmail.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: user permissions Message-ID: <Pine.BSF.4.21.0008101103140.266-100000@bagabeedaboo.security.at12.de> In-Reply-To: <F254OeIiGXix4A2DreB00002d5a@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0008101103140.266-100000>