Skip to main content

Linux command: usermod


usermod - modify a user account

Add user 'tuyen' to 'wheel' group

$ sudo usermod -aG wheel tuyen

Popular posts from this blog

MSSQL: Fix error 'Consistency validation for SQL Server registry keys'

While installing Microsof SQL Server 2012, I ran into the following error. "The SQL Server registry keys from a prior installation cannot be modified. To continue, see SQL Server Setup documentation about how to fix registry keys." How to fix Replace the D:\x64\FixSqlRegistryKey_x86.exe file with the original file from the ENU\SQLFULL_ENU.iso file downloading from Microsoft Download Center. This ISO file is 4.2GB. So you can click FixSqlRegistryKey_x86.exe to download this file only. After replacing that file, press Re-run to check. All rules are passed.

Powershell: Check Bad Logon

get-aduser -Filter {BadLogonCount -ne 0} -properties * | select SamAccountName,BadLogonCount,BadPasswordTime,BadPwdCount,@{name='badPasswordTimeDT'; expression={[datetime]::fromFileTime($_.badPasswordTime)}} | sort BadPasswordTime | FT

Facebook Instant Article: Notes from the field

Notes while playing with facebook instant articles Claim your URL Facebook Instant Article Setup: Claim Your URL(s) Related articles List maximum 3 related articles Error/warning if you list more than 3 related articles Facebook Instant Article: maximum related articles is 3 Maximum <br /> tags is 5 Facebook Instant Article: maximum <br /> tags is 5 Feedback is not supported for youtube video iframe Feedback is not supported for youtube video iframe Facebook Ads inside MUST create another Audience Network