Skip to main content

Posts

Showing posts from 2018

How to rename GIT tags ?

Sometimes we might need to rename the GIT tags , this can be easily achieved by following these steps using GIT command line tool. git tag new-tag old-tag git tag -d old-tag git push origin :refs/tags/old-tag git push --tags

How to check user and group associations on macOS

Sometimes we might have to know the list of users, groups and ids such as userid and groupid on macOS system. There are several ways to find this information.  dsacacheutil: The command  dscacheutil -q group   will output all groups with their name, ID numbers, and list of members. The command    dscacheutil -q user will output name,uid, gid, dir, shell, gecos details. Note:   The above command will output all the groups and user details , including built-in system ones mortals were never meant to see. Check user and group association: We can run below command to check user and group associations to know whether a user belongs to a group or not. dsmemberutil checkmembership -u 501 -g 1 user is not a member of the group Or dsmemberutil checkmembership -U user -G staff The user user cannot be found There was an unknown error. User not found Alternative methods to find group and user details on macOS To list users

How to enable 64 bit testing mode in macOS Mojave 10.14

One can use 64-bit testing mode in macOS 10.14 to test software for 64-bit compatibility. To enable the 64-bit testing mode: Boot to Recovery OS by restarting your machine and holding down the Command and R keys at startup. Launch Terminal Execute the following command: nvram boot-args="-no32exec" Restart the machine      Note:  The 64-bit testing mode prevents 32-bit processes from launching. Launching an app that depends on 32-bit software results in a notification that the application can't be opened.  To disable the 64-bit testing mode: Boot to Recovery OS by restarting your machine and holding down the Command and R keys at startup. Launch Terminal Execute the following command: nvram boot-args="" Restart the machine