Hi,
Thanx to all who repiled. Thanx to David Mitchell. David this is what I
wanted.
Solution to my problem is to add #!/bin/sh -p in begining of my script. If
the -p flag is present, the shell will not set the effective user and group
IDs to the real user and group IDs.
Thanx
Haresh G. Chandnani
> -----Original Message-----
> From: CHANDNANI HARESH /INFRA/INFOTECH
> [mailto:CHANDNANIH@INFOTECH.ICICI.com]
> Sent: Thursday, August 24, 2000 5:58 PM
> To: sun-managers@sunmanagers.ececs.uc.edu
> Subject: SetUID help required
>
>
> Hi,
> I am having 2 files test.file is ascii file & test.sh is a
> shell having a
> command "cat test.file" Current permissions of these files
> are "-rw-------
> root other test.file" "-rwsr-sr-x root other test.sh" I am
> able to execute
> test.sh as a root user, but with any other user its not
> executing it gives
> "cat: cannot open test.file".
>
> Can anyone help me on this matter.
>
>
> Haresh G. Chandnani
>
>
> Feel the pulse of the stock market on the tip of your finger
> Online Investments at http://www.icicidirect.com.
>
>
>
> S
> U BEFORE POSTING please READ the FAQ located at
> N ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/faq
> . and the list POLICY statement located at
> M ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/policy
> A To submit questions/summaries to this list send your
> email message to:
> N sun-managers@ececs.uc.edu
> A To unsubscribe from this list please send an email message to:
> G majordomo@sunmanagers.ececs.uc.edu
> E and in the BODY type:
> R unsubscribe sun-managers
> S Or
> . unsubscribe sun-managers original@subscription.address
> L To view an archive of this list please visit:
> I http://www.latech.edu/sunman.html
> S
> T
>
Feel the pulse of the stock market on the tip of your finger
Online Investments at http://www.icicidirect.com.
S
U BEFORE POSTING please READ the FAQ located at
N ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/faq
. and the list POLICY statement located at
M ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/policy
A To submit questions/summaries to this list send your email message to:
N sun-managers@ececs.uc.edu
A To unsubscribe from this list please send an email message to:
G majordomo@sunmanagers.ececs.uc.edu
E and in the BODY type:
R unsubscribe sun-managers
S Or
. unsubscribe sun-managers original@subscription.address
L To view an archive of this list please visit:
I http://www.latech.edu/sunman.html
S
T
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:15 CDT