=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sudo/Attic/TROUBLESHOOTING,v retrieving revision 1.2 retrieving revision 1.2.8.1 diff -c -r1.2 -r1.2.8.1 *** src/usr.bin/sudo/Attic/TROUBLESHOOTING 2000/01/24 04:22:52 1.2 --- src/usr.bin/sudo/Attic/TROUBLESHOOTING 2002/01/18 16:14:44 1.2.8.1 *************** *** 1,6 **** ! FAQ and troubleshooting tips for Sudo ===================================== 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 --- 1,13 ---- ! Troubleshooting tips and FAQ for Sudo ===================================== + Q) When I run configure, it says "C compiler cannot create executables". + A) This usually means you either don't have a working compiler. This + could be due to the lack of a license or that some component of the + compiler suite could not be found. Check config.log for clues as + 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) 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 *************** *** 10,15 **** --- 17,28 ---- your $PATH before the directory containing sudo. If you are going to have '.' in your path you should make sure it is at the end. + Q) Sudo compiles but when I run it I get "seteuid(0): Operation not permitted" + and sudo quits. + A) The operating system you are running probably has broken support for + POSIX saved IDs. You should run configure with the "--disable-saved-ids" + option and rebuild sudo. + Q) Sudo never gives me a chance to enter a password using PAM, it just says 'Sorry, try again.' three times and quits. A) You didn't setup PAM to work with sudo. On Linux this generally *************** *** 70,83 **** LOCALDOMAIN RES_OPTIONS HOSTALIASES ENV BASH_ENV LD_* _RLD_* SHLIB_PATH (HP-UX only) ! LIB_PATH (AIX only) KRB_CONF (kerb4 only) KRB5_CONFIG (kerb5 only) Q) How can I keep sudo from asking for a password? A) To specify this on a per-user (and per-command) basis, use the 'NOPASSWD' --- 83,110 ---- LOCALDOMAIN RES_OPTIONS HOSTALIASES + NLSPATH + PATH_LOCALE + TERMINFO + TERMINFO_DIRS + TERMPATH + TERMCAP ENV BASH_ENV + LC_ (if it contains a '/' or '%') + LANG (if it contains a '/' or '%') + LANGUAGE (if it contains a '/' or '%') LD_* _RLD_* SHLIB_PATH (HP-UX only) ! LIBPATH (AIX only) KRB_CONF (kerb4 only) + KRBCONFDIR (kerb4 only) + KRBTKFILE (kerb4 only) KRB5_CONFIG (kerb5 only) + VAR_ACE (SecurID only) + USR_ACE (SecurID only) + DLC_ACE (SecurID only) Q) How can I keep sudo from asking for a password? A) To specify this on a per-user (and per-command) basis, use the 'NOPASSWD' *************** *** 130,135 **** --- 157,174 ---- A) Some SVR4-derived OS's include a /usr/bin/cd command for reasons unfathomable. A "cd" command is totally useless since a child process cannot affect the current working directory of the parent (your shell). + + Q) When I run sudo it says I am not alllowed to run the command as root + but I don't want to run it as root, I want to run it as another user. + My sudoers file entry looks like: + bob ALL=(oracle) ALL + A) The default user sudo tries to run things as is always root, even if + the invoking user can only run commands as a single, specific user. + This may change in the future but at the present time you have to + work around this using the 'runas_default' option in sudoers. + For example: + Defaults:bob runas_default=oracle + would achieve the desired result ofr the preceding sudoers fragment. Q) How do you pronounce `sudo'? A) soo-doo (for superuser do).