Changeset 102540 in vbox
- Timestamp:
- Dec 8, 2023 12:43:07 PM (14 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/en_US/man_VBoxManage-unattended.xml
r102538 r102540 137 137 </varlistentry> 138 138 <varlistentry> 139 <term><option>--user-password-file=<replaceable>file</replaceable></option></term> 140 <listitem> 141 <para>Alternative to <option>--user-password</option> for providing the user password. Special filename 142 <computeroutput>stdin</computeroutput> can be used to read the password from standard input.</para></listitem> 143 </varlistentry> 144 <varlistentry> 139 145 <term><option>--admin-password=<replaceable>password</replaceable></option></term> 140 146 <listitem> … … 143 149 </varlistentry> 144 150 <varlistentry> 145 <term><option>-- password-file=<replaceable>file</replaceable></option></term>146 <listitem> 147 <para>Alternative to <option>-- password</option> for providing thepassword. Special filename151 <term><option>--admin-password-file=<replaceable>file</replaceable></option></term> 152 <listitem> 153 <para>Alternative to <option>--admin-password</option> for providing the admin / root password. Special filename 148 154 <computeroutput>stdin</computeroutput> can be used to read the password from standard input.</para></listitem> 149 155 </varlistentry> -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp
r102539 r102540 2133 2133 enum kUnattendedInstallOpt 2134 2134 { 2135 kUnattendedInstallOpt_AdminPassword = 1000 2135 kUnattendedInstallOpt_AdminPassword = 1000, 2136 kUnattendedInstallOpt_AdminPasswordFile 2136 2137 }; 2137 2138 static const RTGETOPTDEF s_aOptions[] = … … 2142 2143 { "--password-file", 'X', RTGETOPT_REQ_STRING }, /* Keep for backwards compatibility! */ 2143 2144 { "--user-password", 'p', RTGETOPT_REQ_STRING }, 2145 { "--user-password-file", 'X', RTGETOPT_REQ_STRING }, 2144 2146 { "--admin-password", kUnattendedInstallOpt_AdminPassword, RTGETOPT_REQ_STRING }, 2147 { "--admin-password-file", kUnattendedInstallOpt_AdminPasswordFile, RTGETOPT_REQ_STRING }, 2145 2148 { "--full-user-name", 'U', RTGETOPT_REQ_STRING }, 2146 2149 { "--key", 'k', RTGETOPT_REQ_STRING }, … … 2208 2211 break; 2209 2212 2210 case 'X': // -- password-file2213 case 'X': // --[user-]password-file 2211 2214 { 2212 2215 Utf8Str strPassword; … … 2215 2218 return rcExit; 2216 2219 CHECK_ERROR2_RET(hrc, ptrUnattended, COMSETTER(UserPassword)(Bstr(strPassword).raw()), RTEXITCODE_FAILURE); 2220 break; 2221 } 2222 2223 case kUnattendedInstallOpt_AdminPasswordFile: 2224 { 2225 Utf8Str strPassword; 2226 RTEXITCODE rcExit = readPasswordFile(ValueUnion.psz, &strPassword); 2227 if (rcExit != RTEXITCODE_SUCCESS) 2228 return rcExit; 2229 CHECK_ERROR2_RET(hrc, ptrUnattended, COMSETTER(AdminPassword)(Bstr(strPassword).raw()), RTEXITCODE_FAILURE); 2217 2230 break; 2218 2231 }
Note:
See TracChangeset
for help on using the changeset viewer.