I just got a MacBook Pro in November, and I've been having so many problems trying to do command line stuff that it makes me want to cry. Right now I'm trying to reinstall lua because it stopped working right, and I'm trying to install MacPorts to do so. When I tried to run the command: sudo port -d selfupdate to update the ports like the MacPorts website says to do, I got a couple of permission denied messages and something about "can't find package Pextlib 1.0". So I looked up the Pextlib thing and was following the instructions at this site but when I try to edit pkgIndex.tcl file I get a permission denied message again. I tried repairing permissions with disk utility, but that didn't work. I ran "ls -lad /" and got: drwxrwxr-t 33 root admin 1190 Dec 26 17:44 / and I ran "id" and got: uid=501(myname) gid=20(staff) groups=20(staff),204(_developer),100(_lpoperator),98(_lpadmin),81(_appserveradm),80(admin),79(_appserverusr),61(localaccounts),12(everyone),401(com.apple.access_screensharing),402(com.apple.sharepoint.group.1) I really have no idea how to fix this stuff and I'm on my last nerve with this computer. Can anyone help me out?