Comments (6)
how did you come by 32768? do you have a large cpm database?
from cpm.
a stock compile and the packaging process works fine with the default of 5010 or so here on debian squeeze
from cpm.
please give me ulimit -a when this problem appears
from cpm.
On Lenny with default contents in /etc/security/limits.conf:
~$ cat /etc/debian_version 5.0.4 ~$ uname -a Linux somehost.example.com 2.6.26-2-xen-amd64 #1 SMP Wed May 12 18:37:58 UTC 2010 x86_64 GNU/Linux ~$ cpm --security Running without root privileges: yes Memory protection from core dumps: yes Memory protection from swap writings: no Max. memory lock ok: no (32 kB) Memory protection from ptrace spying: yes Validation of environment variables: yes ~$ ulimit -l 32 ~$ su - ~# ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 4160 max locked memory (kbytes, -l) 32 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 4160 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited ~# ulimit -l 5120 # ref. http://www.harry-b.de/dokuwiki/doku.php?id=harry:cpm#memory_issues ~# ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 4160 max locked memory (kbytes, -l) 5120 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 4160 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited ~# su - $UNPRIVILEGED_USER ~$ cpm --security Running without root privileges: yes Memory protection from core dumps: yes Memory protection from swap writings: yes Max. memory lock ok: yes (5120 kB) Memory protection from ptrace spying: yes Validation of environment variables: yes
Fix, add something like:
- - memlock 5120to /etc/security/limits.conf.
br,
Knut
from cpm.
ok, this is not really a CPM issue. CPM can't frob the limit, and does warn you if the limit is too low.
from cpm.
my memlock is unlimited by the way. not a problem on a single user system
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.