Comments (5)
this has something to do with max memory lock
from cpm.
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.
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.
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.
Problems should be fixed in release 0.30.
from cpm.
Related Issues (20)
- cpm: initial curses screen setup not correct HOT 1
- cpm aborts on start: Can't attach to parent! HOT 5
- cpm doesn't ask for gpg key password, but: gpgme error / bad passphrase HOT 3
- Unable to specify encryption key HOT 3
- Draw the console UI with something other than CDK.
- Trusting keys from CPM
- Automating nonsense in the cpmgit gitlog HOT 1
- security check failure HOT 3
- "Cannot drop root privileges." on debian/jessie/i386
- cpm doesn't reset terminal on start
- libncursesw5-dev missing as install dependency
- make install doesn't create LC_MESSAGES
- Feature request: Inactivity timeout HOT 4
- feature request: open password databases without local trust HOT 3
- Can't run as non-root user HOT 1
- execl() in clear_screen needs a NULL terminator. HOT 1
- Cannot modify database: "You did not specify any encryption keys. " HOT 2
- Please document how to decrypt the file with gpg HOT 1
- Problems with opening and closing cpm in Debian 10 buster HOT 1
- The key you entered could not be validated.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cpm.