X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=TROUBLESHOOTING;h=9ed181772f0322fbd58d752c3560b1901b853401;hb=f3530d8198251b72d01da9a07b1fa518446ec0f0;hp=a90b5eb9ff67c70be25f0b34487e13972411d474;hpb=06a67e2a5850f36c627b46f330c988e031536ab3;p=debian%2Fsudo diff --git a/TROUBLESHOOTING b/TROUBLESHOOTING index a90b5eb..9ed1817 100644 --- a/TROUBLESHOOTING +++ b/TROUBLESHOOTING @@ -8,6 +8,14 @@ A) This usually means you either don't have a working compiler. This to why this is happening. On many systems, compiler components live in /usr/ccs/bin which may not be in your PATH environment variable. +Q) When I run configure, it says "sudo requires the 'ar' utility to build". +A) As part of the build process, sudo creates a temporary library containing + objects that are shared amongst the different sudo executables. + On Unix systems, the "ar" utility is used to do this. This error + indicates that "ar" is missing on your system. On Solaris systems, + you may need to install the SUNWbtool package. On other systems + "ar" may be included in the GNU binutils package. + Q) Sudo compiles but when I run it I get "Sorry, sudo must be setuid root." and sudo quits. A) Sudo must be setuid root to do its work. You need to do something like @@ -36,12 +44,13 @@ Q) Sudo is setup to log via syslog(3) but I'm not getting any log messages. A) Make sure you have an entry in your syslog.conf file to save the sudo messages (see the sample.syslog.conf file). The default - log facility is local2 (changeable via configure). Don't forget - to send a SIGHUP to your syslogd so that it re-reads its conf file. - Also, remember that syslogd does *not* create log files, you need to - create the file before syslogd will log to it (ie: touch /var/log/sudo). - Note: the facility ("local2.debug") must be separated from the - destination ("/var/adm/sudo.log" or "@loghost") by + log facility is authpriv (changeable via configure or in sudoers). + Don't forget to send a SIGHUP to your syslogd so that it re-reads + its conf file. Also, remember that syslogd does *not* create + log files, you need to create the file before syslogd will log + to it (ie: touch /var/log/sudo). + Note: the facility (e.g. "auth.debug") must be separated from the + destination (e.g. "/var/log/auth" or "@loghost") by tabs, *not* spaces. This is a common error. Q) When sudo asks me for my password it never accepts what I enter even @@ -177,6 +186,14 @@ A) The default user sudo tries to run things as is always root, even if Defaults:bob runas_default=oracle would achieve the desired result ofr the preceding sudoers fragment. +Q) When I try to run sudo via ssh, I get the error: + sudo: no tty present and no askpass program specified +A) ssh does not allocate a tty by default when running a remote command. + Without a tty, sudo cannot disable echo when prompting for a password. + You can use ssh's "-t" option to force it to allocate a tty. + Alternately, if you do not mind your password being echoed to the + screen, you can use the "visiblepw" sudoers option to allow this. + Q) How do you pronounce `sudo'? A) The official pronunciation is soo-doo (for su "do"). However, an alternate pronunciation, a homophone of "pseudo", is also common.