New to Linux attempting an exercise to overwrite /proc/sys/fs/file-max
sudo sh -c 300000 > file-max
returns bash: file-max: Permission denied
. Do I actually have to be root to do this? the user account I'm using has been added to the sudo user group.
I saw variations of this question posted mostly attempting to modify different folders and the above command was the recommendation to alleviate the issue, but is the /proc
directory different?
Note: using most recent Kali Linux release.
300000
, which probably isn't going to be found (even if the redirection succeeds) – ilkkachu Jan 08 '18 at 22:24