Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

blvdeast

macrumors regular
Original poster
Nov 19, 2003
127
0
Cliffside Park, NJ
I am in terminal and need root access, and typed su and was asked for my password. I entered my regular login password (i am admin) and it rejected it. I don't recall using any other password for OSX
 
Just to elaborate, the root account is disabled by default. Using the sudo command allows you to run a command with root priveleges, without actually logging in as root (and therefore getting around its disabledness). sudo will ask you for a password too, it wants your regular user password.
 
Sorry to sound like a newbie, but what syntax do I need to use? I used sudo ./FILENAME then enter, entered my regular password, and was told me command was invalid.
 
blvdeast said:
Sorry to sound like a newbie, but what syntax do I need to use? I used sudo ./FILENAME then enter, entered my regular password, and was told me command was invalid.

what exactly are you trying to do? Execute a shell script?
 
Then you must make sure that the file has execute permissions.

If you want to do this from terminal you can type

chmod 774 filename

Then you can try to execute it, if you get the same error, its possible the program (or shell script) has commands that the shell or OS X doesn't recognize.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.