Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Feb 2016 14:52:53 +0000
From:      Arthur Chance <freebsd@qeng-ho.org>
To:        Polytropon <freebsd@edvax.de>, Yudi V <yudi.tux@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: minimize use of root account
Message-ID:  <56C72C45.2050606@qeng-ho.org>
In-Reply-To: <20160219120503.fc97ef10.freebsd@edvax.de>
References:  <CACo--mv9qU2ZwtTuZRQBpioEr%2BenT=sd-SJ79BFumZt5aL18jg@mail.gmail.com> <20160219120503.fc97ef10.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56C72C45.2050606>