mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	fix #1252
This commit is contained in:
		
							parent
							
								
									2d6901e4dc
								
							
						
					
					
						commit
						453618f035
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
#!/bin/bash
 | 
					#!/bin/bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function check_user_pwd() {
 | 
					check_user_pwd () {
 | 
				
			||||||
    # $meth (hashing method) is typically '6' which implies 5000 rounds
 | 
					    # $meth (hashing method) is typically '6' which implies 5000 rounds
 | 
				
			||||||
    # of SHA-512 per /etc/login.defs -> /etc/pam.d/common-password
 | 
					    # of SHA-512 per /etc/login.defs -> /etc/pam.d/common-password
 | 
				
			||||||
    meth=$(sudo grep "^$1:" /etc/shadow | cut -d: -f2 | cut -d$ -f2)
 | 
					    meth=$(sudo grep "^$1:" /etc/shadow | cut -d: -f2 | cut -d$ -f2)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue