Newsgroups: comp.os.minix
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!ox.com!math.fu-berlin.de!fub!dobag.in-berlin.de!jac
From: jac@dobag.in-berlin.de (Joerg Conradt)
Subject: Re: su
Message-ID: <DSXPCDR@dobag.in-berlin.de>
Organization: Dobag Computer Systems Berlin
References: <50417@nigel.ee.udel.edu> <RFXPIGF@dobag.in-berlin.de>
Date: Fri, 12 Apr 91 21:12:26 GMT
Lines: 43

cla@dobag.in-berlin.de (Christian Lampl) writes:

>dieter flunkert <d_flunkert@cen.jrc.it> writes:

>>Hey all,
>>I have a question concerning su.  If I use su which is on my harddisk it works fine.
>>But if I use the copy I have on /tmp on the ram disk, it doesn't work.  It askes
>>for the password, but after typing in the right one, I'm still not root.
>>Any ideas?

>>Dieter

>>Dieter Flunkert		d_flunkert@cen.jrc.it

>Try :
>$ cd /tmp
>$ chmod 4755 su

>That must be all !!!

>Christian Lampl   UUCP: cla@dobag.in-berlin.de

Oh no, Christian!!!!!!

Of course you first have to change dir. to /tmp and then exec the chmod
command! Though a correct way to make it work would be:

<Log in as root>
cd /tmp
chmod 4755 su
exit

After this it will work. The chmod command sets the s-bit, which makes the
user running the su-command root, and you have to be root if you want to
change your userid or groupid! Otherwise every user could do so and there
is no bit of system-security!!!
Cheers Joerg

-- 
UUCP: jac@dobag.in-berlin.de  | - The number of viewers watching you is
Alias Joerg Conradt           |   proportional to the stupidity of your
1000 Berlin 41 Germany        |   action.
++ 0307958397                 | - "Murphy was an optimist"
