April 26, 2024, 09:01:42 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Hideout any configuration file??  (Read 3829 times)

Offline Louis

  • Linux Noob !
  • *
  • Posts: 10
Hideout any configuration file??
« 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....

Offline pedro

  • Linux Noob !
  • *
  • Posts: 14
Re: Hideout any configuration file??
« Reply #1 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.

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Re: Hideout any configuration file??
« Reply #2 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 ]

Offline Louis

  • Linux Noob !
  • *
  • Posts: 10
Re: Hideout any configuration file??
« Reply #3 on: September 04, 2009, 10:22:51 AM »
Great...!!! Thanks...