1832857 Members
3328 Online
110047 Solutions
New Discussion

Re: visudo problem

 
Dags
Frequent Advisor

visudo problem

Hi Masters,

Im having problem with my box(HP-UX alxapd03 B.11.23 U ia64 1919643550 unlimited-user license). I already installed sudo (sudo-1.7.2p1-ia64-11.23.depot). But when I've tried editing visudo (/usr/local/sbin/visudo) it only shows blank text. Anyone knows how to fix this?

Thanks in advance.
8 REPLIES 8
Kapil Jha
Honored Contributor

Re: visudo problem

what does /etc/sudoers file shows.
and what you want to be there in it, you have to configure it as per your needs.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Dags
Frequent Advisor

Re: visudo problem

Hi Kapil, thanks for your reply.

# cat /etc/sudoers
cat: Cannot open /etc/sudoers: No such file or directory

It's a newly installed box and I need users to have sudo.
Kapil Jha
Honored Contributor

Re: visudo problem

ok what about /usr/local/etc/sudoers

or try to do
find / -name sudoers

Are you sure it was installed properly.
Try reinstaling it.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Dags
Frequent Advisor

Re: visudo problem

# cat /usr/local/etc/sudoers
# find / -name sudoers
/opt/iexpress/sudo/newconfig/opt/iexpress/sudo/etc/sudoers
/usr/local/etc/sudoers

BTW, is it OK to reinstall it directly? I mean use sam again?

thanks again
Kapil Jha
Honored Contributor

Re: visudo problem

You can remove it first and install again.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Jim Walls
Trusted Contributor

Re: visudo problem

You appear to be using the Internet Express bundle for sudo. The binaries and, importantly, the sodoers file are installed under /opt/iexpress/sudo.

You may also seem to have a different (rogue) version installed in /usr/local/bin.

Run the following command to see which version you are accessing:

ls -l $(which sudo) $(which visudo)

If the binaries are not from /opt/iexpress/sudo/bin then you need to remove the rogue version and create the following symbolic links:

ln -s /opt/iexpress/sudo/bin/sudo /usr/bin/sudo
ln -s /opt/iexpress/sudo/bin/visudo /usr/bin/visudo


Dags
Frequent Advisor

Re: visudo problem

problem solved by copying another /usr/local/etc/sudoers file from another box(B.11.23 U ia64). thanks for the assistance
Dags
Frequent Advisor

Re: visudo problem

problem solved by copying another /usr/local/etc/sudoers file from another box(B.11.23 U ia64). thanks for the assistance