tag:blogger.com,1999:blog-1015214236289077798.post5223298263026480005..comments2024-03-24T17:13:53.855-07:00Comments on TenFourFox Development: Security notes: sudo and OS X, more reasons you should not use JavaClassicHasClasshttp://www.blogger.com/profile/17331846076856918359noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-1015214236289077798.post-50806244370793875982013-10-29T20:55:37.644-07:002013-10-29T20:55:37.644-07:00At least you are going through visudo which checks...At least you are going through visudo which checks the file to make sure it is valid before saving it.Yuhong Baohttps://www.blogger.com/profile/14519473280837410246noreply@blogger.comtag:blogger.com,1999:blog-1015214236289077798.post-89076034629818765352013-08-30T13:17:58.679-07:002013-08-30T13:17:58.679-07:00Thanks, it worked. I am now asked for my password ...Thanks, it worked. I am now asked for my password every single time I use sudo, which probably helps against a lot of other potential exploits as well. Sudo version on 10.5 is 1.6.8p12, btw, the same as on 10.4.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1015214236289077798.post-27003267505661382272013-08-30T09:44:51.096-07:002013-08-30T09:44:51.096-07:00(But, if you want the vi keystrokes, it should be:...(But, if you want the vi keystrokes, it should be:<br /><br />0G (that's zero followed by capital G)<br />o (that's lower case "O")<br />Defaults timestamp_timeout=0<br /><br />Then press ESC, and<br /><br />:wq! (that's a colon followed by w q and exclamation point)ClassicHasClasshttps://www.blogger.com/profile/17331846076856918359noreply@blogger.comtag:blogger.com,1999:blog-1015214236289077798.post-42193233321546300132013-08-30T09:41:52.646-07:002013-08-30T09:41:52.646-07:00In that case, I'd go with Dan's recommenda...In that case, I'd go with Dan's recommendation. I love vi, but it's not very friendly to the uninitiated; nano is pretty easy to work with. You probably need to do "sudo nano /private/etc/sudoers" and the insert the line at the end.ClassicHasClasshttps://www.blogger.com/profile/17331846076856918359noreply@blogger.comtag:blogger.com,1999:blog-1015214236289077798.post-90235036658640068122013-08-30T03:20:57.589-07:002013-08-30T03:20:57.589-07:00I wonder if people who have never done this before...I wonder if people who have never done this before know how to insert lines with the vi editor (or any Terminal based editor) and successfully save the sudoers file without messing it up. I'm not exactly sure, so I refrained from changing the file for now. The man and :help pages aren't too helpful. Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1015214236289077798.post-50124674342999235222013-08-30T02:24:03.593-07:002013-08-30T02:24:03.593-07:00Sudo, I thought you were a friend!
If you have no...Sudo, I thought you were a friend!<br /><br />If you have no idea how to use vi, you can edit (at least in Tiger) /private/etc/sudoers with nano.<br /><br />Larry Ellison's too busy playing with boats in his kiddie pool to have time for his sandbox.Danhttps://www.blogger.com/profile/04700474277267739107noreply@blogger.comtag:blogger.com,1999:blog-1015214236289077798.post-28421151831595200092013-08-29T14:22:09.954-07:002013-08-29T14:22:09.954-07:00Thanks for the sudo tip!
(also gave me another cha...Thanks for the sudo tip!<br />(also gave me another chance to practice using vim :) )Manoah F. Adamshttps://www.blogger.com/profile/12472457778450816258noreply@blogger.com