support rights setting for homedir
This commit is contained in:
		
							parent
							
								
									1d1ca8ec12
								
							
						
					
					
						commit
						c6c9947dc6
					
				| 
						 | 
				
			
			@ -121,8 +121,9 @@ if ($< == 0 ) { # we are root
 | 
			
		|||
								system 'chown', '-hR', "$user[2]:$user[3]" , $user[7]; # Change owner to new user
 | 
			
		||||
								if (-e '/usr/sbin/useradd.local') {
 | 
			
		||||
									system '/usr/sbin/useradd.local', $user[0]; # run useradd-script
 | 
			
		||||
									}
 | 
			
		||||
								}
 | 
			
		||||
								system 'chmod', $vals[3], $user[7];     # Edit chmod rights
 | 
			
		||||
							}
 | 
			
		||||
							else {
 | 
			
		||||
								$return = "ERROR,Lamdaemon,Homedirectory already exists.:$return";
 | 
			
		||||
								}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue