0

When I type netstat into my SSH console as a non root user, I get

/proc/net/tcp: permission denied

but it works fine as root. I was wondering if it's possible how I would allow non root users to run this command.

Using Ubuntu 14.10

migrated from serverfault.com Mar 22 '15 at 9:22

This question came from our site for system and network administrators.

  • Is target yours or are you connecting a third party server?? (In the second case, migrating from serverfault was probably not a good idea!) – F. Hauri Mar 22 '15 at 9:42
1

It should be readable by default, make sure you don't have weird mount options in /etc/fstab or some clumsy post-mount task in /etc/init/mounted-proc.conf.

0

You could maybe connected to a paranoid server, protected strongly against TURLA FOR LINUX viruses.

This could be restricted by some apparmor protections.

You could try my prototype of turla knockdoor sample to understand how access to /proc/net/tcp could become a way of attack...

Ask your sysadmin (and tell im to read my answer in order to protect his system)!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.