Mailing List
Home
Forum Home
Linux - General Red Hat Linux discussion list
Installation - Getting started with Red Hat Linux
Enterprise Linux 3 - Discussion of Red Hat Enterprise Linux 3 (Taroon)
Red Hat Linux 9 - Discussion of Red Hat Linux 9 (Shrike)
Red Hat Linux 7.2 - Discussion of Red Hat Linux 7.2 (Enigma)
Red Hat Linux 7.3 - Discussion of Red Hat Linux 7.3 (Valhalla)
Apache Web Server
Oracle database, Microsoft SQL server ...
Subjects
application/x mplayer2 plugin
RPM error: db4 error(16) from dbenv >remove: Device or resource
   busy
Command stream end of file while reading
X Windows problem (xauth)
Upgrading openoffice 1 1 rpm
FTP: connection refused
FTP: connection refused
mount: /dev/cdrom: is not a valid block device
Dell Precision 650, RedHat 9, no sound
how to trace the cause resulting in the crash of bind server
Virus on the list
UNINSTALL RPM MYSQL
usb pen drives: mounting as a user
broadcom network interface
make mrproper
sendmail configuration on redhat
Couldn 't open PID file /var/run/named/named pid Permission denied
Promise 378 controller
kernel 2 6 and /dev/sound/mixer not found
Problem using up2date
mrtg step by step howto/configuration for a newbie?
Compiling and Installing Kernel 2 6
Can 't locate module ppp0, can 't locate module ppp compress 21
HOW I CAN MAKE BOOTABLE FLOPPY DISKET
Lotus Notes under Wine
/etc/security/limits conf question
Intel E/1000 driver
Command stream end of file while reading
rpm database corrupt
qla2300 modules
 
chmod +s not working as expected

chmod +s not working as expected

2003-11-27       - By Girish Radhakrishnan

 Back
Reply:     1     2     3     4     5  

Hi James,

Could you please check the User ID of both users in the redHat 7.3 and 6.2.

Looks like the user ID is messed up. Are the /etc/passwd user ids the same
for both 6.2 and 7.3 machine?

-Girish


