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="XJ-linux" data-source="post: 1128203" data-attributes="member: 33722"><p>On my system I use the command:</p><p>sudo visudo</p><p>I don't specify the file name or path</p><p></p><p>Example:</p><p>MacGyver:~ username$ visudo</p><p>visudo: /etc/sudoers: Permission denied</p><p>visudo: /etc/sudoers: Permission denied</p><p>MacGyver:~ username$ sudo visudo</p><p>Password:</p><p>visudo: /etc/sudoers.tmp unchanged</p><p>MacGyver:~ username$ sudo visudo /etc/sudoers</p><p>usage: visudo [-c] [-q] [-s] [-V] [-f sudoers]</p><p>MacGyver:~ username$ cd /etc</p><p>MacGyver:etc username$ ls -la | grep sudoers</p><p>-r--r----- 1 root wheel 1242 Oct 20 19:22 sudoers</p><p></p><p>You might check to make sure your permissions are the same and if not, use the command:</p><p>sudo chmod 0440 /etc/sudoers</p><p>sudo chown root:wheel /etc/sudoers</p></blockquote><p></p>
[QUOTE="XJ-linux, post: 1128203, member: 33722"] On my system I use the command: sudo visudo I don't specify the file name or path Example: MacGyver:~ username$ visudo visudo: /etc/sudoers: Permission denied visudo: /etc/sudoers: Permission denied MacGyver:~ username$ sudo visudo Password: visudo: /etc/sudoers.tmp unchanged MacGyver:~ username$ sudo visudo /etc/sudoers usage: visudo [-c] [-q] [-s] [-V] [-f sudoers] MacGyver:~ username$ cd /etc MacGyver:etc username$ ls -la | grep sudoers -r--r----- 1 root wheel 1242 Oct 20 19:22 sudoers You might check to make sure your permissions are the same and if not, use the command: sudo chmod 0440 /etc/sudoers sudo chown root:wheel /etc/sudoers [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Terminal commands getting error messages.
Top