Re: bin user

From: Fernando Schapachnik (fschapachnik@vianetworks.com.ar)
Date: 08/14/01


Date: Tue, 14 Aug 2001 13:45:47 -0300
From: Fernando Schapachnik <fschapachnik@vianetworks.com.ar>
To: alexus <ml@db.nexgen.com>

En un mensaje anterior, alexus escribió:
> # su -m bin
> su: /usr/local/bin/bash: Permission denied
> # id
> uid=0(root) gid=0(wheel) groups=0(wheel), 2(kmem), 3(sys), 4(tty),
> 5(operator), 20(staff), 31(guest)
> #
>
> it won't switch to bin for some reason:(

From man su:

-m Leave the environment unmodified. The invoked shell is your lo-
        gin shell, and no directory changes are made. As a security pre-
        caution, if the target user's shell is a non-standard shell (as
        defined by getusershell(3)) and the caller's real uid is non-ze-
        ro, su will fail.

I guess that the read uid!=0 check is not implemented. Reset the bin
shell and you'll be fine.

Regards.

Fernando P. Schapachnik
Planificación de red y tecnología
VIA NET.WORKS ARGENTINA S.A.
fschapachnik@vianetworks.com.ar
Tel.: (54-11) 4323-3381

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message



Relevant Pages

  • Re: Rude replies
    ... >Not sure it is possible to reason with those people. ... hear - "we are under attack because they are jealous of our freedom". ... US citizens are at risk to account for policies they may ... It didn't work for Bin Laden's cause in the US when his minions ...
    (microsoft.public.windowsxp.general)
  • --------------
    ... The reason why you could not delete the files is because they where in ... When u later tryed to delete them they might of not bin in use ... then download a client like bitlord ... Prev by Date: ...
    (microsoft.public.windowsxp.newusers)
  • Re: 80th birthday Planned Weekend Gamoring
    ... >> more Dragon Quest VIII before it slips into the great "stopped playing ... >> for no reason" bin. ...
    (uk.games.video.misc)
  • Re: Cross country - journey planner
    ... ability to easily select by fare, and bin non essential seat reservations, ... but for some reason it seems incredibly slow on my PC. ...
    (uk.railway)
  • Re: Planned Weekend ROCKING!
    ... NOT FF12: I don't like it. ... But I'll save why till Monday's Bin. ... Whatever your reason, IT IS WRONG. ... i must admit i've had it for ages, and barely played it at all, i just ...
    (uk.games.video.misc)

Quantcast