Last active
August 5, 2019 09:52
-
-
Save caramelchocolate/720fcd04d29b160366a81812555247c0 to your computer and use it in GitHub Desktop.
chmod 777 in jail
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
jls | awk 'NR>1 {print $4}' | awk -F'/' '{print $NF}' | xargs -L1 -I@ sh -c 'j=@; echo "${j}"; sh -c "ls -lt /jail/${j}/" | grep "tmp"; echo;' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
jls | awk 'NR>1 {print $4}' | awk -F'/' '{print $NF}' | xargs -L1 -I@ sh -c 'j=@; sh -c "chmod 777 /jail/${j}/tmp"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment