what is a quick way to get all of files needed for adduser to put it on void linux?
I found this
https://github.com/shadow-maint/shad.../src/useradd.c but I need the (personal) "headers" and o so I can compile it. maybe mod it a little first even. before installing it onto VOID Linux. I know Slack got this and maybe it was Slack that came up with adduser over useradd. Anyways... anyone knows what address I got a pull from, or wget it? I do not think that is even the right one now that I look at it. always getting the two confused. the short order form one. :D |
The VOID Linux is not a Slackware derivative, so far I know. It was written from scratch, so what's the connection with Slackware?
|
Don't you know that this file belongs to the shadow software shipped in Slackware?
Have a look here: http://slackware.uk/slackware/slackw...urce/a/shadow/ the url is indicated to get the whole archive: http://pkg-shadow.alioth.debian.org/releases/ Alternatively just clone the git repo: git clone https://github.com/shadow-maint/shadow.git But, why reinvent the wheel? All is there to package shadow for Void: https://github.com/void-linux/void-p...hadow/template PS: generally, if you look at a C program inside a software tree, chances are that the "personal" headers (those not listed between < >) are elsewhere in the same tree ;) So just download the whole tree and at its root type: find -name <header name>. But that's assuming that for some reason you want to cherry pick a program to build just that, instead of building the whole software. |
Quote:
I got 4 distros install so I jump around a lot and its hard to remember what I got where some times, for some things. |
Quote:
Code:
userx@voided.org:~ ----------- Arch Linux swiped a copy from slackware Quote:
it is just a build package script, time to play. https://dfw.mirror.rackspace.com/sla...shadow/adduser |
1 Attachment(s)
I don't know how Void packaging works, but for sure the build script I linked to installs useradd as I see in the postinstall() function:
Code:
# Install our pam files not the ones supplied with shadow. I attach it to this post for your convenience. Sorry I can't help you more. Cheers, |
adduser is just a script. It is available in the source directory of shadow.
Looking at the top of the file, it was originally developed for Slackware by Hrvoje Dogan back in 1995. Then in 2002, Stuart Winter, aka drmozes, took that script as the inspiration for the modern adduser script and it has been tweaked from there by both Stuart and Pat over the years to what it is now (with a changelog documenting those tweaks at the top of the script). The script will eventually run the useradd binary from shadow to generate the account on the system and assign it the various settings, including groups. |
Quote:
Code:
Creating new account... Code:
package() { |
Void uses PAM, not Slackware. For this reason you need to make adjustments.
|
Quote:
Code:
Manpage for useradd says: useradd is a low level utility for adding users. On Debian, administrators should |
Quote:
what is worst case scenario if I screw this up? |
Quote:
|
Quote:
|
Quote:
all of the other ones I do not have much issues with . moduser or is it usermod, and chown etc.. |
all this script does it gather information then calls useradd and hands it over to it.
Code:
# Add the account to the system Code:
userx@voided.org:~/Documents |
All times are GMT -5. The time now is 05:16 AM. |