Skip to content

Instantly share code, notes, and snippets.

@josy1024
Last active January 11, 2016 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josy1024/fe39201169f5e3cec115 to your computer and use it in GitHub Desktop.
Save josy1024/fe39201169f5e3cec115 to your computer and use it in GitHub Desktop.
searches with in current directory for "not accessable" files puts it out to console and stores it to /tmp/noaccess
#!/bin/bash
# searches with in current directory for "not accessable" files puts it out to console and stores it to /tmp/noaccess
# noaccess no access
#
# author: Josef lahmer
# 11.1.2016
# https://gist.github.com/josy1024/fe39201169f5e3cec115
# http://josy1024.blogspot.co.at/2016/01/mr-robots-noaccess.html
#
# inspired by MR. ROBOT
# follows Elliot, a cyber-security engineer by day and vigilante hacker by night, who gets recruited by a mysterious underground group to destroy the firm he is paid to protect.
# snippled:
# test: folder owend by root and 700 permissions
# drwx------ 2 root root 4096 11. Jan 16:31 noaccessdir
# ls example
ls -R . 2>&1 1>/dev/null | tee -a /tmp/noaccess
# expected output with ls
# ls: Öffnen von Verzeichnis ./noaccessdir nicht möglich: Keine Berechtigung
# find example
find . 2>&1 1>/dev/null | tee -a /tmp/noaccess
# expected output with find
# "./noaccessdir": Keine Berechtigung
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment