Question

Termux: fuser, How to Fix

Cannot open /proc/net/unix: Permission denied


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
March 21, 2025

Hey there 👋

Could you share a bit more about your setup?

Are you running Termux on a local Android device or inside a DigitalOcean Droplet? The error Cannot open /proc/net/unix: Permission denied usually points to permission restrictions, but it’s hard to say for sure without more context.

If you’re running this on a Droplet, are you using a regular user or root? And what exactly are you trying to do with fuser? Happy to help if you can provide a bit more detail.

- Bobby

alexdo
Site Moderator
Site Moderator badge
March 21, 2025

Heya, @mrpinky2022

You need root access to use fuser properly on Android.

If your device is not rooted, fuser will be limited in functionality — especially when it comes to detecting which processes use a file, socket, or port.

If you can shed more details on what you’re trying to achive we can point you on how to set everything.

Regards

KFSys
Site Moderator
Site Moderator badge
March 23, 2025

Heya,

In Termux, if you’re trying to use fuser and see this error:

Cannot open /proc/net/unix: Permission denied

it usually means that fuser requires elevated privileges (root access) to read certain files under /proc, like /proc/net/unix.

Can you let us know a little bit more on how you actually host Termux, do you have root access?

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.