sudo command broken! (UNIX people-- please help a stupid newb :( )
Macbook Pro 5,2, Mac OS X (10.6.2)
Want to highlight a helpful answer? Upvote!
Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >
Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >
Macbook Pro 5,2, Mac OS X (10.6.2)
PJameson wrote:
Note: This is currently crossposted in Using 10.6; please forgive me. I didn't realize that there's a UNIX forum, and I can't figure out how to delete posts on these forums for the life of me.
Hello all! I broke my sudo! I'm sure that all the fun topics on these forums start with "Well, I saw these lines of code on a forum somewhere..." and this one does too. I'll go ahead and place the error output here (as I think that's all that's really needed to know to fix this), but the stuff I was trying to run is also below.
I presume this means that I need to go into said file and fix something, but because of the fear that sudo inspires (let's call it "sudo stigma"), I'd really appreciate it if somebody could tell me the right thing to do 🙂
I was trying to fix VirtueDesktops for 10.5 (to see if the posted 10.5 fix would work for 10.6, of course). VirtueDesktops is a pre-10.5 Spaces-like virtual desktop manager, with cool features and iCandy that I must have, not for functionality, just because I'm a dangerous mix of superficial and OCD. The code was posted to the OSX86 forums, and was:
sudo su
chmod 755 /Applications/VirtueDesktops.app/Contents/MacOS/VirtueDesktops
echo "%admin ALL=(ALL) NOPASSWD: /Applications/VirtueDesktops.app/Contents/MacOS/VirtueDesktops" >> /private/etc/sudoers
PJameson wrote:
Note: This is currently crossposted in Using 10.6; please forgive me. I didn't realize that there's a UNIX forum, and I can't figure out how to delete posts on these forums for the life of me.
Hello all! I broke my sudo! I'm sure that all the fun topics on these forums start with "Well, I saw these lines of code on a forum somewhere..." and this one does too. I'll go ahead and place the error output here (as I think that's all that's really needed to know to fix this), but the stuff I was trying to run is also below.
I presume this means that I need to go into said file and fix something, but because of the fear that sudo inspires (let's call it "sudo stigma"), I'd really appreciate it if somebody could tell me the right thing to do 🙂
I was trying to fix VirtueDesktops for 10.5 (to see if the posted 10.5 fix would work for 10.6, of course). VirtueDesktops is a pre-10.5 Spaces-like virtual desktop manager, with cool features and iCandy that I must have, not for functionality, just because I'm a dangerous mix of superficial and OCD. The code was posted to the OSX86 forums, and was:
sudo su
chmod 755 /Applications/VirtueDesktops.app/Contents/MacOS/VirtueDesktops
echo "%admin ALL=(ALL) NOPASSWD: /Applications/VirtueDesktops.app/Contents/MacOS/VirtueDesktops" >> /private/etc/sudoers
sudo: /etc/sudoers is mode 0666, should be 0440
chmod -R 0440 /etc/sudoers
chmod: Unable to change file mode on /etc/sudoers: Operation not permitted
system - Read only
wheel - Read only
everyone - No Access
KJK555 wrote:
+"Also, if anyone sees this, and happens to know a website they can recommend for learning basic navigation, file manipulation, etc., in UNIX, I'd love a link!"+
This ought to keep you out of trouble for a while. 🙂
sudo command broken! (UNIX people-- please help a stupid newb :( )