|
Search
|
||||||
Hidden directories on unix serversLinux & Apple OS Support Discuss all problems / questions you have for Linux, Unix and Apple OS. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
Hidden directories on unix servers
is it possible to have hidden directories on unix servers? becasue.. we have run into a *small* problem.. where we ran out of ftp accounts. so what we were thinking of.. was to have http://members.ourdomain.com/hidden_...dir/hidden_usr and then have an alias as a subdomain.. so that http://members.ourdomain.com/hidden_..._usr/index.htm could be accessed by simply typing in http://alias.ourdomain.com ..if you see where im coming from. any help would be much appriciated.. i use ws_ftp.. if the above is possible, could you please instruct me how to do it via the said software.. or.. if there is an alternative software required..
|
| Advertisement |
|
#2
|
||||
|
||||
|
Unix based servers hide files with a period at the beginning of the name such as .htaccess.
This should work with directories as well since in Unix a directory is just a file with the directory flag set. |
|
#3
|
||||
|
||||
|
i havent tried it yet, but ima say 'you rule' in advace.. just so you can feel good about yourself for a while
|
|
#4
|
||||
|
||||
|
Thanks, I hope it works. If not, let me know.
|
|
#5
|
||||
|
||||
|
oh.. it works alright.. just one thing - the directory i just made.. to test.. how the **** do i delete it
|
|
#6
|
||||
|
||||
|
Quote:
|
|
#7
|
||||
|
||||
|
ah.. worked it out. hmm.. added to this - is there anyway to password protect directories within ftp itself.. like you log on with one password.. and say you try to access a certain directory.. erm.. you need another password to access it. a seperate one even. is that possible.. or.. not
|
|
#8
|
||||
|
||||
|
Yep, I think you can do it by using an .htaccess file. Create and upload a file name .htaccess into the folder you want protected, with this inside of the text file:
Code:
AuthType Basic AuthName "dirname" AuthUserFile /home/xxx/.htpasswds/dirname/passwd require valid-user I hope you have a command line to the machine, if so the folder you are probably looking for is called htdocs at a command line look for that or httpd.conf which is the configuration file for apache you can look for the files by typing in locate httpd.conf or locate htdocs in the httpd.conf you will find a line called DocumentRoot that will tell you where the webpage files are stored in the filesystem. Not sure if this will work, it's been awhile. Maybe someone else here knows more. |
![]() |
| Tags |
| directories, hidden, servers, unix |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Servers | k3o | Networking | 1 | Apr 15th, 05 5:46 PM |
| hidden tracks | cowsgomoo | Video Authoring & Editing | 14 | Jan 4th, 05 1:01 AM |
| Hidden messages in music | Ogden2k | Off-Topic Chat | 12 | Oct 4th, 04 3:36 AM |
| need help on creating game servers! | Kenny03 | Gaming Arena | 10 | Mar 27th, 04 7:48 PM |