On Mon, Jan 15, 2001 at 09:10:01PM +0100, Cliff Sarginson wrote:
> Suid shell scripts don't work.
> Big security problem.. :)
Thanks to all for such rapid responses. It was an easy one I guess.
> Cliff
Hey Cliff! Permanent fatal errors on your email address,
[EMAIL PROTECTED]
--
Bob Bernstei
On Mon, Jan 15, 2001 at 02:20:48PM -0500, Bob Bernstein wrote:
> I'm trying to understand the suid bit. So I created a little script to list
> a file that I don't as a normal user have permission to read, namely
> /var/log/user.log. Here's the data, starting with the permissions on
> user.log:
>
>
On Mon, 15 Jan 2001, Bob Bernstein wrote:
> $ ./sutest
> does this work?
> /var/log/user.log: Permission denied
>
> Can someone explain what's going on here? Is starting a shell the problem?
The setuid bit doesn't work on shell scripts. You will have to compile a
C program use use perl. Perl s
Quoting Bob Bernstein ([EMAIL PROTECTED]):
> I'm trying to understand the suid bit. So I created a little script to list
> a file that I don't as a normal user have permission to read, namely
> /var/log/user.log. Here's the data, starting with the permissions on
> user.log:
> Here's my little scri
I'm trying to understand the suid bit. So I created a little script to list
a file that I don't as a normal user have permission to read, namely
/var/log/user.log. Here's the data, starting with the permissions on
user.log:
$ ls -l /var/log/user.log
-rw-r-1 root adm 2838 Jan 1
5 matches
Mail list logo