On 03/18/13 11:29, Alan Coopersmith wrote:
On 03/18/13 12:03 PM, James Litchfield wrote:
> Through some mysterious process, I have ended up with a
> zero length /etc/pam.conf.
>
> The intriguing thing is how do I rectify this situation?
>
>> # pkg search /etc/pam.conf
>> INDEX ACTION VALUE PACKAGE
>> path file etc/pam.confpkg:/system/core-os@5.12-5.12.0.0.0.17.3
Since it's delivered with the "preserve=renamenew" attribute, look in
/etc/pam.conf.new for the packaged file, since pkg won't overwrite the
file you may have customized.
Though in this case, you may find it a bit anticlimatic, as the packaged
pam.conf file in that release is nothing but a comment telling you that
the contents have all moved to /etc/pam.d now.
Had this been a real emergency, you could have restored the original
/etc/pam.conf with:
pkg revert /etc/pam.conf
From the fine man page:
pkg revert [-nv] [--no-be-activate] [--no-backup-be | --
require-backup-be] [--backup-be-name name] [--deny-new-be |
--require-new-be] [--be-name name] (--tagged tag-name ... |
path-to-file ...)
Revert files delivered by pkg(5) packages to their as-
delivered condition. File ownership and protections are
also restored.
Caution -
Reverting some editable files to their default values
can make the system unbootable, or cause other mal-
functions.
--tagged tag-name
Revert all files tagged with tag-name, and remove
any unpackaged files or directories matching pattern
in directories with this tag. See "File Actions" in
the pkg(5) manual page.
path-to-file
Revert the specified files.
For all other options, see the install command above.
- Bart
--
Bart Smaalders Solaris Core OS
bart.smaald...@oracle.com http://blogs.oracle.com/barts
"You will contribute more with Mercurial than with Thunderbird."
"Civilization advances by extending the number of important
operations which we can perform without thinking about them."
_______________________________________________
pkg-discuss mailing list
pkg-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss