Skip to content

Instantly share code, notes, and snippets.

@daxxog
Created November 28, 2012 23:39
Show Gist options
  • Save daxxog/4165582 to your computer and use it in GitHub Desktop.
Save daxxog/4165582 to your computer and use it in GitHub Desktop.
I know this may be old news, and I know that busy box has most of the things that shadow utils already does BUT there are a few very useful things like usermod that it doesn't. After searching around I figured I would add some useful info here. I spent about an hour fumbling around with it so I hope this helps anyone else out there that wants it. First of all you have to have the tool chain installed. Normally it's hard to find this code for shadow-utils but it is downloadable here: http://ftp.pld-linux.org/software/shadow On a quick side note - There are many other utilities and their code downloadable here: http://www.happy-monkey.net/architect/minimalist/cmd-util.html I found that there was a small error in the make'ing of this code, so I fixed that (more on that in a moment.) and built it successfully on the latest cooking. wget ftp://ftp.pld-linux.org/software/shadow/shadow-4.0.3.tar.gz tar zxvf shadow-4.0.3.tar.gz cd shadow-4.0.3 vi libmisc/xmalloc.c # comment out the following line with C style comments /* */ and save the file (:wq if vi or vim) /* extern char *malloc(); */ ./configure make make install #as root or sudo which usermod #check to see if it's in the path /usr/sbin/usermod --help #see what we can do with it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment