1856427 Members
3211 Online
104113 Solutions
New Discussion

Re: hiding files

 

hiding files

Dear all,

I am new Unix user, I want to secure some important files by hiding. Could anyone please tell me how to hide the files and different methods.
6 REPLIES 6
Piergiacomo Perini
Trusted Contributor

Re: hiding files

Hi,

"hidden file" on Unix can be those file with a dot "." as first character as name.

But if u want to secure the content of a file u can use, in editing and creation phase, option "-x" in vi.
So a password will be prompted .

hth
regards
Mauro Gatti
Valued Contributor

Re: hiding files

You can also use read/write permission to keep you file for your eyes only.

RGDS

Mauro
Ubi maior, minor cessat!
MarkSyder
Honored Contributor

Re: hiding files

Unless the files have to go in a specific directory you could put them in a directory the users have no access to.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Raj D.
Honored Contributor

Re: hiding files

Hi Yajuvendra ,

In unix hidden files are starts with a period (.) , Any file or directory started with . is a hidden and normal ls -l command will not show this.

To see the hidden file you have to use
# ls -la

Though , if u hide its not protected as it can be visiable by ls -la.

Hence you need to workout with permission . Put the files in a directory and set the permission of that directory . You may also use acl for that. Or write a script to monitor.

Cheers,

Raj

" If u think u can , If u think u cannot , - You are always Right . "
Ivan Ferreira
Honored Contributor

Re: hiding files

Setting permissions to files is the only way to really secure your data. Just hidding files is not a good practice to security.

You can also use gpg to encrypt your files.

Edit your profile and set the umask to 077:

umask 077

Change the permissions to your files using:

chmod 600 filename

Change the permissions to your directories using:

chmod 700 directory

This permissions will set permissions to files and directories to allow access only to you.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Sยภเl Kย๓คг
Respected Contributor

Re: hiding files

Hi Yajuvendra Singh,

You have posted two threads for almost the problem. We request you to assign points and close any one of the threads.

Second Thread

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=980056


Regards,
Sunil
Your imagination is the preview of your life's coming attractions