Date: Wed, 1 Dec 1999 16:07:58 -0600 From: "David W. Chapman Jr." <dchapman@houabg.com> To: <current@freebsd.org> Subject: Nevermind: su and traceroute Message-ID: <015a01bf3c48$87387800$931576d8@inethouston.net> References: <014801bf3c46$97e4e140$931576d8@inethouston.net>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Nevermind, I had nosuid in fstab, totally forgot about it.
----- Original Message -----
From: David W. Chapman Jr.
To: current@freebsd.org
Sent: Wednesday, December 01, 1999 3:54 PM
Subject: su and traceroute
I just cvsuped to -current right after bind-8.2.2 was merged into the source tree. I noticed two problems. Su won't work and traceroute gives me the following
traceroute: icmp socket: Operation not permitted
here are its permissions
-r-sr-xr-x 1 root wheel 12076 Dec 1 14:15 /usr/sbin/traceroute
su just says Sorry and it has the same permissions, I ran gdb on it and here's a screen shot
253 if (pwd->pw_uid == 0 && (gr = getgrgid((gid_t)0)) &&
(gdb) step
255 for (g = gr->gr_mem;; ++g) {
(gdb) step
256 if (!*g) {
(gdb) step
262 if (strcmp(username, *g) == 0) {
(gdb) step
255 for (g = gr->gr_mem;; ++g) {
(gdb) step
256 if (!*g) {
(gdb) step
262 if (strcmp(username, *g) == 0) {
(gdb) step
271 if (*pwd->pw_passwd) {
(gdb) step
278 p = skey_getpass("Password:", pwd, 1);
(gdb) step
Password:
279 if (!(!strcmp(pwd->pw_passwd, skey_crypt(p, pwd->pw_passwd, pwd, 1))
(gdb) step
292 fprintf(stderr, "Sorry\n");
(gdb)
Anyone have any ideas? I am in the wheel group, but I shouldn't have to be for traceroute and I have this problem for all users, including new ones that I create.
[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2919.6307" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Nevermind, I had nosuid in fstab, totally forgot
about it.</FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A href="mailto:dchapman@houabg.com" title=dchapman@houabg.com>David W.
Chapman Jr.</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A href="mailto:current@freebsd.org"
title=current@freebsd.org>current@freebsd.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, December 01, 1999 3:54
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> su and traceroute</DIV>
<DIV><BR></DIV>
<P><FONT face=Arial size=2>I just cvsuped to -current right after bind-8.2.2
was merged into the source tree. I noticed two problems. Su won't
work and traceroute gives me the following</FONT></P>
<P> </P>
<P><FONT face=Arial size=2>traceroute: icmp socket: Operation not
permitted</FONT></P>
<P> </P>
<P><FONT face=Arial size=2>here are its permissions</FONT></P>
<P> </P>
<P><FONT face=Arial size=2>-r-sr-xr-x 1 root wheel 12076
Dec 1 14:15 /usr/sbin/traceroute</FONT></P>
<P> </P>
<P><FONT face=Arial size=2>su just says Sorry and it has the same permissions,
I ran gdb on it and here's a screen shot</FONT></P>
<P> </P>
<P><FONT face=Arial
size=2>253
if (pwd->pw_uid == 0 && (gr = getgrgid((gid_t)0))
&&<BR>(gdb)
step<BR>255
for (g = gr->gr_mem;; ++g) {<BR>(gdb)
step<BR>256
if (!*g) {<BR>(gdb)
step<BR>262
if (strcmp(username, *g) == 0) {<BR>(gdb)
step<BR>255
for (g = gr->gr_mem;; ++g) {<BR>(gdb)
step<BR>256
if (!*g) {<BR>(gdb)
step<BR>262
if (strcmp(username, *g) == 0) {<BR>(gdb)
step<BR>271
if (*pwd->pw_passwd) {<BR>(gdb)
step<BR>278
p = skey_getpass("Password:", pwd, 1);<BR>(gdb)
step<BR>Password:<BR>279
if (!(!strcmp(pwd->pw_passwd, skey_crypt(p, pwd->pw_passwd, pwd,
1))<BR>(gdb)
step<BR>292
fprintf(stderr, "Sorry\n");<BR>(gdb)<BR></FONT></P>
<P> </P>
<P> </P>
<P><FONT face=Arial size=2>Anyone have any ideas? I am in the wheel
group, but I shouldn't have to be for traceroute and I have this problem for
all users, including new ones that I
create.</FONT></P></BLOCKQUOTE></BODY></HTML>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?015a01bf3c48$87387800$931576d8>
