• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

‘ulimit: max user processes: cannot modify limit:operation not permitted’ Shown When Login

by admin

The Problem

When login as oracle user, the following message showed on the console.

-bash: ulimit: max user processes: cannot modify limit:operation not permitted.

The Solution

ulimit option ‘-u‘ which means maximum number of user processes was set to a bigger one directly by adding the following line in the $HOME/.bash_profile.

$ ulimit -u 4096
$ ulimit -u 
4096

But originally the maximum number of user processes was set to 1024 in /etc/profile for oracle user.

if [ $USER = "oracle" ]; then
ulimit -u 1024
......
fi

When the option of ulimit ‘-u’ was set in the /etc/profile, it can’t be changed to a bigger one directly by adding ‘ulimit -u 4096’ line in $HOME/.bash_profile.

Note: ulimit option ‘-u ‘ which means the maximum number of user processes can be set from three different places, which are /etc/security/limits.conf, /etc/profile and $HOME/.bash_profile. They have the priority from high to low in order. When setting the ulimit value, we can’t set a bigger value in $HOME/.bash_profile than the value set in /etc/profile as we can’t set a bigger one in /etc/profile than the value set in /etc/security/limits.conf. Otherwise, we could encounter this kind of message.

Removing ulimit entries from .bash_profile

1. Remove ulimit entries from $HOME/.bash_profile file if it exists. For example, remove lines with ulimit set as shown below from the .bash_profile:

ulimit -u 4096

2. Add the relevant entries in /etc/profile as shown below:

if [ $USER = "oracle" ]; then
ulimit -u 4096
......
fi

Filed Under: CentOS/RHEL, Linux

Some more articles you might also be interested in …

  1. dir Command Examples in Linux
  2. pvcreate Command Examples in Linux
  3. bvnc: A GUI tool for browsing for SSH/VNC servers on the local network
  4. conan: open source, decentralized and cross-platform package manager to create and share all your native binaries
  5. which: command not found
  6. How to disable auto completion (tab completion) in bash shell
  7. spectre-meltdown-checker: command not found
  8. aa-disable: command not found
  9. colrm : command not found
  10. CentOS / RHEL 6,7 : How to configure hugepages

You May Also Like

Primary Sidebar

Recent Posts

  • ctags: Generates an index (or tag) file of language objects found in source files for many popular programming languages
  • csvtool: Utility to filter and extract data from CSV formatted sources
  • csvstat: Print descriptive statistics for all columns in a CSV file
  • csvsql: Generate SQL statements for a CSV file or execute those statements directly on a database

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright