• 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. CentOS / RHEL 5 : dm-multipath file /etc/sysconfig/mkinitrd/multipath explained
  2. gdebi Command Examples in Linux
  3. CentOS / RHEL 7 : Shutting Down, Suspending, or Rebooting Commands (systemctl)
  4. Change default kernel (boot with old kernel) in CentOS/RHEL/OEL 5 and 6
  5. route Command Examples in Linux
  6. How to clear the buffer/pagecache (disk cache) under Linux
  7. CentOS / RHEL 7 : How to set default target (default runlevel)
  8. env Command Examples in Linux
  9. How to Change Timezone from CST To EST in CentOS/RHEL 7 Server
  10. lrzuntar: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • netselect-apt Command Examples in Linux
  • netselect-apt: command not found
  • nethogs Command Examples in Linux
  • nethogs: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright