Skip to content

Instantly share code, notes, and snippets.

Vinicius da Costa Pires viniciuspires

Block or report user

Report or block viniciuspires

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@viniciuspires
viniciuspires / fixpermissions.sh
Created May 14, 2015
Bash to fix file permissions in a Debian-like machine (specifically Ubuntu)
View fixpermissions.sh
#!/bin/bash
ARCHIVE_DIR=/var/cache/apt/archives/
PACKAGES=`ls $ARCHIVE_DIR`
cd /
function changePerms()
{
echo ""
CHOWN="/bin/chown"
You can’t perform that action at this time.