[Adduser-devel] How to add Custom Scripts?

Stephen Gran sgran at debian.org
Mon Feb 12 15:30:35 CET 2007


This one time, at band camp, Joel Bryan Juliano said:
> On 2/12/07, Stephen Gran <sgran at debian.org> wrote:
> >This one time, at band camp, Joel Bryan Juliano said:
> >> Hi,
> >>
> >>   I have downloaded the debian adduser source and I like to modify it
> >> to add a custom script upon adding a user. How do I add my custom
> >> scripts to the source?
> >
> >If I understand you correctly, you are asking about a custom
> >adduser.local?
> >
> >Have a look in /usr/share/doc/adduser/examples/ for examples of the
> >sorts of things people have done.
> 
> Thanks for your reply!
> 
> What I'm trying to do is to create a custom adduser debian package for
> a custom debian based distribution. I would like to modify the adduser
> source so it will contain the custom scripts upon creating the users,
> is the method above the same way of creating a custom scripts in the
> adduser source to be debianized?

adduser will run /usr/local/sbin/adduser.local, if it exists.  I would
suggest that if you want a custom script to be run, you just ship the
custom script in the prescribed location.

Take care,
-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        sgran at debian.org |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20070212/e8e2235b/attachment.pgp


More information about the Adduser-devel mailing list