Changing Default Options for proc mount in Ubuntu Linux

Abstract: Resolve application failures caused by hidepid=2 in /proc by updating /etc/fstab and remounting the filesystem.

Created: 2026-09-19 by

To change the default proc mount options in Ubuntu Linux, edit the /etc/fstab file and modify the line mounting proc. Replace or append the desired options, such as removing hidepid=2, then run sudo mount -o remount proc to apply the changes immediately without a reboot.

Understanding Proc Mount Options

The proc filesystem is a pseudo-filesystem in Linux that provides an interface to kernel data structures. It is typically mounted at /proc and allows user-space programs to interact with the kernel. By default, Ubuntu mounts this filesystem with specific options that control visibility and access permissions. One common option encountered in server environments, particularly those with security hardening, is hidepid=2. This option hides process information from users who do not own the process, effectively preventing them from seeing other users' processes via /proc. While this enhances security by limiting information disclosure, it can break applications that rely on reading global process statistics or require access to all process IDs. Understanding these options is crucial before making modifications, as incorrect settings can lead to system instability or application failures.

Locating the Proc Entry in Fstab

The configuration for how filesystems are mounted at boot time is stored in the /etc/fstab file. To modify the proc mount options, you must first locate the relevant entry in this file. Open a terminal and use a text editor with root privileges. The command sudo nano /etc/fstab is a standard choice for this task. Once the file is open, search for the line that begins with proc. It usually looks something like:
proc /proc proc defaults 0 0
Or, if hidepid is already set, it might appear as:
proc /proc proc defaults,hidepid=2 0 0
This line defines the source (proc), the mount point (/proc), the filesystem type (proc), and the options. The fourth column contains the options string. This is where you will make your changes. Be careful not to alter other parts of the line, especially the last two columns which indicate dump and pass numbers. Incorrectly modifying these can prevent the system from booting correctly or cause filesystem checks to fail.

Editing the Options Safely

When editing the options, you need to decide whether to remove hidepid=2 entirely or add new options. If you wish to revert to default behavior where all users can see all processes, simply remove hidepid=2 from the options string. Ensure there are no trailing commas or spaces that could cause parsing errors. For example, change defaults,hidepid=2 to just defaults. If you want to keep some security restrictions but allow broader access, you might use hidepid=1, which hides process names but still shows PIDs. Always verify that the syntax is correct before saving. In nano, you can save changes by pressing Ctrl+O and exiting with Ctrl+X.

Applying the Changes

After saving the modified /etc/fstab file, you must apply the changes to the running system. The most straightforward way to do this is to remount the proc filesystem. Run the following command in your terminal:
sudo mount -o remount proc
This command tells the system to unmount and remount /proc using the new options specified in /etc/fstab. If the command executes without error, the new settings are active immediately. You can verify the current mount options by checking the contents of /proc/mounts or by running cat /proc/mounts | grep proc. The output should reflect your changes. For instance, if you removed hidepid=2, the options column should no longer list it.

Handling Errors During Remount

If the mount command fails, it is likely due to a syntax error in /etc/fstab. Check the terminal output for specific error messages. Common issues include missing commas, invalid option names, or typos. If the system becomes unstable or you cannot recover easily, you may need to boot into recovery mode or use a live USB to edit /etc/fstab again. Always ensure you have a backup of the original /etc/fstab file before making changes. A simple copy command like sudo cp /etc/fstab /etc/fstab.bak creates a safety net.

Verifying the New Configuration

Once the remount is successful, verify that the new behavior matches your expectations. Try listing processes using commands like ps aux or checking /proc directories. If you removed hidepid=2, you should now be able to see processes owned by other users. If you are managing a VPS, consider the security implications. Hiding process details can protect against certain types of reconnaissance attacks. However, for development or debugging purposes, full visibility might be necessary. Balance security needs with operational requirements. For more information on related system configurations, see MS-CHAP Authentication Failing When Connecting Draytek LTP/IPSec VPN on Ubuntu Linux AWS EC2 Instance and Port Forwarding VM via OpenVPN: A Comprehensive Guide.

Frequently Asked Questions

What happens if I remove hidepid=2?

Removing hidepid=2 allows all users on the system to view process information belonging to other users. This includes process IDs, command lines, and memory usage details. While this breaks some security hardening measures, it enables tools that require global process visibility to function correctly.

Can I use hidepid=1 instead?

Yes, hidepid=1 is a middle-ground option. It hides the executable name and command-line arguments of processes owned by other users, but still shows their PIDs. This provides some privacy while allowing scripts that only need PID lists to work.

How do I revert the changes if something goes wrong?

You can revert changes by restoring the original /etc/fstab file from your backup. Use sudo cp /etc/fstab.bak /etc/fstab and then remount proc again. If the system is unbootable, use a live USB to perform the restoration.

Does this change affect running services?

Remounting proc affects the entire system immediately. Running services that rely on /proc data may temporarily lose access to that information. Most modern services handle this gracefully, but some might restart or behave unexpectedly during the remount process.

Is it safe to edit fstab on a production server?

Editing /etc/fstab carries risks because it controls critical mount points. Always create a backup before editing. Test changes in a non-production environment first if possible. Ensure you have console access to the server in case the GUI or SSH fails after a bad edit.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More