LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 03-25-2003, 10:55 AM   #1
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Rep: Reputation: 30
Arrow 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
 
Old 03-25-2003, 11:20 AM   #2
im1crazyassmofo
Member
 
Registered: Jan 2003
Distribution: Slackware/Debian
Posts: 91

Rep: Reputation: 15
su root

chmod 777 yourfile


that should work
 
Old 03-25-2003, 11:41 AM   #3
snocked
Member
 
Registered: Dec 2002
Location: St. Louis, MO
Distribution: Slackware 9.1
Posts: 482

Rep: Reputation: 30
root is the owner, so as a user you can't modify the permissions.
 
Old 03-25-2003, 12:00 PM   #4
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Original Poster
Rep: Reputation: 30
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
 
Old 03-25-2003, 12:18 PM   #5
nxny
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: Reputation: 30
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
 
Old 03-25-2003, 12:27 PM   #6
hitesh_linux
Member
 
Registered: Dec 2001
Location: /root
Distribution: FreeBSD,NETBSD,redhat
Posts: 472

Original Poster
Rep: Reputation: 30
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
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
File permission help! jorasmi Slackware 7 08-15-2005 10:07 PM
About the file permission ust Linux - Distributions 1 05-06-2005 03:05 AM
File Permission gardenair Linux - Newbie 5 04-28-2005 10:35 PM
file permission Nechos Linux - Software 2 10-04-2003 03:31 PM
File Permission glock19 Linux - General 4 01-02-2002 07:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:31 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
Open Source Consulting | Domain Registration