Sudo: command not found

OK, I got Jaguar installed and all updated on my trusty Wallstreet. the first time I installed it, something got messed up, and the desktop would not show up. So, I reinstalled, with a minmial install, then added in the BSD subsystem. I thought everything was fine, except the terminal would not display "welcome to Darwin!" when opened, instead, all I get is bash-2.05a$ when it starts up.

So, when trying to run some shell scripts (to uninstall something), I typed in sudo and dragged the script to the terminal window, and pressed enter. all I got was: Sudo: command not found. So, I tried the old standby, su. it asked for my password (yes, I am running this from an admin account), and all it said was su: sorry. I know I am typing in my password correctly.

the next step was to see where sudo is located, so i typed in

which sudo

and all I got was

no sudo in /bin /sbin /usr/bin /usr/sbin

so, from the looks of it, sudo was never installed. How am I supposed to get this back? reinstall the BSD subsystem, or is there some Quick and Dirty(tm) way to get it back?

I am not afraid to play around in the terminal, as I am a Linux/unix junkie.

thanks.

-digital ๐Ÿ˜‰

Powerbook G3 (Wallstreet), Power Macintosh G3 (Blue and White), Macintosh LC III, Mac OS X (10.2.x)

Posted on Feb 25, 2007 4:34 PM

Reply
10 replies

Feb 25, 2007 7:23 PM in response to iamdigitalman

So, I reinstalled, with a minmial install,
then added in the BSD subsystem. I thought everything
was fine, except the terminal would not display
"welcome to Darwin!" when opened, instead, all I get
is bash-2.05a$ when it starts up.


I think you may need to resintall again. This time, just accept all the defaults. The standard MacOS X install is about as minimal as you want to get. Personally, I consider minimal to be standard install + Xcode + 10.2 development (in Tiger). If you are Linux junkie, I think you'll be wanting Xcode as well.

Feb 26, 2007 4:55 PM in response to iamdigitalman

Maybe check your .bash_profile (or similar files) and see if you are blowing away the system path. My sudo is in /usr/bin (on Tiger).

Also, when I said "reinstall", I should have been more specific. It means different things to different people. When I say "reinstall", that includes deleting the old partition on the disk so you get a genuinly fresh installation.

Feb 27, 2007 1:11 AM in response to etresoft

I will do a full reinstall later on possibly by Wednesday, and let you know how it goes. i'll wipe down the drive really well, and reparition it exactly like it is now, and reinstall. I did format the partition, if that's what you mean.

by the way, this is my current partition map:

7.45gb for OS X (the 8gb limit)
5gb for OS 9 (native boot, I do have a system folder on the OS X partition for classic mode.)
25gb for everything else.

-digital ๐Ÿ˜‰

Mar 2, 2007 5:04 PM in response to iamdigitalman

It's fixed. it was just a bad copy. I got another one, and now when I launch the terminal, it says

Last login: Fri Mar 2 19:53:49 on ttyp1
Welcome to Darwin!
[Leo-Titus-LeBron-Vs-Computer:~] leolebron%

and when I type sudo, it says:

usage: sudo -V | -h | -L | -l | -v | -k | -K | [-H] [-P] [-S] [-b] [-p prompt]
[-u username/#uid] -s | <command>

So, it all works. I knew something was different, as right after running the setup assistant, it ran software update, which the other copy did not do.

thanks for all the input.

-digital ๐Ÿ˜‰

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Sudo: command not found

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.