Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
Terminal commands getting error messages.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="sc8ing" data-source="post: 1128591" data-attributes="member: 175659"><p>Thanks for the input, this is where I'm at. I tried running "<em>sudo</em>visudo" but found no luck. Any command that uses "sudo" falls back on the error message I have constantly repeating: "computername:~ username$ sudo chmod 0440 /etc/sudoers</p><p>sudo: /etc/sudoers is mode 0777, should be 0440</p><p>Segmentation fault"</p><p></p><p>Running any sudo command causes this problem. </p><p></p><p>I'm not sure how to check if the permissions are the same, so I just did "sudo chmod 0440 /etc/sudoers" to make sure it was, but I got error "sudo: /etc/sudoers is mode 0777, should be 0440</p><p>Segmentation fault", the same as always when using "sudo".</p><p>Since it appears that I have in some way been "locked out" of running sudo commands, I tried doing that last command without the sudo part but the operation was not permitted, as expected.</p><p></p><p>Running "sudo chown root:wheel /etc/sudoers" doesn't work because of the same error message, but "chown root:wheel /etc/sudoers" does, or appears to work.</p></blockquote><p></p>
[QUOTE="sc8ing, post: 1128591, member: 175659"] Thanks for the input, this is where I'm at. I tried running "[I]sudo[/I]visudo" but found no luck. Any command that uses "sudo" falls back on the error message I have constantly repeating: "computername:~ username$ sudo chmod 0440 /etc/sudoers sudo: /etc/sudoers is mode 0777, should be 0440 Segmentation fault" Running any sudo command causes this problem. I'm not sure how to check if the permissions are the same, so I just did "sudo chmod 0440 /etc/sudoers" to make sure it was, but I got error "sudo: /etc/sudoers is mode 0777, should be 0440 Segmentation fault", the same as always when using "sudo". Since it appears that I have in some way been "locked out" of running sudo commands, I tried doing that last command without the sudo part but the operation was not permitted, as expected. Running "sudo chown root:wheel /etc/sudoers" doesn't work because of the same error message, but "chown root:wheel /etc/sudoers" does, or appears to work. [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Terminal commands getting error messages.
Top