Re: Permissions 101

2001-01-15 Thread Bob Bernstein
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

Re: Permissions 101

2001-01-15 Thread Cliff Sarginson
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: > >

Re: Permissions 101

2001-01-15 Thread William T Wilson
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

Re: Permissions 101

2001-01-15 Thread David Wright
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

Permissions 101

2001-01-15 Thread Bob Bernstein
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