VirtualBox

Changeset 102538 in vbox


Ignore:
Timestamp:
Dec 8, 2023 12:11:05 PM (15 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
160684
Message:

VBoxManage/Unattended: Renamed the option "--password" to "--user-password" (kept "--password" for backwards compatibility though) and added option "--admin-password". Updated docs. bugref:10554

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/en_US/man_VBoxManage-unattended.xml

    r99513 r102538  
    6060      <arg choice="req">--iso=<replaceable>install-iso</replaceable></arg>
    6161      <arg>--user=<replaceable>login</replaceable></arg>
    62       <arg>--password=<replaceable>password</replaceable></arg>
     62      <arg>--user-password=<replaceable>password</replaceable></arg>
     63      <arg>--admin-password=<replaceable>password</replaceable></arg>
    6364      <arg>--password-file=<replaceable>file</replaceable></arg>
    6465      <arg>--full-user-name=<replaceable>name</replaceable></arg>
     
    130131        </varlistentry>
    131132        <varlistentry>
    132           <term><option>--password=<replaceable>password</replaceable></option></term>
    133           <listitem>
    134             <para>The login password.  This is used for the user given by <option>--user</option> as well as the
    135               root/administrator user.  (default: changeme)</para></listitem>
     133          <term><option>--user-password=<replaceable>password</replaceable></option></term>
     134          <listitem>
     135            <para>The user login password.  This is used for the user given by <option>--user</option>
     136              (default: changeme)</para></listitem>
     137        </varlistentry>
     138        <varlistentry>
     139          <term><option>--admin-password=<replaceable>password</replaceable></option></term>
     140          <listitem>
     141            <para>The admin / root login password.  If not specified, the password from <option>--user-password</option>
     142              will be used.</para></listitem>
    136143        </varlistentry>
    137144        <varlistentry>
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp

    r102536 r102538  
    21312131     * Parse options.
    21322132     */
     2133    enum kUnattendedInstallOpt
     2134    {
     2135        kUnattendedInstallOpt_AdminPassword = 1000
     2136    };
    21332137    static const RTGETOPTDEF s_aOptions[] =
    21342138    {
    21352139        { "--iso",                              'i', RTGETOPT_REQ_STRING },
    21362140        { "--user",                             'u', RTGETOPT_REQ_STRING },
    2137         { "--password",                         'p', RTGETOPT_REQ_STRING }, /* Sets the user password. Keep for backwards compatibility! */
     2141        { "--password",                         'p', RTGETOPT_REQ_STRING }, /* Keep for backwards compatibility! */
     2142        { "--user-password",                    'p', RTGETOPT_REQ_STRING },
     2143        { "--admin-password",                   kUnattendedInstallOpt_AdminPassword, RTGETOPT_REQ_STRING },
    21382144        { "--full-user-name",                   'U', RTGETOPT_REQ_STRING },
    21392145        { "--key",                              'k', RTGETOPT_REQ_STRING },
     
    21932199                break;
    21942200
    2195             case 'p':   // --password
     2201            case 'p':   // --[user-]password
    21962202                CHECK_ERROR2_RET(hrc, ptrUnattended, COMSETTER(UserPassword)(Bstr(ValueUnion.psz).raw()), RTEXITCODE_FAILURE);
     2203                break;
     2204
     2205            case kUnattendedInstallOpt_AdminPassword: // --admin-password
     2206                CHECK_ERROR2_RET(hrc, ptrUnattended, COMSETTER(AdminPassword)(Bstr(ValueUnion.psz).raw()), RTEXITCODE_FAILURE);
    21972207                break;
    21982208
     
    24122422    SHOW_STR_ATTR(User,                          "user");
    24132423    SHOW_STR_ATTR(UserPassword,                  "password"); /* Keep for backwards compatibility! */
     2424    SHOW_STR_ATTR(UserPassword,                  "user-password");
     2425    SHOW_STR_ATTR(AdminPassword,                 "admin-password");
    24142426    SHOW_STR_ATTR(FullUserName,                  "fullUserName");
    24152427    SHOW_STR_ATTR(ProductKey,                    "productKey");
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette