*BSD News Article 88398


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!lucy.swin.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!cs.mu.OZ.AU!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!news2.digex.net!news
From: "John E. Vasileff" <vasileff@multimediums.com>
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Perl 5.003 install  - suid problems not resolved
Date: Wed, 05 Feb 1997 23:16:47 -0500
Organization: MultiMediums
Lines: 583
Message-ID: <32F95B2F.7142@multimediums.com>
Reply-To: vasileff@multimediums.com
NNTP-Posting-Host: groundhog.multimediums.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.01 (Win95; I)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.bsdi.misc:5887

I have been having problems installing suidperl 5.003 on my BSDI 2.1
server.  After my first install, accepting all defaults, suid scripts
would not execute at all - after trying to run them, I would recieve
just a prompt with no error messages.

I later searched the archives of this newsgroups for similar problems,
and found a sample config.sh file, which is included below.  After
installing using these defaults, I get the error message: "Can't swap
uid and euid." whenever I try to run suid scripts.

I have tried several install configurations trying to get suidperl to
work and have had no success.  (The suidperl that was distributed with
BSDI seems to work fine, but it is not 5.003).  Any help resolving this
problem would be greatly appreciated!



Thanks in advance,

John




The following is copied from a previous post to this group:
-----------------------
From owner-bsdi-users@lists.gateway.com  Fri Dec 13 18:38:59 1996
Received: from lists.gateway.com (lists.gateway.com [198.85.67.131]) by
ns.ams.nexial.nl (8.7.4/8.7.3) with ESMTP id SAA18562 for
<bsdiusers@ams.nexial.nl>; Fri, 13 Dec 1996 18:38:57 +0100 (MET)
Received: (from majordom@localhost) by lists.gateway.com
(8.8.3/555-1212) id MAA11964 for bsdi-users-outgoing; Fri, 13 Dec 1996
12:44:11 -0500 (EST)
Message-Id: <199612131743.MAA02179@kci.kciLink.com>
To: Daniel Dewey <dan@news.jobweb.org>
cc: bsdi-users@BSDI.COM
Subject: Re: Problems with Perl 5.003 
In-reply-to: Your message of "Fri, 13 Dec 1996 12:18:49 EST."
             <Pine.BSI.3.91.961213121507.308B-100000@news.jobweb.org> 
Date: Fri, 13 Dec 1996 12:43:43 -0500
From: Vivek Khera <khera@kci.kciLink.com>
Sender: owner-bsdi-users@lists.gateway.com
Precedence: bulk

Yes, quite successfully.

Use the config.sh below as your Perl 5.003 configuration for BSD/OS
2.1.  I
believe if you search the mailing list archives, you'll find this
previously
posted by me, too.

For the LWP library, where it does things like "require Socket" change
them to
"use Socket" and it should work just fine.

								v.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.                        Khera Communications, Inc.
Internet: khera@kciLink.com               Rockville, MD      
+1-301-258-8292
PGP/MIME spoken here                     
http://www.kciLink.com/home/khera/


--cut here--
#!/bin/sh
#
# This file was produced by running the Configure script. It holds all
the
# definitions figured out by Configure. Should you modify one of these
values,
# do not forget to propagate your changes by running "Configure -der".
You may
# instead choose to run each of the .SH files by yourself, or "Configure
-S".
#

# Configuration time: Mon Oct 28 11:13:11 EST 1996
# Configured by: khera
# Target system: bsdos kci.kcilink.com 2.1 bsdi bsdos 2.1 kernel #8: fri
oct 4 13:37:05 edt 1996 khera@kci.kcilink.com:ukci2syscompilekci i386 

