feat: allow tt to run any command as student with sudo
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				push / build (push) Successful in 3m55s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	push / build (push) Successful in 3m55s
				
			This commit is contained in:
		
							parent
							
								
									df12c781af
								
							
						
					
					
						commit
						bc65740378
					
				|  | @ -11,7 +11,7 @@ RUN sed -i s@/deb.debian.org/@/mirrors.tuna.tsinghua.edu.cn/@g /etc/apt/sources. | ||||||
|     useradd -u 1000 -ms /bin/bash tt && \ |     useradd -u 1000 -ms /bin/bash tt && \ | ||||||
|     useradd -u 1001 -ms /bin/bash student && \ |     useradd -u 1001 -ms /bin/bash student && \ | ||||||
|     usermod -aG student tt && \ |     usermod -aG student tt && \ | ||||||
|     echo "student ALL=(tt) NOPASSWD:SETENV:/usr/local/bin/joj3\nstudent ALL=(tt) NOPASSWD:SETENV:/usr/local/bin/joj3-teapot" > /etc/sudoers.d/joj |     echo "student ALL=(tt) NOPASSWD:SETENV:/usr/local/bin/joj3\ntt ALL=(student) NOPASSWD:SETENV ALL" > /etc/sudoers.d/joj | ||||||
| 
 | 
 | ||||||
| # install joint-teapot | # install joint-teapot | ||||||
| # TODO: change it to FOCS gitea mirror for deployment | # TODO: change it to FOCS gitea mirror for deployment | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user