Re: Some questions about limits.conf and suid.

From: Rajeev Kumar (rajeev@rajeevnet.com)
Date: 08/20/01


Message-ID: <3B8163DF.80203@rajeevnet.com>
Date: Mon, 20 Aug 2001 15:24:15 -0400
From: Rajeev Kumar <rajeev@rajeevnet.com>
To: Sukbum Hong <antihong@tt.co.kr>
Subject: Re: Some questions about limits.conf and suid.


Sukbum Hong wrote:

> Hello, all.
>
> I have two questions about linux security.
>
>
> (1) Anyone who knows the difference between two permissions?
> First is 4411 and second is 4511.
> and they have no difference using as I know.
>
> -r-S--x--x 1 root root 13536 /usr/bin/passwd
> -r-s--x--x 1 root root 13536 /usr/bin/passwd

The interpretation may differ OS to OS but in general.

S : is setuid bit set without execution.
s : is setuid bit set with execution.

in your example:

-r-s--x--x 1 root root 13536 /usr/bin/passwd

if you run command
chmod u-x /usr/bin/passwd you will get

-r-S--x--x 1 root root 13536 /usr/bin/passwd

but ofcourse you are saying now root (user owned this file) can not execute it, but others
can execute it with root privilege.

Rajeev

>

-- 
********************************************************************
	Rajeev Kumar (rajeev@rajeevnet.com)
		http://www.rajeevnet.com
********************************************************************
-- PGP PUBLIC KEY -- http://www.rajeevnet.com/crypto/mypubkey



Relevant Pages