Author=''
Date='$Date'
Header=''
Id='$Id'
Locker=''
Log='$Log'
Mcc='Mcc'
RCSfile='$RCSfile'
Revision='$Revision'
Source=''
State=''
afs='false'
alignbytes='4'
aphostname=''
ar='ar'
archlib='/usr/contrib/lib/perl5/i386-bsdos/5.003'
archlibexp='/usr/contrib/lib/perl5/i386-bsdos/5.003'
archname='i386-bsdos'
archobjs=''
awk='awk'
baserev='5.0'
bash=''
bin='/usr/contrib/bin'
binexp='/usr/contrib/bin'
bison=''
byacc='byacc'
byteorder='1234'
c=''
castflags='0'
cat='cat'
cc='shlicc2'
cccdlflags=' '
ccdlflags=' '
ccflags='-m486'
cf_by='khera'
cf_email='khera@kciLink.com'
cf_time='Mon Oct 28 11:13:11 EST 1996'
chgrp=''
chmod=''
chown=''
clocktype='clock_t'
comm='comm'
compress=''
contains='grep'
cp='cp'
cpio=''
cpp='cpp'
cpp_stuff='42'
cppflags='-m486'
cpplast='-'
cppminus='-'
cpprun='shlicc2 -E'
cppstdin='shlicc2 -E'
cryptlib=''
csh='csh'
d_Gconvert='sprintf((b),"%.*g",(n),(x))'
d_access='define'
d_alarm='define'
d_archlib='define'
d_attribut='define'
d_bcmp='define'
d_bcopy='define'
d_bsd='define'
d_bsdpgrp='define'
d_bzero='define'
d_casti32='define'
d_castneg='define'
d_charvspr='undef'
d_chown='define'
d_chroot='define'
d_chsize='undef'
d_closedir='define'
d_const='define'
d_crypt='define'
d_csh='define'
d_cuserid='undef'
d_dbl_dig='define'
d_difftime='define'
d_dirnamlen='define'
d_dlerror='define'
d_dlopen='define'
d_dlsymun='undef'
d_dosuid='define'
d_dup2='define'
d_eofnblk='define'
d_eunice='undef'
d_fchmod='define'
d_fchown='define'
d_fcntl='define'
d_fd_macros='define'
d_fd_set='define'
d_fds_bits='define'
d_fgetpos='define'
d_flexfnam='define'
d_flock='define'
d_fork='define'
d_fpathconf='define'
d_fsetpos='define'
d_getgrps='define'
d_gethent='undef'
d_gethname='undef'
d_getlogin='define'
d_getpgrp2='undef'
d_getpgrp='define'
d_getppid='define'
d_getprior='define'
d_htonl='define'
d_index='undef'
d_isascii='define'
d_killpg='define'
d_link='define'
d_locconv='define'
d_lockf='undef'
d_lstat='define'
d_mblen='define'
d_mbstowcs='define'
d_mbtowc='define'
d_memcmp='define'
d_memcpy='define'
d_memmove='define'
d_memset='define'
d_mkdir='define'
d_mkfifo='define'
d_mktime='define'
d_msg='undef'
d_msgctl='undef'
d_msgget='undef'
d_msgrcv='undef'
d_msgsnd='undef'
d_mymalloc='undef'
d_nice='define'
d_oldarchlib='define'
d_oldsock='undef'
d_open3='define'
d_pathconf='define'
d_pause='define'
d_phostname='undef'
d_pipe='define'
d_poll='undef'
d_portable='define'
d_pwage='undef'
d_pwchange='define'
d_pwclass='define'
d_pwcomment='undef'
d_pwexpire='define'
d_pwquota='undef'
d_readdir='define'
d_readlink='define'
d_rename='define'
d_rewinddir='define'
d_rmdir='define'
d_safebcpy='define'
d_safemcpy='undef'
d_seekdir='define'
d_select='define'
d_sem='undef'
d_semctl='undef'
d_semget='undef'
d_semop='undef'
d_setegid='define'
d_seteuid='define'
d_setlinebuf='define'
d_setlocale='define'
d_setpgid='define'
d_setpgrp2='undef'
d_setpgrp='define'
d_setprior='define'
d_setregid='define'
d_setresgid='undef'
d_setresuid='undef'
d_setreuid='define'
d_setrgid='define'
d_setruid='define'
d_setsid='define'
d_shm='undef'
d_shmat='undef'
d_shmatprototype='undef'
d_shmctl='undef'
d_shmdt='undef'
d_shmget='undef'
d_shrplib='undef'
d_sigaction='define'
d_sigintrp=''
d_sigsetjmp='define'
d_sigvec='define'
d_sigvectr='undef'
d_socket='define'
d_sockpair='define'
d_statblks='define'
d_stdio_cnt_lval='undef'
d_stdio_ptr_lval='undef'
d_stdiobase='undef'
d_stdstdio='undef'
d_strchr='define'
d_strcoll='define'
d_strctcpy='define'
d_strerrm='strerror(e)'
d_strerror='define'
d_strxfrm='define'
d_suidsafe='undef'
d_symlink='define'
d_syscall='define'
d_sysconf='define'
d_sysernlst=''
d_syserrlst='define'
d_system='define'
d_tcgetpgrp='define'
d_tcsetpgrp='define'
d_telldir='define'
d_time='define'
d_times='define'
d_truncate='define'
d_tzname='define'
d_umask='define'
d_uname='define'
d_vfork='undef'
d_void_closedir='undef'
d_voidsig='define'
d_voidtty=''
d_volatile='define'
d_vprintf='define'
d_wait4='define'
d_waitpid='define'
d_wcstombs='define'
d_wctomb='define'
d_xenix='undef'
date='date'
db_hashtype='u_int32_t'
db_prefixtype='size_t'
defvoidused='15'
direntrytype='struct dirent'
dlext='o'
dlsrc='dl_dlopen.xs'
dynamic_ext='DB_File Fcntl FileHandle NDBM_File POSIX SDBM_File Safe
Socket'
eagain='EAGAIN'
echo='echo'
egrep='egrep'
emacs=''
eunicefix=':'
exe_ext=''
expr='expr'
extensions='DB_File Fcntl FileHandle NDBM_File POSIX SDBM_File Safe
Socket'
find='find'
firstmakefile='makefile'
flex=''
fpostype='fpos_t'
freetype='void'
full_csh='/bin/csh'
full_sed='/usr/bin/sed'
gcc=''
gccversion='2.7.2'
gidtype='gid_t'
glibpth='/usr/shlib  /lib/pa1.1 /usr/lib/large /lib /usr/lib
/usr/lib/386 /lib/386 /lib/large /usr/lib/small /lib/small /usr/ccs/lib
/usr/ucblib /usr/shlib  /usr/X11/lib'
grep='grep'
groupcat=''
groupstype='gid_t'
h_fcntl='false'
h_sysfile='true'
hint='previous'
hostcat=''
huge=''
i_bsdioctl=''
i_db='define'
i_dbm='undef'
i_dirent='define'
i_dld='undef'
i_dlfcn='define'
i_fcntl='undef'
i_float='define'
i_gdbm='undef'
i_grp='define'
i_limits='define'
i_locale='define'
i_malloc='undef'
i_math='define'
i_memory='undef'
i_ndbm='define'
i_neterrno='undef'
i_niin='define'
i_pwd='define'
i_rpcsvcdbm='undef'
i_sgtty='undef'
i_stdarg='define'
i_stddef='define'
i_stdlib='define'
i_string='define'
i_sysdir='define'
i_sysfile='define'
i_sysfilio='define'
i_sysin='undef'
i_sysioctl='define'
i_sysndir='undef'
i_sysparam='define'
i_sysselct='define'
i_syssockio=''
i_sysstat='define'
i_systime='define'
i_systimek='undef'
i_systimes='define'
i_systypes='define'
i_sysun='define'
i_termio='undef'
i_termios='define'
i_time='undef'
i_unistd='define'
i_utime='define'
i_varargs='undef'
i_varhdr='stdarg.h'
i_vfork='undef'
incpath=''
inews=''
installarchlib='/usr/contrib/lib/perl5/i386-bsdos/5.003'
installbin='/usr/contrib/bin'
installman1dir='/usr/contrib/man/man1'
installman3dir='/usr/contrib/man/man3'
installprivlib='/usr/contrib/lib/perl5'
installscript='/usr/contrib/bin'
installsitearch='/usr/contrib/lib/perl5/site_perl/i386-bsdos'
installsitelib='/usr/contrib/lib/perl5/site_perl'
intsize='4'
known_extensions='DB_File Fcntl FileHandle GDBM_File NDBM_File ODBM_File
POSIX SDBM_File Safe Socket'
ksh=''
large=''
ld='shlicc2'
lddlflags='-r -L/usr/X11/lib -L/usr/local/lib'
ldflags=' -L/usr/X11/lib -L/usr/local/lib'
less='less'
lib_ext='.a'
libc='/usr/lib/libc.a'
libpth='/usr/local/lib /usr/lib /usr/X11/lib'
libs='-lrpc -lcurses -ltermcap -lXpm -lXaw -lXmu -lXt -lSM -lICE -lXext
-lX11 -ldl -lm'
libswanted='net socket inet nsl ndbm gdbm dbm db malloc dl dld ld sun m
c cposix posix ndir dir crypt ucb bsd BSD PW x'
line='line'
lint=''
lkflags=''
ln='ln'
lns='/bin/ln -s'
locincpth='/usr/local/include /opt/local/include /usr/gnu/include
/opt/gnu/include /usr/GNU/include /opt/GNU/include'
loclibpth='/usr/local/lib /opt/local/lib /usr/gnu/lib /opt/gnu/lib
/usr/GNU/lib /opt/GNU/lib'
lp=''
lpr=''
ls='ls'
lseektype='off_t'
mail=''
mailx=''
make=''
mallocobj=''
mallocsrc=''
malloctype='void *'
man1dir='/usr/contrib/man/man1'
man1direxp='/usr/contrib/man/man1'
man1ext='1'
man3dir='/usr/contrib/man/man3'
man3direxp='/usr/contrib/man/man3'
man3ext='3'
medium=''
mips=''
mips_type=''
mkdir='mkdir'
models='none'
modetype='mode_t'
more='more'
mv=''
myarchname='i386-bsdos'
mydomain='.kcilink.com'
myhostname='kci'
myuname='bsdos kci.kcilink.com 2.1 bsdi bsdos 2.1 kernel #8: fri oct 4
13:37:05 edt 1996 khera@kci.kcilink.com:ukci2syscompilekci i386 '
n='-n'
nm_opt=''
nm_so_opt=''
nroff='nroff'
o_nonblock='O_NONBLOCK'
obj_ext='.o'
oldarchlib=''
oldarchlibexp=''
optimize='-O'
orderlib='false'
osname='bsdos'
osvers='2.1'
package='perl5'
pager='/usr/contrib/bin/less'
passcat=''
patchlevel='3'
path_sep=':'
perl='perl'
perladmin='none'
perlpath='/usr/contrib/bin/perl'
pg='pg'
phostname='hostname'
plibpth=''
pmake=''
pr=''
prefix='/usr/contrib'
prefixexp='/usr/contrib'
privlib='/usr/contrib/lib/perl5'
privlibexp='/usr/contrib/lib/perl5'
prototype='define'
randbits='31'
ranlib='/usr/bin/ranlib'
rd_nodata='-1'
rm='rm'
rmail=''
runnm='true'
scriptdir='/usr/contrib/bin'
scriptdirexp='/usr/contrib/bin'
sed='sed'
selecttype='fd_set *'
sendmail='sendmail'
sh=''
shar=''
sharpbang='#!'
shmattype=''
shrpdir='none'
shsharp='true'
sig_name='ZERO HUP INT QUIT ILL TRAP ABRT EMT FPE KILL BUS SEGV SYS PIPE
ALRM TERM URG STOP TSTP CONT CHLD TTIN TTOU IO XCPU XFSZ VTALRM PROF
WINCH INFO USR1 USR2 IOT '
sig_num='0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
24 25 26 27 28 29 30 31 6 '
signal_t='void'
sitearch='/usr/contrib/lib/perl5/site_perl/i386-bsdos'
sitearchexp='/usr/contrib/lib/perl5/site_perl/i386-bsdos'
sitelib='/usr/contrib/lib/perl5/site_perl'
sitelibexp='/usr/contrib/lib/perl5/site_perl'
sizetype='size_t'
sleep=''
smail=''
small=''
so='o'
sockethdr=''
socketlib=''
sort='sort'
spackage='Perl5'
spitshell='cat'
split=''
ssizetype='ssize_t'
startperl='#!/usr/contrib/bin/perl'
startsh='#!/bin/sh'
static_ext=' '
stdchar='char'
stdio_base='((fp)->_base)'
stdio_bufsiz='((fp)->_cnt + (fp)->_ptr - (fp)->_base)'
stdio_cnt='((fp)->_cnt)'
stdio_ptr='((fp)->_ptr)'
strings='/usr/include/string.h'
submit=''
subversion='0'
sysman='/usr/share/man/man1'
tail=''
tar=''
tbl=''
test='test'
timeincl='/usr/include/sys/time.h '
timetype='time_t'
touch='touch'
tr='tr'
troff=''
uidtype='uid_t'
uname='uname'
uniq='uniq'
usedl='define'
usemymalloc='n'
usenm='true'
useposix='true'
usesafe='true'
usevfork='false'
usrinc='/usr/include'
uuname=''
vi=''
voidflags='15'
xlibpth='/usr/lib/386 /lib/386'
zcat=''
PATCHLEVEL=3
SUBVERSION=0
LOCAL_PATCH_COUNT=\
CONFIG=true
# Variables propagated from previous config.sh file.
pp_sys_cflags='ccflags="$ccflags -DHAS_TELLDIR_PROTOTYPE"'
--cut here--





------------------------------------------------------------------------




<Picture>