Originally Posted by hitmen
c@c-laptop:~/bash_folder$ sudo echo -n > /etc/squid/squid.conf
bash: /etc/squid/squid.conf: Permission denied
c@c-laptop:~/bash_folder$ sudo gedit /etc/squid/squid.conf
sudo: gedit: command not found
c@c-laptop:~/bash_folder$ chmod +x /etc/squid/squid.conf
chmod: changing permissions of `/etc/squid/squid.conf': Operation not permitted
What doesnt gedit work?
In the first command, the file may not be writable, and if it was, you'd have created a blank squid.conf file.
In the second, it tells you it can't FIND the gedit command...so specify its full path, such as /usr/bin/gedit
In the third, you're not using SUDO, and you're not root, so you can't change the permissions.
So, you can use "sudo /usr/bin/gedit /etc/squid/squid.conf", or "sudo vi /etc/squid/squid.conf".