mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	Update sshpwd-lxde-iiab.sh
This commit is contained in:
		
							parent
							
								
									c489c8f8a3
								
							
						
					
					
						commit
						4ce8f873d8
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -16,6 +16,11 @@ check_user_pwd() {
 | 
			
		|||
    # enough when user does not exist.  Or uncomment to FORCE ERROR CODE 2.
 | 
			
		||||
    # Either way, overall bash script still returns exit code 0 ("success")
 | 
			
		||||
 | 
			
		||||
    # sudo works below (unlike in sshpwd-profile-iiab.sh) b/c RaspiOS ships w/
 | 
			
		||||
    # /etc/sudoers.d/010_pi-nopasswd containing "pi ALL=(ALL) NOPASSWD: ALL"
 | 
			
		||||
    # (read access to /etc/shadow is otherwise restricted to just root and
 | 
			
		||||
    # group www-data i.e. Apache, NGINX get special access).  SEE: #2431, #2561
 | 
			
		||||
 | 
			
		||||
    # $meth (hashing method) is typically '6' which implies 5000 rounds
 | 
			
		||||
    # of SHA-512 per /etc/login.defs -> /etc/pam.d/common-password
 | 
			
		||||
    meth=$(sudo grep "^$1:" /etc/shadow | cut -d: -f2 | cut -d$ -f2)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue