Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Network Troublshooting => Linux Servers Support => Topic started by: Louis on August 25, 2009, 12:37:38 PM

Title: Hideout any configuration file??
Post by: Louis on August 25, 2009, 12:37:38 PM
Is there any way around ,to HIDE any main configuration file in Redhat linux? For eg, i want to hide squid.conf file, how to i do that???

Thank Ya....
Title: Re: Hideout any configuration file??
Post by: pedro on August 30, 2009, 03:25:46 PM
Hide from whom? Why don't you save it inside a protected directory (owned by root:root and with 750 permissions)

The file squid.conf is usually stored under /etc/squid, so making the permissions in that directory be 750, would make the files in that directory only accessible to user and group root. Would that be enough for you?

You might need to make the directory group owner be squid, so that the user that finally runs the services can access it, but that depends on how you have configured it.
Hope that helps,

Pedro.
Title: Re: Hideout any configuration file??
Post by: gauravbajaj on September 02, 2009, 04:57:55 AM
In linux you can hide the files by renaming it with .

Like if you wana hide file abc then you have to rename it with prefix dot(.)
#mv abc .abc
Now you can't able to see the file using ls -lrt.You can only view it using ls -lart [ i.e with -a, you can view hide files also ]
Title: Re: Hideout any configuration file??
Post by: Louis on September 04, 2009, 10:22:51 AM
Great...!!! Thanks...