Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-25-2003, 10:55 AM
|
#1
|
Member
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472
Rep:
|
file permission !!!
Hello Friends,
I think this very easy question i know ,,,,,,,,,,
During squid as proxy sever i had change squid permission.
with this command.
chmod 700 /etc/rc.d/init.d/squid
now i want to add few more line in /etc/squid/squid.conf
it's look like this ,
-rw-r--r-- 1 root root 90225 Mar 24 23:12 squid.conf
when i type this command ,
chmod 777 squid.conf
it show this error,
chmod: changing permissions of `squid.conf': Operation not permitted
1) how can i change this file permission ,so i can add few line in /etc/squid/squid.conf
Thanks
Hitesh
|
|
|
03-25-2003, 11:20 AM
|
#2
|
Member
Registered: Jan 2003
Distribution: Slackware/Debian
Posts: 91
Rep:
|
su root
chmod 777 yourfile
that should work
|
|
|
03-25-2003, 11:41 AM
|
#3
|
Member
Registered: Dec 2002
Location: St. Louis, MO
Distribution: Slackware 9.1
Posts: 482
Rep:
|
root is the owner, so as a user you can't modify the permissions.
|
|
|
03-25-2003, 12:00 PM
|
#4
|
Member
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472
Original Poster
Rep:
|
Hello friends,
but i 'rn give this with 'root only,
this what i had done,
login:root
password:******
[root@hylix root]# /etc/squid
[root@hylix squid] ls -l
total 240
drwxr-xr-x 2 root root 4096 Mar 24 21:53 errors
drwxr-xr-x 2 root root 4096 Mar 25 22:00 icons
-rw-r--r-- 1 root root 26097 Mar 24 21:53 mib.txt
-rw-r--r-- 1 root root 6912 Mar 24 21:53 mime.conf
-rw-r--r-- 1 root root 6912 Mar 24 21:53 mime.conf.default
-rw-r--r-- 1 root root 90225 Mar 24 23:12 squid.conf
-rw-r--r-- 1 root root 90108 Mar 24 21:53 squid.conf.default
[root@hylix squid]# chmod 777 squid.conf
chmod: changing permissions of `squid.conf': Operation not permitted
[root@hylix squid]#
now i had put all the thing ,
but still showing this error,
i don't know why ???
help me out,
plzzzz
Hitesh
|
|
|
03-25-2003, 12:18 PM
|
#5
|
Member
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771
Rep:
|
do an lsattr on the file. Use chattr to unset any file attributes that are causing this. That should do it.
man 1 lsattr
man 1 chattr
|
|
|
03-25-2003, 12:27 PM
|
#6
|
Member
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472
Original Poster
Rep:
|
Thanks nxny,
it's done,THANKS
when again problem,
when i restart this service with this command,
[root@hylix squid]# /etc/rc.d/init.d/squid restart
Stopping squid: squid: ERROR: No running copy
done
Starting squid: squid
---------------------------------
now what's problem,
Help me,,
Hitesh
|
|
|
All times are GMT -5. The time now is 09:31 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|