LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 06-19-2008, 09:52 AM   #1
gopal.sukumar
LQ Newbie
 
Registered: Jun 2008
Posts: 1

Rep: Reputation: 0
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.
 
Old 06-19-2008, 10:42 AM   #2
bsdunix
Senior Member
 
Registered: May 2006
Distribution: Caldera, CTOS, Debian, FreeBSD, Mac OS X, Mandrake, Minix, OpenBSD, Slackware, SuSE
Posts: 1,757

Rep: Reputation: 80
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.
 
Old 06-19-2008, 10:43 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,360
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
Searched GNU.org?
 
Old 11-25-2009, 01:29 AM   #4
ywzhaifei
LQ Newbie
 
Registered: Nov 2009
Distribution: archlinux
Posts: 6

Rep: Reputation: 0
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
 
Old 11-25-2009, 10:01 AM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Disabling password expiration via useradd or usermod (or something else)? eviser Linux - Software 2 05-31-2006 02:53 PM
Useradd - Cannot locate /etc/default/useradd in Solaris Paean Solaris / OpenSolaris 4 12-09-2005 02:36 AM
usermod and useradd problem kenji Linux - Newbie 4 02-23-2005 12:10 PM
usermod / useradd ? bibilit Linux - Software 1 12-19-2003 03:16 AM
/etc/shadow and useradd -p usermod -p granny Linux - Security 3 08-29-2003 01:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration