Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mac 10.10.5 throwing error sudo: gpasswd: command not found

Tags:

macos

sudo

I have requirement to add jenkins user on mac mini to docker group and trying below

which sudo
/usr/bin/sudo

Not working

sudo gpasswd -a jenkins docker

Not working

/usr/bin/sudo gpasswd -a jenkins docker
sudo: gpasswd: command not found

And at .bash_profile entries

 export PATH="$PATH:/usr/local/bin/"
 export PATH="/usr/local/git/bin:/sw/bin/:/usr/local/bin:/usr/local/:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
 export PATH=/usr/bin:/usr/sbin:/bin:/usr/local/bin:/sbin:/opt/x11/bin:$PATH

Current logged user is administrator on this Mac. I'm not sure what may be going wrong here ?

Thanks, Vikram

like image 702
vikramvi Avatar asked Aug 06 '26 10:08

vikramvi


1 Answers

  • How to add user to a group from Mac OS X command line?

answered in above link.

The command which I was trying is not applicable for Mac OS

like image 52
vikramvi Avatar answered Aug 08 '26 23:08

vikramvi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!