Git Product home page Git Product logo

Comments (5)

comotion avatar comotion commented on July 17, 2024

this has something to do with max memory lock

from cpm.

gryml avatar gryml commented on July 17, 2024

Well, i have the same issue, but everything seems fine (except for the fact that i cant run cpm):
Error opening terminal: rxvt-unicode.

  • The first thing is checking other ncurses apps and creating an appropriate terminfo file. I did this, everything else works. Then i set $TERM=xterm, started an xterm and got the same error (just for xterm).

  • I really want to use cpm (it seems secure, accessable through CLI, lots of nice options, C, and so on) and this seems like a dumb-mistake.So, please help me and krav :)

  • Here is some output:

  • cpm -v:

    cpm 0.26 (32 bit)
    CDK version 5.0 (20060507).
    GpgME version 1.2.0 (rcpt).
    ncursesw version 5.9 (20110404).
    XML2 version 2.7.8.
    zlib version 1.2.3.4.
    cracklib ist aktiv.
    Written by Harry Brueckner [email protected] 2005-2009.
    Maintained by Kacper Wysocki [email protected] 2010.

  • cpm -s:
    Ausführung ohne Root Privilegien: ja
    Speicherschutz vor Coredumps: ja
    Speicherschutz vor Speicherauslagerung: ja
    Max. Speichersperre ist ok: ja (6144 kB)
    Speicherauslagerung vor ptrace Spionage: ja
    Validierung der Umgebungsvariablen: ja
    Cracklib dictionary (/var/cache/cracklib/cracklib_dict):ja

  • cpm --configtest
    Konfigurationsdatei ok.

  • ncursesw5-config --version ; ncurses5-config --version

    5.9.20110404
    5.9.20110404

from cpm.

comotion avatar comotion commented on July 17, 2024

My theory is that on newer systems you will need a lot higher memlock limit than initially expected..

Max. Speichersperre ist ok: ja (6144 kB)

try bumping mlock to at least 32MB, maybe even set it to unlimited:
/etc/security/limits.conf:

  • - memlock unlimited

unfortunately you will need to completely log out and back in, maybe even reboot for this to take effect.

I haven't been able to pinpoint why it needs such a big memlock, maybe because of bloat in one of the library dependencies on newer distros.

from cpm.

comotion avatar comotion commented on July 17, 2024

we've made some headroom here. turns out the draconian memory lock limits arent as draconian from linux 2.6.9 and onwards. As a consequence, newer versions of cpm (0.27 and up) won't require suid to do the memlock. However, if this memlock is too small to contain the unpacked password database (and then some for program memory and curses), you will still have problems.

from cpm.

comotion avatar comotion commented on July 17, 2024

Problems should be fixed in release 0.30.

from cpm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.