Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
getglobalpolicy in MAC OSX 11 is not returning all the values
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="thekkayiljoy" data-source="post: 1492250" data-attributes="member: 292657"><p>If i do uname -r it gives:</p><p>11.0.0</p><p></p><p>Now if i try to set a global policy like this:</p><p></p><p>pwpolicy -n /Local/Default -setglobalpolicy "usingHistory=0 canModifyPasswordforSelf=1 usingExpirationDate=0 usingHardExpirationDate=0 requiresAlpha=0 requiresNumeric=0 maxMinutesUntilChangePassword=0 maxMinutesUntilDisabled=0 maxMinutesOfNonUse=0 maxFailedLoginAttempts=0 minChars=0 maxChars=0 passwordCannotBeName=0 requiresMixedCase=0 requiresSymbol=0 newPasswordRequired=0 minutesUntilFailedLoginReset=0 notGuessablePattern=0"</p><p></p><p>It shows as if it is successful. </p><p></p><p>But when i run the following command then only few are listed.:</p><p>/usr/bin/pwpolicy -n /Local/Default -getglobalpolicy </p><p></p><p>maxChars=0 minutesUntilFailedLoginReset=0 maxFailedLoginAttempts=0 minChars=0 requiresNumeric=0 maxMinutesUntilChangePassword=0 requiresAlpha=0 requiresSymbol=0 </p><p>Now if i try only for "usingHistory=1"</p><p></p><p>pwpolicy -n /Local/Default -setglobalpolicy "usingHistory=1"</p><p></p><p>and run the getglobalpolicy then this "usingHistory" is not at all visible.</p><p></p><p>Now if i run the above commands in OSX 9.4.0 then i can see all the above parameters.</p><p></p><p>Can you please let me know what is wrong with the above statements.</p></blockquote><p></p>
[QUOTE="thekkayiljoy, post: 1492250, member: 292657"] If i do uname -r it gives: 11.0.0 Now if i try to set a global policy like this: pwpolicy -n /Local/Default -setglobalpolicy "usingHistory=0 canModifyPasswordforSelf=1 usingExpirationDate=0 usingHardExpirationDate=0 requiresAlpha=0 requiresNumeric=0 maxMinutesUntilChangePassword=0 maxMinutesUntilDisabled=0 maxMinutesOfNonUse=0 maxFailedLoginAttempts=0 minChars=0 maxChars=0 passwordCannotBeName=0 requiresMixedCase=0 requiresSymbol=0 newPasswordRequired=0 minutesUntilFailedLoginReset=0 notGuessablePattern=0" It shows as if it is successful. But when i run the following command then only few are listed.: /usr/bin/pwpolicy -n /Local/Default -getglobalpolicy maxChars=0 minutesUntilFailedLoginReset=0 maxFailedLoginAttempts=0 minChars=0 requiresNumeric=0 maxMinutesUntilChangePassword=0 requiresAlpha=0 requiresSymbol=0 Now if i try only for "usingHistory=1" pwpolicy -n /Local/Default -setglobalpolicy "usingHistory=1" and run the getglobalpolicy then this "usingHistory" is not at all visible. Now if i run the above commands in OSX 9.4.0 then i can see all the above parameters. Can you please let me know what is wrong with the above statements. [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
getglobalpolicy in MAC OSX 11 is not returning all the values
Top