diff options
author | Kevin Tian <kevin.tian@intel.com> | 2010-08-06 10:34:29 +0800 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-13 13:36:02 +0100 |
commit | f6535ea12ab7f4d99adbe78919a7ed252175565f (patch) | |
tree | fcab0f6719ab5f17d1ce9fdd7ba0e376e418c2ac /meta-lsb/packages/shadow/shadow-4.1.4.2/pam.d/chsh | |
parent | 44d7c5678f52593d55c23f16d0da6c188734b026 (diff) | |
download | openembedded-core-f6535ea12ab7f4d99adbe78919a7ed252175565f.tar.gz openembedded-core-f6535ea12ab7f4d99adbe78919a7ed252175565f.tar.bz2 openembedded-core-f6535ea12ab7f4d99adbe78919a7ed252175565f.tar.xz openembedded-core-f6535ea12ab7f4d99adbe78919a7ed252175565f.zip |
shadow: add new recipe 4.1.4.2
(borrow from OpenEmbedded with below tweaks)
Enhance login_defs_pam.sed according to shadow source, to ensuer we don't
leave any unknown definitions in /etc/login.defs when pam is enabled
no need for --disable-account-tools-setuid which is detected upon pam
automatically, and no specific CFLAGS append
move shadow site options to generic site files
adjust indention
RDEPENDS on a list of pam-plugins since they're separately packaged
test with both pam enabled and pam disabled. when pam is enabled, tried
some same tweak with desired effect.
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Diffstat (limited to 'meta-lsb/packages/shadow/shadow-4.1.4.2/pam.d/chsh')
-rw-r--r-- | meta-lsb/packages/shadow/shadow-4.1.4.2/pam.d/chsh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/meta-lsb/packages/shadow/shadow-4.1.4.2/pam.d/chsh b/meta-lsb/packages/shadow/shadow-4.1.4.2/pam.d/chsh new file mode 100644 index 000000000..8fb169f64 --- /dev/null +++ b/meta-lsb/packages/shadow/shadow-4.1.4.2/pam.d/chsh @@ -0,0 +1,19 @@ +# +# The PAM configuration file for the Shadow `chsh' service +# + +# This will not allow a user to change their shell unless +# their current one is listed in /etc/shells. This keeps +# accounts with special shells from changing them. +auth required pam_shells.so + +# This allows root to change user shell without being +# prompted for a password +auth sufficient pam_rootok.so + +# The standard Unix authentication modules, used with +# NIS (man nsswitch) as well as normal /etc/passwd and +# /etc/shadow entries. +auth include common-auth +account include common-account +session include common-session |