New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #20907 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

sudo succeeds install but fails on usage

Reported by: guy.kogus@… Owned by: snc@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: sudo

Description

I just installed Snow Leopard and decided to re-install MacPorts from scratch. After installing sudo, which succeeds without problems, I get critical errors when I use it. When I use the MacPorts' sudo Terminal stops responding. I can't re-open Terminal until I restart the computer. The built-in sudo works fine.

Change History

comment:1 Changed 4 years ago by snc@…

  • Owner changed from macports-tickets@… to snc@…
  • Keywords snowleopard added
  • Status changed from new to assigned

Two things are possibly wrong from what I can see:

${prefix}/var/run/sudo is missing and/or a bug in libdispatch.

Further investigation after a reboot :-)

comment:2 Changed 4 years ago by toby@…

bug in libdispatch seems *highly* unlikely here

comment:3 Changed 4 years ago by snc@…

  • Status changed from assigned to closed
  • Resolution set to fixed

Added the missing directory in r56552.

comment:4 Changed 4 years ago by snc@…

  • Status changed from closed to reopened
  • Resolution fixed deleted

There are missing Defaults lines in the sudoers files that is distributed!

Defaults	env_reset
Defaults	env_keep += "BLOCKSIZE"
Defaults	env_keep += "COLORFGBG COLORTERM"
Defaults	env_keep += "__CF_USER_TEXT_ENCODING"
Defaults	env_keep += "CHARSET LANG LANGUAGE LC_ALL LC_COLLATE LC_CTYPE"
Defaults	env_keep += "LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME"
Defaults	env_keep += "LINES COLUMNS"
Defaults	env_keep += "LSCOLORS"
Defaults	env_keep += "SSH_AUTH_SOCK"
Defaults	env_keep += "TZ"
Defaults	env_keep += "DISPLAY XAUTHORIZATION XAUTHORITY"
Defaults	env_keep += "EDITOR VISUAL"

comment:5 Changed 4 years ago by snc@…

  • Keywords snowleopard removed
  • Version 1.8.0 deleted

comment:6 Changed 4 years ago by snc@…

  • Status changed from reopened to closed
  • Resolution set to fixed

Try the dist file from r56850 (or just copy yours from /etc/sudoers).

Note: See TracTickets for help on using tickets.