GICT knowledge base
-bash: redirection error: cannot duplicate fd: Invalid argument
Published
Login error on console “-bash: redirection error: cannot duplicate fd: Invalid argument”
OS: CentOS 6
The error was due to /etc/security/limits.conf settings
The file had:
* hard nofile 10
* hard cpu 10
* hard locks 2
Once commented out and rebooted the error was solved.
Related guides
How to Restrict an SSH Key to One Command
Restrict an SSH key to one command with authorized_keys options. Protect the command and check that unwanted shell and forwarding access are denied.
Linux and CommandsSelf-Hosted Video Processing With FFmpeg: A Practical Guide
Learn how to self-host video processing on a VPS using FFmpeg, with practical commands for conversion, compression, thumbnails, and automated workflows.
Linux and CommandsHow to use nohup: Commands in Linux That Survive Terminal Closes
Keep commands running after you close the terminal. nohup examples with wget, Python, rsync, and Docker on any VPS.
Linux and CommandsHow to Fix “Too Many Open Files” Error on Linux Servers
Learn how to fix the "Too Many Open Files" error on Linux servers by understanding file descriptors, adjusting limits, and diagnosing leaks effectively.
