| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
Obtained from: OpenBSD
|
|
|
|
| |
function is also used by chpass(1) and passwd(1).
|
|
|
|
|
|
|
|
|
|
| |
secure permissions in case the user attempts to save something to
a file of his own.
Move umask stuff out of pw_init() into main() for better visibility
of overall umask tweaking logic.
PR: misc/11797
|
|
|
|
|
|
|
| |
for the password files.
PR: 2703
Submitted by: jmg
|
|
|
|
|
|
|
|
|
|
| |
o main returns int not void
o use return 0 at end of main when needed
o use braces to avoid potentially ambiguous else
o don't default to type int
o #ifdef 0 -> #if 0
Reviewed by: obrien and chuckr
|
| |
|
|
|
|
| |
- some NFSes have root read access disabled
|
|
|
|
|
| |
a name by address and ensure that the name resolves
back to the original address.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Instead, treat the inability to retrieve a record from the server as a
match failure and let things take its course.
Part of the problem here is that NIS _is_ turned on, however the master
server is actually not an NIS server: it's an NIS+ server. And the client
is bound to an NIS+ replica server that's running in YP compat mode.
The code which tries to figure out of the user is local or NIS gets
confused by this.
|
| |
|
| |
|
|
|
|
|
|
| |
updating
2) Add -V <etcdir>, which allows maintaining user/group database in alternate
locations other than /etc.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
to "Office Location:" to disambiguate what is expected. Add a note
to the man page to indicate that the office location and office phone
fields are concatenated and printed with the heading "Office:" by
finger(1). Swap the order of the home and office phone fields in the
man page to match the order of the fields in the editor.
If any programs interact with chpass(1) and expect "Location:" instead
of "Office Location:" as the prompt, either this change will have to be
reverted or the other programs will have to be changed.
PR: docs/7533
|
|
|
|
| |
with DESTDIR set to an NFS-mounted file system.
|
| |
|
|
|
|
|
|
|
| |
is a digit.
PR: bin/9484
Submitted by: Matthew D. Fuller <fullermd@futuresouth.com>
|
| |
|
|
|
|
| |
Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au>
|
| |
|
|
|
|
|
|
|
| |
The char that the random letters and numbers are being pulled from is
ended with a '\0'. Using sizeof() includes this '\0' in the 'pool' of
possible characters. This patch decrements by one the size so we don't
accidently end the new password prematurly.
|
|
|
|
|
|
|
|
|
| |
and terminate it. This patch ensures passwords will be the correct length of 8,
which is what is implied in the source (but not reflected in the man page).
PR: bin/7817
Reviewed by: Alfred Perlstein <bright@hotjobs.com>
Submitted by: Hiroshi Nishikawa <nis@pluto.dti.ne.jp>
|
|
|
|
| |
Submitted by: Peter Philipp <pjp@bsd-daemon.net>
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Update chpass(1) manual page. Change the definition of the class
field and also reorganize the field list to match that of the
/etc/master.passwd file, to avoid confusion.
|
| |
|
|
|
|
|
| |
just been replaced. After our lock succeeds we check if st_nlink is 0
and if it is we close the descriptor and retry our open/lock sequence.
|
| |
|
|
|
|
|
|
|
| |
child to the parent somehow.
PR: 8353
Submitted by: Andrew J. Korty <ajk@purdue.edu>
|
|
|
|
| |
unsigned longs.
|
|
|
|
| |
longs.
|
|
|
|
|
|
|
|
|
|
|
| |
execvp() in the child branch of a vfork(). Changed to use fork()
instead.
Some of these (mv, find, apply, xargs) might benefit greatly from
being rewritten to use vfork() properly.
PR: Loosely related to bin/8252
Approved by: jkh and bde
|
| |
|
|
|
|
|
| |
o make property_read() take a fd instead to avoid stdio.h mess
o update auth to new interface.
|
| |
|
| |
|
|
|
|
|
|
| |
shouldn't include other ones (which, unfortunately, is also a hellish
rule since he broke interfaces like sysctl this way by requiring undocumented
header files to be included just in order to be able to use them now - SIGH!).
|
|
|
|
|
|
|
| |
I'll convert sysinstall to use shortly) and a simple call which uses
this mechanism to implement an /etc/auth.conf file. I'll let Mark Murray
handle the format and checkin of the sample auth.conf file.
Reviewed by: markm
|
| |
|
| |
|
|
|
|
|
| |
PR: docs/7905
Submitted by: kuma@jp.freebsd.org
|
|
|
|
|
| |
this refer to the wrong data.
Submitted by: axl@iafrica.com (Sheldon Hearn)
|
|
|
|
| |
PR: docs/7788
|
|
|
|
|
|
| |
an *interactive* command for newbies. The pw(8) does now a much better
job for adding users from command line. Also, the -batch option is
not well tested, buggy and unsupported.
|
|
|
|
| |
Document last mod (extended gcos)
|
|
|
|
|
|
| |
Add functionality for support for more than 4 subfields within gcos. chsh,
chpass etc did not parse beyond the 4th field previously and so truncated
gcos on updating the database.
|
|
|
|
|
|
|
| |
consider it a exit failure if it doesn't work. This means that root
processes can safely get the lock, but normal processes can still use
the 'pw' utility to get information (which may change out from under
them.)
|