[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ssh as user: setrlimit failed



I have found the offending piece of code.

       original_real_uid = getuid();
        original_effective_uid = geteuid();

#ifdef HAVE_SETRLIMIT
        /* If we are installed setuid root be careful to not drop
core. */
        if (original_real_uid != original_effective_uid) {
                struct rlimit rlim;
                rlim.rlim_cur = rlim.rlim_max = 0;
                if (setrlimit(RLIMIT_CORE, &rlim) < 0)
                        fatal("setrlimit failed: %.100s",
strerror(errno));
        }
#endif

  Should GNU Hurd be changed to accomodate this or vice-versa?


--- James Morrison <rocketmail_com@rocketmail.com> wrote:
> --- Raimund Huemmer <raimund@baumann-online.net> wrote:
>
> I've noticed this problem with any installed version of ssh.
> However, if you compile it yourself and use that compiled and not
> installed copy it will work.  I don't know what causes this.
>
> > Hi,
> >
> > I have recently installed ssh. If I want to use it as user
> > I get this error message:
> >
> > bash-2.04$ ssh raimund@192.168.1.8
> > setrlimit failed: Function not implemented
> >
> > As root it works perfectly.
> >
> > I installed the package ssh_2.5.2p2-3_hurd-i386.deb (with all
> other
> > dependend pkg).
> >
> > Thanks in advance.
> >
> > Raimund
> >
> > --
> > Life's too short to read boring signatures
> >
> >
> > --
> > To UNSUBSCRIBE, email to debian-hurd-request@lists.debian.org
> > with a subject of "unsubscribe". Trouble? Contact
> > listmaster@lists.debian.org
> >
>
> =====
> James Morrison
>    University of Waterloo
>    Computer Science - Digital Hardware
>    2A co-op
> http://hurd.dyndns.org
>
> __________________________________________________
> Do You Yahoo!?
> NEW from Yahoo! GeoCities - quick and easy web site hosting, just
> $8.95/month.
> http://geocities.yahoo.com/ps/info1
>
>
> --
> To UNSUBSCRIBE, email to debian-hurd-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>

=====
James Morrison
   University of Waterloo
   Computer Science - Digital Hardware
   2A co-op
http://hurd.dyndns.org

__________________________________________________
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1



Reply to: