Bug 224038

Summary: 11.1-STABLE Vagrant box seems to have no sudo installed
Product: Base System Reporter: Guangyuan Yang <ygy>
Component: miscAssignee: FreeBSD Release Engineering <re>
Status: Closed Unable to Reproduce    
Severity: Affects Some People    
Priority: ---    
Version: 11.1-STABLE   
Hardware: Any   
OS: Any   

Description Guangyuan Yang freebsd_committer freebsd_triage 2017-12-02 14:28:19 UTC
yzgyy@YGY-THINK C:\VagrantBoxes\FreeBSD 11.1-STABLE
> vagrant box update
==> default: Checking for updates to 'freebsd/FreeBSD-11.1-STABLE'
    default: Latest installed version: 2017.11.30
    default: Version constraints:
    default: Provider: virtualbox
==> default: Box 'freebsd/FreeBSD-11.1-STABLE' (v2017.11.30) is running the latest version.

vagrant@freebsd:~ % uname -a
FreeBSD freebsd 11.1-STABLE FreeBSD 11.1-STABLE #0 r326381: Thu Nov 30 02:44:37 UTC 2017     root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
vagrant@freebsd:~ % sudo
sudo: Command not found.
vagrant@freebsd:~ % ls /usr/local/bin | grep sudo
vagrant@freebsd:~ %
Comment 1 Glen Barber freebsd_committer freebsd_triage 2017-12-04 15:10:44 UTC
I am unable to reproduce this.

vagrant@freebsd:~ % uname -a
FreeBSD freebsd 11.1-STABLE FreeBSD 11.1-STABLE #0 r326381: Thu Nov 30 02:44:37 UTC 2017     root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

vagrant@freebsd:~ % sudo
usage: sudo -h | -K | -k | -V
usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user]
usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command]
usage: sudo [-AbEHknPS] [-C num] [-c class] [-g group] [-h host] [-p prompt] [-T timeout] [-u user] [VAR=value] [-i|-s] [<command>]
usage: sudo -e [-AknS] [-C num] [-c class] [-g group] [-h host] [-p prompt] [-T timeout] [-u user] file ...
vagrant@freebsd:~ % which sudo
/usr/local/bin/sudo

Could you provide more information, such as the host OS, host OS version, and VirtualBox version?
Comment 2 Glen Barber freebsd_committer freebsd_triage 2017-12-04 16:10:20 UTC
Oops.  I did not notice it was already closed.
Comment 3 Guangyuan Yang freebsd_committer freebsd_triage 2017-12-05 02:20:51 UTC
(In reply to Glen Barber from comment #1)

Hi, sorry for the confusion. I actually still have problems with this, on my Windows machine running latest Windows, Virtualbox and Vagrant, and sudo was not installed. However, I cannot reproduce it either on Linux and macOS, so I closed the PR for now. I will try getting another Windows machine and post the results here.