LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-07-2002, 05:50 AM   #1
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Making directories


Ok from what I have learned, a . at the beginning of a file/directory makes it hidden. So if I make my 'downloads' directory into a '.downloads' directory, how can I still access it while in X? And a bit further, if I have a program that stores downloads in that directory (example gtk-gnutella default directory) can it still put stuff in there as long as I change the path in the program to show '.downloads' instead of 'downloads'?

Is this confusing?
 
Old 06-07-2002, 06:17 AM   #2
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
Prefixing a directory with a dot does not in any way effect what can access it (unless the application is badly coded and can't cope with the dot).

You might have trouble accessing it through a GUI unless the GUI allows you to type file names manually or show hidden files.

Security through obscurity isn't security at all (<cough>Internet Information Server<cough>), if you want to prevent people browsing a directory chmod mode it to 700, that way only the owner (and root) can look inside it (unless the viewer has physical access to the disk, in which case they could bypass all the software security by running copy of Linux from a floppy disk with root acceess for themselves.).
 
Old 06-07-2002, 06:25 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Original Poster
Rep: Reputation: 69
Cool, thanks. No actually not real security, but rather obstructing certain 'files' from certain viewers eyes rather. I just don't want some things to be found through GUI very easily.

Thanks again.
 
Old 06-07-2002, 07:41 AM   #4
jglen490
Member
 
Registered: Apr 2002
Location: The next brick house on the right.
Distribution: Kubuntu 18.04, Bodhi 5.0
Posts: 691

Rep: Reputation: 45
Most GUI file viewers have the ability, or least the option, to view "dot" files. If you really want to keep certain files away from prying eyes or accidental eyes, use real security policies.
 
Old 06-07-2002, 07:48 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Original Poster
Rep: Reputation: 69
Cool, thanks. The inlaws are coming in town and my father in law likes to look for certain "mpeg" files. Figure I can hide them from him by putting them in Linux for one, but to take an extra step I will make a . directory. Although I may set a new pass for root too and make the chmod to 700 too. Just don't want to take chances, but also don't want to delete said files.

Thanks for all the info

And (unrelated), where do you become a registered Linux user?
 
Old 06-07-2002, 09:17 AM   #6
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
Quote:
Originally posted by MasterC
Cool, thanks. No actually not real security, but rather obstructing certain 'files' from certain viewers eyes rather. I just don't want some things to be found through GUI very easily.

Thanks again.
Well, if you wanna be really hardcore about this, you could set the permissions of the diretory in question (and the files/directories within it) to 000 when you're done downloading, and then restore the permissions (600 or 700) when you are in the process of downloading/uploading stuff from it.

P.S. How is the Gnutella network doing nowadays? I heard it's pretty bad...
 
Old 06-07-2002, 10:13 AM   #7
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
Quote:
Originally posted by MasterC
And (unrelated), where do you become a registered Linux user?
http://counter.li.org/
 
  


Reply



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
CHMOD directories.sub-directories.files zerojosh Linux - Software 2 11-19-2005 03:22 PM
Searching multiple directories and sub directories for a file jeep99899 Linux - Newbie 2 10-13-2005 12:23 PM
Directories? Dev930 Linux - Newbie 3 02-28-2004 06:34 AM
Directories Netmaster0000 Linux - General 3 12-16-2003 09:07 PM
directories in c++ erratic Programming 1 04-07-2001 12:24 PM

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

All times are GMT -5. The time now is 10:42 PM.

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