minimize use of root account
Arthur Chance
freebsd at qeng-ho.org
Fri Feb 19 14:53:04 UTC 2016
On 19/02/2016 11:05, Polytropon wrote:
> On Fri, 19 Feb 2016 16:29:43 +1100, Yudi V wrote:
>> Hi all,
>>
>> currently I use the below script to load geli devices and import zpool. It
>> needs to be run as root.
>> how to run this script as normal user, is there a group that the user needs
>> to be part of?
>
> No, not for this task.
>
> There are different ways to do it.
>
> 1. You can set the script itself to "run as root" (chmod +s) when
> the script is owned by root:root. Regular users may then execute it.
I thought suid scripts were disabled years ago because they were a major
security loophole?
--
Moore's Law of Mad Science: Every eighteen months, the minimum IQ
necessary to destroy the world drops by one point.
More information about the freebsd-questions
mailing list