I copy shiro.ini.template to shiro.ini
modify shiro.ini
 
#[users]
#admin = password1, admin
#user1 = password2, role1, role2
#user2 = password3, role3
#user3 = password4, role2
 ………………………………………………………………
 #A sample PAM configuration
pamRealm=org.apache.zeppelin.realm.PamRealm
pamRealm.service=zeppelin

in /etc/pam.d/zeppelin
#%PAM-1.0
#This file is auto-generated.
#User changes will be destroyed the next time authconfig is run.
auth sufficient pam_unix.so nullok try_first_pass
auth requisite pam_succeed_if.so uid >= 1000 quiet_success
#auth required pam_deny.so
#
account required pam_unix.so
account sufficient pam_localuser.so
account sufficient pam_succeed_if.so uid < 1000 quiet
account required pam_permit.so
 
but only "jzyc" user can login, other users get error "The username and 
password that you entered don't match."
I ensure username and passowd is correct.
 
if I use "pamRealm.service=sshd"
also only "jzyc" use can login,
I ensure "read_hive" user can ssh, but "read_hive" can't login zeppelin




igyu

Reply via email to