vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Is there an official way to update values in the "default:" stanza of / etc/security/user without editing the file by hand? For instance, to change the default maximum password age. I know how to edit the file by hand to make the change, but for documentation's sake I'd rather use a command-line utility or SMIT if it can be done that way. TIA -=- Noah |
| |||
| Noah wrote: > Is there an official way to update values in the "default:" stanza of / > etc/security/user without editing the file by hand? For instance, to > change the default maximum password age. I know how to edit the file > by hand to make the change, but for documentation's sake I'd rather > use a command-line utility or SMIT if it can be done that way. > > TIA > -=- Noah Hello Noah have a look on "chsec" command. chsec Command Purpose: Changes the attributes in the security stanza files. Syntax: chsec [ -f File] [ -s Stanza] [ -a Attribute = Value ... ] "File" may be one of: /etc/security/environ /etc/security/group /etc/security/lastlog /etc/security/limits /etc/security/login.cfg /usr/lib/security/mkuser.default /etc/security/passwd /etc/security/portlog /etc/security/user Regards, Uwe Auer |
| ||||
| On Jun 8, 1:39 am, u...@franke-auer.de wrote: > > Hello Noah > > have a look on "chsec" command. > > chsec Command > > Purpose: Changes the attributes in the security stanza files. > Syntax: chsec [ -f File] [ -s Stanza] [ -a Attribute = Value ... ] > > "File" may be one of: > /etc/security/environ > /etc/security/group > /etc/security/lastlog > /etc/security/limits > /etc/security/login.cfg > /usr/lib/security/mkuser.default > /etc/security/passwd > /etc/security/portlog > /etc/security/user > > Regards, > Uwe Auer Many thanks! That was exactly what I needed! I'd been using chuser to update attributes within individual stanzas for each user but couldn't find a way to update the default stanza without editing the file. I tested chsec in a lab environment and it does precisely what I need it to do. Cheers --Noah |