mirror of
				https://gitea.blesmrt.net/mikaela/shell-things.git
				synced 2025-10-31 17:37:20 +01:00 
			
		
		
		
	 621f44daca
			
		
	
	
		621f44daca
		
	
	
	
	
		
			
			setfacl was used to give HTTPd write permission, but setfacl cannot do that, because it can only give permissions which group has and group has only permissions to read and execute, not write. Someone should check if things in this script are even sane.
		
			
				
	
	
		
			32 lines
		
	
	
		
			648 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			648 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env bash
 | |
| # This script removes permissions from other people than the owner to 
 | |
| # files/folders that they don't have access to and where they don't need
 | |
| # access.
 | |
| ## THIS SCRIPT HAS MOVED TO SHELL-THINGS AS "chmod"!
 | |
| ## https://raw.github.com/Mkaysi/shell-things/master/chmod
 | |
| set -x
 | |
| 
 | |
| chmod g-rwx,o-rwx $HOME -R
 | |
| 
 | |
| touch ~/.oidentd.conf
 | |
| 
 | |
| chmod u+rw,g-wx+r,o-wx+r ~/.oidentd.conf
 | |
| 
 | |
| touch ~/.ICEauthority
 | |
| chmod o-rw+x,g-rw+x ~
 | |
| 
 | |
| mkdir -p ~/public_html/
 | |
| chmod -R 755 ~/public_html/
 | |
| 
 | |
| touch ~/.face
 | |
| touch ~/.forward
 | |
| touch ~/.netrc
 | |
| chmod a+r-wx,u+rw ~/.face
 | |
| chmod a+r-wx,u+rw ~/.forward
 | |
| chmod 600 ~/.netrc
 | |
| 
 | |
| if [ -f chmod.2 ]; then
 | |
|     ./chmod.2
 | |
| fi
 | |
| 
 |