Makefile, mklink.data, mkso.data, newuser.desc, newuser.rez:
- initial checkin
README:
- updated installation notes
installit, newuserv.c:
- deleted (obsolete)
newuser.1:
- renamed to newuser.8
newuser.c, newuser.8:
- account home directories are now made in /home rather than /user
- made all the routines internal to this file to be class 'static'
- fit sources into GNO base distribution builds
- added checks for parsing NEWID_FILE
- added various conchecks to prevent buffer overflow and similar
problems
- ensure the password is at least MIN_PASSWD_LEN characters long
- don't set the terminal type; that is the responsibility of
initd/getty.
- instead of creating explicit files in the user's home directory,
copy every file that is in the SKELETONS directory.
- account creation is now logged via syslogd
- added -g flag for selecting non-default group ids
- check to ensure that the new uid returned by get_next_uid is
not already in use; if it is, then log a warning via syslog,
skip it, and get another uid
1999-02-15 00:22:11 +00:00
|
|
|
.TH NEWUSER 8 "14 February 1999" GNO "System Administration"
|
1998-03-09 15:50:56 +00:00
|
|
|
.SH NAME
|
Makefile, mklink.data, mkso.data, newuser.desc, newuser.rez:
- initial checkin
README:
- updated installation notes
installit, newuserv.c:
- deleted (obsolete)
newuser.1:
- renamed to newuser.8
newuser.c, newuser.8:
- account home directories are now made in /home rather than /user
- made all the routines internal to this file to be class 'static'
- fit sources into GNO base distribution builds
- added checks for parsing NEWID_FILE
- added various conchecks to prevent buffer overflow and similar
problems
- ensure the password is at least MIN_PASSWD_LEN characters long
- don't set the terminal type; that is the responsibility of
initd/getty.
- instead of creating explicit files in the user's home directory,
copy every file that is in the SKELETONS directory.
- account creation is now logged via syslogd
- added -g flag for selecting non-default group ids
- check to ensure that the new uid returned by get_next_uid is
not already in use; if it is, then log a warning via syslog,
skip it, and get another uid
1999-02-15 00:22:11 +00:00
|
|
|
.BR newuser ,
|
|
|
|
.BR newuserv
|
|
|
|
\- add a new user to the system
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.BR newuser
|
|
|
|
[
|
|
|
|
.BR -v
|
|
|
|
] [
|
|
|
|
.B -g
|
|
|
|
.I gid
|
|
|
|
]
|
|
|
|
.br
|
|
|
|
.BR newuserv
|
|
|
|
[
|
|
|
|
.BR -v
|
|
|
|
] [
|
|
|
|
.B -g
|
|
|
|
.I gid
|
|
|
|
]
|
1998-03-09 15:50:56 +00:00
|
|
|
.SH DESCRIPTION
|
Makefile, mklink.data, mkso.data, newuser.desc, newuser.rez:
- initial checkin
README:
- updated installation notes
installit, newuserv.c:
- deleted (obsolete)
newuser.1:
- renamed to newuser.8
newuser.c, newuser.8:
- account home directories are now made in /home rather than /user
- made all the routines internal to this file to be class 'static'
- fit sources into GNO base distribution builds
- added checks for parsing NEWID_FILE
- added various conchecks to prevent buffer overflow and similar
problems
- ensure the password is at least MIN_PASSWD_LEN characters long
- don't set the terminal type; that is the responsibility of
initd/getty.
- instead of creating explicit files in the user's home directory,
copy every file that is in the SKELETONS directory.
- account creation is now logged via syslogd
- added -g flag for selecting non-default group ids
- check to ensure that the new uid returned by get_next_uid is
not already in use; if it is, then log a warning via syslog,
skip it, and get another uid
1999-02-15 00:22:11 +00:00
|
|
|
This manual page documents
|
1998-03-09 15:50:56 +00:00
|
|
|
.B newuser
|
Makefile, mklink.data, mkso.data, newuser.desc, newuser.rez:
- initial checkin
README:
- updated installation notes
installit, newuserv.c:
- deleted (obsolete)
newuser.1:
- renamed to newuser.8
newuser.c, newuser.8:
- account home directories are now made in /home rather than /user
- made all the routines internal to this file to be class 'static'
- fit sources into GNO base distribution builds
- added checks for parsing NEWID_FILE
- added various conchecks to prevent buffer overflow and similar
problems
- ensure the password is at least MIN_PASSWD_LEN characters long
- don't set the terminal type; that is the responsibility of
initd/getty.
- instead of creating explicit files in the user's home directory,
copy every file that is in the SKELETONS directory.
- account creation is now logged via syslogd
- added -g flag for selecting non-default group ids
- check to ensure that the new uid returned by get_next_uid is
not already in use; if it is, then log a warning via syslog,
skip it, and get another uid
1999-02-15 00:22:11 +00:00
|
|
|
and
|
|
|
|
.B newuserv
|
|
|
|
version 1.2 for GNO. Its basic intent is
|
1998-03-09 15:50:56 +00:00
|
|
|
to let people add themselves to the system without requiring the system
|
|
|
|
administrator to do it all manually.
|
|
|
|
.LP
|
|
|
|
.B newuser
|
Makefile, mklink.data, mkso.data, newuser.desc, newuser.rez:
- initial checkin
README:
- updated installation notes
installit, newuserv.c:
- deleted (obsolete)
newuser.1:
- renamed to newuser.8
newuser.c, newuser.8:
- account home directories are now made in /home rather than /user
- made all the routines internal to this file to be class 'static'
- fit sources into GNO base distribution builds
- added checks for parsing NEWID_FILE
- added various conchecks to prevent buffer overflow and similar
problems
- ensure the password is at least MIN_PASSWD_LEN characters long
- don't set the terminal type; that is the responsibility of
initd/getty.
- instead of creating explicit files in the user's home directory,
copy every file that is in the SKELETONS directory.
- account creation is now logged via syslogd
- added -g flag for selecting non-default group ids
- check to ensure that the new uid returned by get_next_uid is
not already in use; if it is, then log a warning via syslog,
skip it, and get another uid
1999-02-15 00:22:11 +00:00
|
|
|
will ask for a real name, account name, terminal type and password (verifying
|
|
|
|
the password once) and then create the directory \fB/home/\fIaccount_name\fR.
|
|
|
|
.BR newuser
|
|
|
|
will also copy all the regular files from the
|
|
|
|
.BR /var/adm/newuser/skel
|
|
|
|
directory into the \fB/home/\fIaccount_name\fR directory.
|
|
|
|
It will not recurse.
|
|
|
|
Finally, it will add the appropriate entry to
|
1998-03-09 15:50:56 +00:00
|
|
|
.B /etc/passwd
|
Makefile, mklink.data, mkso.data, newuser.desc, newuser.rez:
- initial checkin
README:
- updated installation notes
installit, newuserv.c:
- deleted (obsolete)
newuser.1:
- renamed to newuser.8
newuser.c, newuser.8:
- account home directories are now made in /home rather than /user
- made all the routines internal to this file to be class 'static'
- fit sources into GNO base distribution builds
- added checks for parsing NEWID_FILE
- added various conchecks to prevent buffer overflow and similar
problems
- ensure the password is at least MIN_PASSWD_LEN characters long
- don't set the terminal type; that is the responsibility of
initd/getty.
- instead of creating explicit files in the user's home directory,
copy every file that is in the SKELETONS directory.
- account creation is now logged via syslogd
- added -g flag for selecting non-default group ids
- check to ensure that the new uid returned by get_next_uid is
not already in use; if it is, then log a warning via syslog,
skip it, and get another uid
1999-02-15 00:22:11 +00:00
|
|
|
and then exit.
|
1998-03-09 15:50:56 +00:00
|
|
|
.PP
|
|
|
|
If the
|
|
|
|
.B -v
|
Makefile, mklink.data, mkso.data, newuser.desc, newuser.rez:
- initial checkin
README:
- updated installation notes
installit, newuserv.c:
- deleted (obsolete)
newuser.1:
- renamed to newuser.8
newuser.c, newuser.8:
- account home directories are now made in /home rather than /user
- made all the routines internal to this file to be class 'static'
- fit sources into GNO base distribution builds
- added checks for parsing NEWID_FILE
- added various conchecks to prevent buffer overflow and similar
problems
- ensure the password is at least MIN_PASSWD_LEN characters long
- don't set the terminal type; that is the responsibility of
initd/getty.
- instead of creating explicit files in the user's home directory,
copy every file that is in the SKELETONS directory.
- account creation is now logged via syslogd
- added -g flag for selecting non-default group ids
- check to ensure that the new uid returned by get_next_uid is
not already in use; if it is, then log a warning via syslog,
skip it, and get another uid
1999-02-15 00:22:11 +00:00
|
|
|
(verify) flag is selected, or if invoked as
|
|
|
|
.BR newuserv ,
|
|
|
|
everything is done as normal, except that the new entry is appended to
|
|
|
|
.B /var/adm/newuser/pending
|
1998-03-09 15:50:56 +00:00
|
|
|
instead of being appended to
|
Makefile, mklink.data, mkso.data, newuser.desc, newuser.rez:
- initial checkin
README:
- updated installation notes
installit, newuserv.c:
- deleted (obsolete)
newuser.1:
- renamed to newuser.8
newuser.c, newuser.8:
- account home directories are now made in /home rather than /user
- made all the routines internal to this file to be class 'static'
- fit sources into GNO base distribution builds
- added checks for parsing NEWID_FILE
- added various conchecks to prevent buffer overflow and similar
problems
- ensure the password is at least MIN_PASSWD_LEN characters long
- don't set the terminal type; that is the responsibility of
initd/getty.
- instead of creating explicit files in the user's home directory,
copy every file that is in the SKELETONS directory.
- account creation is now logged via syslogd
- added -g flag for selecting non-default group ids
- check to ensure that the new uid returned by get_next_uid is
not already in use; if it is, then log a warning via syslog,
skip it, and get another uid
1999-02-15 00:22:11 +00:00
|
|
|
.BR /etc/passwd .
|
1998-03-09 15:50:56 +00:00
|
|
|
.LP
|
Makefile, mklink.data, mkso.data, newuser.desc, newuser.rez:
- initial checkin
README:
- updated installation notes
installit, newuserv.c:
- deleted (obsolete)
newuser.1:
- renamed to newuser.8
newuser.c, newuser.8:
- account home directories are now made in /home rather than /user
- made all the routines internal to this file to be class 'static'
- fit sources into GNO base distribution builds
- added checks for parsing NEWID_FILE
- added various conchecks to prevent buffer overflow and similar
problems
- ensure the password is at least MIN_PASSWD_LEN characters long
- don't set the terminal type; that is the responsibility of
initd/getty.
- instead of creating explicit files in the user's home directory,
copy every file that is in the SKELETONS directory.
- account creation is now logged via syslogd
- added -g flag for selecting non-default group ids
- check to ensure that the new uid returned by get_next_uid is
not already in use; if it is, then log a warning via syslog,
skip it, and get another uid
1999-02-15 00:22:11 +00:00
|
|
|
Accounts are normally created with group ID 100. The
|
|
|
|
.B -g
|
|
|
|
flag overrides this group ID.
|
|
|
|
.LP
|
|
|
|
Both
|
|
|
|
.BR newuser
|
|
|
|
and
|
|
|
|
.BR newuserv
|
|
|
|
will log created accounts via
|
|
|
|
.BR syslogd (8)
|
|
|
|
using the auth.info facility.
|
1998-03-09 15:50:56 +00:00
|
|
|
.LP
|
|
|
|
.B newuser
|
|
|
|
will time out after 60 seconds of operation.
|
Makefile, mklink.data, mkso.data, newuser.desc, newuser.rez:
- initial checkin
README:
- updated installation notes
installit, newuserv.c:
- deleted (obsolete)
newuser.1:
- renamed to newuser.8
newuser.c, newuser.8:
- account home directories are now made in /home rather than /user
- made all the routines internal to this file to be class 'static'
- fit sources into GNO base distribution builds
- added checks for parsing NEWID_FILE
- added various conchecks to prevent buffer overflow and similar
problems
- ensure the password is at least MIN_PASSWD_LEN characters long
- don't set the terminal type; that is the responsibility of
initd/getty.
- instead of creating explicit files in the user's home directory,
copy every file that is in the SKELETONS directory.
- account creation is now logged via syslogd
- added -g flag for selecting non-default group ids
- check to ensure that the new uid returned by get_next_uid is
not already in use; if it is, then log a warning via syslog,
skip it, and get another uid
1999-02-15 00:22:11 +00:00
|
|
|
.SH FILES
|
|
|
|
.IP \fB/home\fR
|
|
|
|
The directory where new user home directories will be placed.
|
|
|
|
.IP \fB/var/adm/newuser/newid\fR
|
|
|
|
The text file containing the next available user ID. It must consist
|
|
|
|
of exactly one line, containing only a decimal number.
|
|
|
|
.BR newuser
|
|
|
|
will update this file as required.
|
|
|
|
.IP \fB/var/adm/newuser/pending\fR
|
|
|
|
This file contains all of the
|
|
|
|
.BR /etc/passwd
|
|
|
|
entries that are waiting for approval before activation.
|
|
|
|
.IP \fB/var/adm/newuser/skel\fR
|
|
|
|
All regular files in this directory will be copied to the newly created
|
|
|
|
home directory.
|
|
|
|
.SH BUGS
|
|
|
|
.BR newuser
|
|
|
|
should create a lock file in
|
|
|
|
.BR /var/locks
|
|
|
|
to ensure that a race condition with multiple instantiations is avoided.
|
|
|
|
They are currently possible.
|
1998-03-09 15:50:56 +00:00
|
|
|
.SH AUTHOR
|
Makefile, mklink.data, mkso.data, newuser.desc, newuser.rez:
- initial checkin
README:
- updated installation notes
installit, newuserv.c:
- deleted (obsolete)
newuser.1:
- renamed to newuser.8
newuser.c, newuser.8:
- account home directories are now made in /home rather than /user
- made all the routines internal to this file to be class 'static'
- fit sources into GNO base distribution builds
- added checks for parsing NEWID_FILE
- added various conchecks to prevent buffer overflow and similar
problems
- ensure the password is at least MIN_PASSWD_LEN characters long
- don't set the terminal type; that is the responsibility of
initd/getty.
- instead of creating explicit files in the user's home directory,
copy every file that is in the SKELETONS directory.
- account creation is now logged via syslogd
- added -g flag for selecting non-default group ids
- check to ensure that the new uid returned by get_next_uid is
not already in use; if it is, then log a warning via syslog,
skip it, and get another uid
1999-02-15 00:22:11 +00:00
|
|
|
James Brookes. Maintained by Devin Reade.
|