LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 02-14-2019, 01:16 PM   #1
KenJackson
Member
 
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora and others
Posts: 755

Rep: Reputation: 144Reputation: 144
sudo editor conundrum on OpenIndiana


When I run visudo as root on OpenIndiana, it responds with an error:
Code:
visudo: no editor found (editor path = /usr/bin/vi)
So I installed vi (though /usr/bin/vi is actually a symbolic link to vim).

But it keeps giving me the same failure. I tried setting EDITOR and VISUDO_EDITOR in the environment, but still no joy.

How can I run visudo to enable sudo for my non-root user?
 
Old 02-15-2019, 01:03 PM   #2
KenJackson
Member
 
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora and others
Posts: 755

Original Poster
Rep: Reputation: 144Reputation: 144
I solved this by creating a one-line file in /etc/sudoers.d:
Code:
myuser ALL=(ALL) ALL
Command "visudo -c -f FILE" works to check the format, but I still can't edit with visudo.
 
  


Reply

Tags
openindiana, sudo, visudo


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The Ultimate Sudo FAQ To Sudo Or Not To Sudo? LXer Syndicated Linux News 13 04-13-2013 01:36 AM
Hitachi scsi hard disk fdisk curiosity/conundrum rharvey@cox Linux - Hardware 4 11-07-2003 08:31 AM
Dual Boot Installation Help - A Conundrum MalNSF Linux - General 1 11-03-2003 05:41 AM
@Home Conundrum. bzzt-whir Linux - Networking 0 02-18-2002 01:08 PM
Quite the conundrum...... Randall Linux - Newbie 10 11-09-2001 05:38 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 03:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration