Last active
July 7, 2025 13:27
-
-
Save dex4er/1df30186ff6ebdebf795a7821bf2720f to your computer and use it in GitHub Desktop.
kubectl-debug-filesystem.sh
This file contains hidden or 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
ps -o pid,user,group|while read pid user group; do if [ $pid == 1 ]; then if [ $group -gt 0 ]; then addgroup -g $group debug; fi; if [ $user -gt 0 ]; then adduser -HD -u $user -G $group debug; fi fi; done | |
su debug | |
cd /proc/1/root |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment