From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: gmb-mcg-it-unix-admin Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Strange softlink permissions problem in Tru64 5.1B Date: Wed, 06 Apr 2005 17:51:52 -0500 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1112827865 32722 80.91.229.2 (6 Apr 2005 22:51:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Apr 2005 22:51:05 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu Apr 07 00:51:01 2005 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by ciao.gmane.org with smtp (Exim 4.43) id 1DJJMP-0004v4-QE for gotm-tru64-unix-managers@gmane.org; Thu, 07 Apr 2005 00:50:58 +0200 Original-Received: (qmail 18235 invoked by uid 5); 6 Apr 2005 22:52:30 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 18220 invoked by uid 49501); 6 Apr 2005 22:52:30 -0000 Original-Received: from gmb-mcg-it-unix-admin@cardinal.com by sws1 by uid 49491 with qmail-scanner-1.21 (clamdscan: 0.70-rc. iscan: v3.1/v5.600-1011/847/50540. spamassassin: 2.63. Clear:RC:0(160.91.4.110):SA:0(-2.0/5.0):. Processed in 0.565099 secs); 06 Apr 2005 22:52:30 -0000 X-Spam-Status: No, hits=-2.0 required=5.0 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 6 Apr 2005 22:52:29 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0IEJ00ABGRJGEI@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 06 Apr 2005 18:52:29 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute3.ornl.gov by emroute3.ornl.gov (PMDF V6.2-X27 #30899) id <0IEJ00B02RIJSK@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 06 Apr 2005 18:52:05 -0400 (EDT) Original-Received: from mpgsmtp02.cardinal.com (mpgsmtp02.cardinal.com [198.89.160.72]) by emroute3.ornl.gov (PMDF V6.2-X27 #30899) with ESMTPS id <0IEJ009ERRIHZX@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 06 Apr 2005 18:51:54 -0400 (EDT) Original-Received: from mpgexch01.cahapps.net [161.244.188.50] by mpgsmtp02.cardinal.com with XWall v3.31 ; Wed, 06 Apr 2005 17:52:21 -0500 Content-return: prohibited Original-To: tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft Exchange V6.0.6603.0 Thread-Topic: Strange softlink permissions problem in Tru64 5.1B thread-index: AcU6AX7sTc0vOtb/Qk6alxrfG3AHTAA9om1Q Content-Class: urn:content-classes:message X-Envelope-From: X-MS-Has-Attach: X-MS-TNEF-Correlator: X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on email.cind.ornl.gov X-Spam-Level: Xref: news.gmane.org gmane.os.tru64.managers:8194 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:8194 Hello, Thanks to Spider Boardman, Ann Majeski and Dr. Thomas Blinn for the very = quick responses. The root cause was the setting of system parameter = 'restricted_symlink_follow'. We had recently applied security hardening to this machine. One of the = hardening steps changed the value of 'restricted_symlink_follow' from = the default value of 0 to 1 as shown: # sysconfig -r sec restricted_symlink_follow=3D1 restricted_symlink_follow: reconfigured The man page for sys_attrs_sec explains the behavior of setting = restricted_symlink_follow=3D1. Setting the value to 1 will prevent = various 'symlink' attacks from happening should an attacker gain access = to the system. Sincerely, Marc Brandon Systems Engineer Cardinal Health Waukegan, IL > -----Original Message----- > From: gmb-mcg-it-unix-admin =20 > Sent: Tuesday, April 05, 2005 12:04 PM > To: 'tru64-unix-managers@ornl.gov' > Subject: Strange softlink permissions problem in Tru64 5.1B >=20 > Hello, >=20 > I need some help in trying to determine whether a softlink permissions = problem is either a bug or part of normal UNIX security. This is on a = Tru64 5.1B machine. >=20 > In summary, various userids including root received 'permission = denied' when cd'ing into a softlink defined in /tmp as shown- > =09 > lrwxrwxrwx 1 zuserid1 system 12 Apr 1 11:21 zzzzdir -> = /tmp/zzzz <=3D=3D=3D Softlink in /tmp > drwxrwxrwx 2 zuserid2 system 8192 Apr 1 11:21 zzzz <=3D=3D = Actual directory in /tmp >=20 > # id > uid=3D0(root) gid=3D1(daemon) groups=3D0(system) > # cd zzzzdir > ksh: zzzzdir: permission denied > # cd zzzz > # >=20 > The zzzz directory is owned by user zuserid2 and has universal = read/write/execute permissions, so any userid can cd directly into = /tmp/zzzz with no problem. The softlink is owned by zuserid1 which = normally should not be an issue. The problem was circumvented by = deleting the zzzzdir softlink and recreating it under root-=20 >=20 > lrwxrwxrwx 1 root system 12 Apr 4 11:28 zzzzdir -> = /tmp/zzzz >=20 > Any idea why the softlink must be owned by root to circumvent the = problem?=20 >=20 > Sincerely, >=20 > Marc Brandon > Systems Engineer > Cardinal Health > Waukegan, IL >=20 >=20