Looks like bad syntax..... get rid of "sh".
You know it doesn't matter what you name the script / binary. Just because it's script.sh doesn't necessarily mean you have to use the sh shell. It could be called script.purple.elephant and run in tcsh or whatever. If you have to use sh then launch it first and then do the sudo command.
no, it is SH.. i need to do:
sudo sh ascent.sh
It does it even if i just type:
I might just end up turning the root account on... But I really would HATE to do that, it is a server. I dont want to worry about securlty..
If anyone knows how to fix:
sudo: can't open /private/etc/sudoers: Permission denied
then please help me!!!
For some reason it seems like the System cant read the file..
I made sure it was 0440 (permissions)...
I wil check it again, but if it is anything other than 0440 it yells at me...
To check the SUID bit, do the following....
ls -l /usr/bin/sudo
This should give you..
"-r-s--x--x 1 root wheel 206K Sep 23 22:29 /usr/bin/sudo"
Which corresponds to numeric permissions of 4511.
Also try to do...
and see if it spits out anything. Mine reports "Sudo version 1.6.8p12"
I did some digging around and it looks like maybe your sudo binary got jacked up somehow.
Sully:~ ryansully11$ ls -l /usr/bin/sudo
-r-s--x--x 1 root wheel 211232 Sep 23 22:29 /usr/bin/sudo
Sully:~ ryansully11$ sudo -V
Sudo version 1.6.8p12
what IF it got "jacked" any help please?
I got Mac Leopard, with all updates (that i know of)
I'm not sure where to go from here. We could go on probing parts of the operating system but we are dealing with a server. It might be time to pull the plug, clone the present OS, and build the server from the ground up. You could then explore the clone for signs of intrusion.
Message was edited by: Mark Jalbert