linux add user to group

May 12th, 2007

Note to self: this is how you add a user to a group in linux:

usermod -Ggroupname username

Except for the fact that I'm using nss_mysql, so it can't find the username(s) in /etc/passwd. Instead I added the group to the database and added the user group relationship as well. So this is where nss mysql gets tricky, the groups in the files on separate computers are most likely going to be different but the ones in the database will be the same. I guess that's where you need to step up to using ldap instead.

Yearly Indexes: 2003 2004 2006 2007 2008 2009 2010 2011 2012 2013 2015 2019 2020 2022