Re: ✘buildprep

John D. Bell jdb at systemsartisans.com
Sat Jan 21 12:48:39 UTC 2017


Eric,


     The old-school way to check this is "id | grep 'uid=0(' >/dev/null" 
and look at the exit status.  Has worked as far back as SunOS 4 and 
systems in that era; works AFAIK on all Linux distros.


   - John D. Bell


On 01/21/2017 01:50 AM, Eric S. Raymond wrote:
> Gary E. Miller <gem at rellim.com>:
>> Another issue with buildprep.  On Debian Jessie, it thinks I am not
>> root:
>>
>> # id
>>    uid=0(root) gid=0(root) groups=0(root)
>>
>>
>> #./buildprep
>>    # Preparing your system for ntpsec source build...
>>    # This script presently knows about Debian, Ubuntu, CentOS, Fedora, and SLES.
>>    # If you are running something else, such as MacOS or Solaris, please
>>    # follow the directions for by-hand installation in INSTALL.
>>    #
>>    #You must be running as root for your installer to do its thing.
> Hm...does Jessie not set $UID?
>
> What would you recommend as a test?
>
>
> _______________________________________________
> devel mailing list
> devel at ntpsec.org
> http://lists.ntpsec.org/mailman/listinfo/devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20170121/29d1a172/attachment.html>


More information about the devel mailing list