----Original Message Follows----
From: "James Ho" <james.ho@(protected)>
Reply-To: valhalla-list@(protected)
To: <valhalla-list@(protected)>
Subject: Re: chmod +s not working as expected
Date: Thu, 27 Nov 2003 15:25:08 +0800
MIME-Version: 1.0
Received: from mc1-f12.hotmail.com ([64.4.50.19]) by mc1-s11.hotmail.com
with Microsoft SMTPSVC(5.0.2195.6713); Wed, 26 Nov 2003 23:26:35 -0800
Received: from hormel.redhat.com ([66.187.233.30]) by mc1-f12.hotmail.com
with Microsoft SMTPSVC(5.0.2195.6713); Wed, 26 Nov 2003 23:26:35 -0800
Received: from listman.back-rdu.redhat.com (listman.back-rdu.redhat.com
[10.10.2.136])by hormel.redhat.com (Postfix) with ESMTPid E351C13620C; Thu,
27 Nov 2003 02:26:32 -0500 (EST)
Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com
[172.16.52.254])by listman.back-rdu.redhat.com (8.11.6/8.11.6) with ESMTP id
hAR7JIR27584for <valhalla-list@(protected)>; Thu, 27 Nov
2003 02:19:18 -0500
Received: (from mail@(protected))by int-mx1.corp.redhat.com (8.11.6/8.11.6) id
hAR7Pmc01908for valhalla-list@(protected); Thu, 27 Nov 2003
02:25:48 -0500
Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31])by
int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id hAR7Pmw01904for
<valhalla-list@(protected)>; Thu, 27 Nov 2003 02:25:48 -0500
Received: from financialzoo.com ([61.6.65.4])by mx1.redhat.com
(8.11.6/8.11.6) with SMTP id hAR7PkH18548for <valhalla-list@(protected)>;
Thu, 27 Nov 2003 02:25:47 -0500
Received: from james ([61.6.65.2])by financialzoo.com (financialzoo.com
[61.6.65.4])(MDaemon.PRO.v6.8.5.R)with ESMTP id 3-md50000000003.tmpfor
<valhalla-list@(protected)>; Thu, 27 Nov 2003 15:26:13 +0800
X-Message-Info: oZ2qq1sZ3e7uKTlpeu1aTGroa8adSyNR1xsbOF+BWhA=
Message-ID: <005201c3b4b7$96e4d5a0$5913080a@(protected)>
References: <1069797883.3fc3d1fb39280@(protected)>
<200311261118.34394.blkline@(protected)>
<1069867481.3fc4e1d9f3d37@(protected)>
<003d01c3b4b2$1e73f4c0$5913080a@(protected)>
<20031127071941.GA9504@(protected)>
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
X-Spam-Processed: financialzoo.com, Thu, 27 Nov 2003 15:26:13 +0800(not
processed: message from valid local sender)
X-MDRemoteIP: 61.6.65.2
X-Return-Path: james.ho@(protected)
X-MDaemon-Deliver-To: valhalla-list@(protected)
X-Loop: valhalla-list@(protected)
Sender: valhalla-list-admin@(protected)
Errors-To: valhalla-list-admin@(protected)
X-BeenThere: valhalla-list@(protected)
X-Mailman-Version: 2.0.13
Precedence: junk
List-Help: <mailto:valhalla-list-request@(protected)?subject=help>
List-Post: <mailto:valhalla-list@(protected)>
List-Subscribe:
<https://www.redhat.com/mailman/listinfo/valhalla-list>,<mailto:valhalla-list
-request@(protected)?subject=subscribe>
List-Id: Discussion of Red Hat Linux 7.3 (Valhalla)
<valhalla-list.redhat.com>
List-Unsubscribe:
<https://www.redhat.com/mailman/listinfo/valhalla-list>,<mailto:valhalla-list
-request@(protected)?subject=unsubscribe>
List-Archive: <https://www.redhat.com/archives/valhalla-list/>
Return-Path: valhalla-list-admin@(protected)
X-OriginalArrivalTime: 27 Nov 2003 07:26:35.0500 (UTC)
FILETIME=[C9D992C0:01C3B4B7]

nope... does not work.
  -- -- Original Message -- --
  From: Cameron Simpson
  To: valhalla-list@(protected)
  Sent: Thursday, November 27, 2003 3:19 PM
  Subject: Re: chmod +s not working as expected


  On 14:45 27 Nov 2003, James Ho <james.ho@(protected)> wrote:
  | I just transported a program from Red Hat Linux 6.2 to Red Hat Linux
7.3.
  | The C program has a line stating:
  |         system ("whoami");
  |
  | The permission of the executable is 6777 (ie. -rwsrwsrwx) and the
  | owner of the program is "user1".
  |
  | Using another user login "user99", I execute the program in both Red
Hat
  | Linux 6.2 and 7.3.
  |     In 6.2, I get the output "user1"
  |     In 7.3, I get the output "user99"
  |
  | Why is this? Is there any way I can get the program work as it did
  | in Red Hat Linux 6.2?

  I can imagine the kernel not allowing setuid to work on a publicly
  writable file. The 7.3 box will have a newer (==> maybe more paranoid)
  kernel. Try making the permissions 6555 or 6111 and see how it behaves.

  Cheers,
  --
  Cameron Simpson <cs@(protected)> DoD#743
  http://www.cskk.ezoshosting.com/cs/

  If you 'aint falling off, you ar'nt going hard enough.  - Fred Gassit


  __ ____ ____ ____ ____ ____ ____ ____ ____ ____
  Valhalla-list mailing list
  Valhalla-list@(protected)
  https://www.redhat.com/mailman/listinfo/valhalla-list

__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __
online games and music with a high-speed Internet connection!  Prices start
at less than $1 a day average.  https://broadband.msn.com (Prices may vary
by service area.)