Bug 813 - /etc/login.defs and chfn option with users name
/etc/login.defs and chfn option with users name
Status: CLOSED CURRENTRELEASE
Product: Red Hat Raw Hide
Classification: Retired
Component: shadow-utils (Show other bugs)
1.0
All Linux
low Severity low
: ---
: ---
Assigned To: Cristian Gafton
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-01-12 23:11 EST by stewart
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-03-23 14:11:24 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description stewart 1999-01-12 23:11:42 EST
This has bothered me for a while... and it would be nice to
see this as being a configurable option.  I don't want my
regular users to be able to change their name.  They can
contact root if they have a valid reason.  But they should
be able to change the rest of the info.

Either way this is just a little documentation complaint.

The file /etc/login.defs contains this option:
#
# Require password before chfn/chsh can make any changes.
#
CHFN_AUTH               yes

# Don't allow users to change their "real name" using chfn.
#
CHFN_RESTRICT           yes

But they do not work.  Namely the problem is that
/etc/login.defs comes from shadow-utils, whereas chfn comes
from util-linux.  So for now I guess removing these three
lines would be OK.  (The first should be on, all the time
anyway.)

	[root@zarg /etc]# rpm -qf /etc/login.defs
	shadow-utils-980403-5a
	[root@zarg /etc]# rpm -qf /usr/bin/chfn
	util-linux-2.9-6c
Comment 1 Cristian Gafton 1999-03-19 13:56:59 EST
We are not using the login.defs file to control the behavior of the
chfn and chsh utilities
Comment 2 stewart 1999-03-19 15:19:59 EST
Ok, then can the references to chfn/chsh be removed from
shadow-970616.login.defs (/etc/login.defs).  If it is not used it just
creates confusion if it is in the file.
Comment 3 Preston Brown 1999-03-23 14:11:59 EST
fixed in shadow-utils-980403-8 and later.

Note You need to log in before you can comment on or make changes to this bug.