Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-19-2008, 08:52 AM
|
#1
|
LQ Newbie
Registered: Jun 2008
Posts: 1
Rep:
|
Source Code for useradd, usermod etc.
Hi all,
Please let me know where we can find the source code for useradd and usermod shell commands.
Thanks,
Gopal Sukumar.
|
|
|
06-19-2008, 09:42 AM
|
#2
|
Senior Member
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761
Rep:
|
If memory serves me correct, the source code for those are located in the shadow suite source, at least that's where Slackware has them. Your distro should have source code available either with the installer disc or from the their website.
|
|
|
06-19-2008, 09:43 AM
|
#3
|
Moderator
Registered: May 2001
Posts: 29,415
|
Searched GNU.org?
|
|
|
11-25-2009, 12:29 AM
|
#4
|
LQ Newbie
Registered: Nov 2009
Distribution: archlinux
Posts: 6
Rep:
|
bsdunix is right.
they are in shadow package suite.
you can download the source code from official website
http://pkg-shadow.alioth.debian.org/
ls shadow-4.1.4/src
Code:
Makefile.am chpasswd.c groupadd.c grpck.c login.c nologin.c su.c usermod.c
Makefile.in chsh.c groupdel.c grpconv.c login_nopam.c passwd.c suauth.c vipw.c
chage.c expiry.c groupmems.c grpunconv.c logoutd.c pwck.c sulogin.c
chfn.c faillog.c groupmod.c id.c newgrp.c pwconv.c useradd.c
chgpasswd.c gpasswd.c groups.c lastlog.c newusers.c pwunconv.c userdel.c
|
|
|
11-25-2009, 09:01 AM
|
#5
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep: 
|
To a certain extent this will be distro specific, so I would get it directly from your distro. For instance on Centos 5.4 it is:
Quote:
shadow-utils-4.0.17-14.el5.src.rpm
|
|
|
|
All times are GMT -5. The time now is 09:14 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|