LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-17-2011, 07:23 AM   #1
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Rep: Reputation: Disabled
Squid Command Does Not Work, Cannot Change Permission


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?

http://www.ubuntuka.com/squid-cache-...-ubuntu-linux/

http://www.ubuntuka.com/extract-mp3-...e-in-one-step/
 
Old 09-17-2011, 01:38 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,903

Rep: Reputation: 4268Reputation: 4268Reputation: 4268Reputation: 4268Reputation: 4268Reputation: 4268Reputation: 4268Reputation: 4268Reputation: 4268Reputation: 4268Reputation: 4268
Quote:
Originally Posted by hitmen View Post
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".
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
busybox command works, same command within script says permission denied jeroenv Linux - Newbie 2 01-17-2009 02:58 AM
squid proxy with different permission ssilayaraja Linux - Networking 1 03-28-2008 08:40 AM
Can't change permission karpa Linux - Newbie 29 03-15-2006 05:20 PM
Need ACCESS to change files! Every time I try to change a setting,"Permission Denied" Balarabay1 SUSE / openSUSE 2 03-06-2006 09:54 AM
cp command change the file permission? myunicom Linux - General 6 09-24-2003 08:15 AM


All times are GMT -5. The time now is 07:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration