Welcome, Guest

Go Back   TechieHQ - Computer Help Forum · » Operating Systems · Linux & Apple OS Support
Reload this Page Hidden directories on unix servers

Hidden directories on unix servers

Linux & Apple OS Support Discuss all problems / questions you have for Linux, Unix and Apple OS.

Reply
 
Thread Tools Display Modes
  #1  
Old May 17th, 03, 4:10 PM
digital.bath's Avatar
digital.bath
grr.. raWr
Posts: 4
Status: Offline
 
From: bermuda
Joined: May 2003
Rep: digital.bath is on a distinguished road to becoming a computer geek
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..
Reply With Quote
Advertisement
  #2  
Old May 17th, 03, 7:27 PM
Ogden2k's Avatar
Ogden2k
Photojournalist
Posts: 6,977
Status: Offline
shield_mod.giftechie.gif
 
From: Maine, USA
Joined: Dec 2002
Rep: Ogden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mind
xbl.gifflickr.gif
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.



__________________
Learn about the man behind the screen @ Ogden2k.net
Reply With Quote
  #3  
Old May 17th, 03, 7:29 PM
digital.bath's Avatar
digital.bath
grr.. raWr
Posts: 4
Status: Offline
 
From: bermuda
Joined: May 2003
Rep: digital.bath is on a distinguished road to becoming a computer geek
i havent tried it yet, but ima say 'you rule' in advace.. just so you can feel good about yourself for a while
Reply With Quote
  #4  
Old May 17th, 03, 7:29 PM
Ogden2k's Avatar
Ogden2k
Photojournalist
Posts: 6,977
Status: Offline
shield_mod.giftechie.gif
 
From: Maine, USA
Joined: Dec 2002
Rep: Ogden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mind
xbl.gifflickr.gif
Thanks, I hope it works. If not, let me know.



__________________
Learn about the man behind the screen @ Ogden2k.net
Reply With Quote
  #5  
Old May 17th, 03, 7:41 PM
digital.bath's Avatar
digital.bath
grr.. raWr
Posts: 4
Status: Offline
 
From: bermuda
Joined: May 2003
Rep: digital.bath is on a distinguished road to becoming a computer geek
oh.. it works alright.. just one thing - the directory i just made.. to test.. how the **** do i delete it
Reply With Quote
  #6  
Old May 18th, 03, 8:11 PM
Ogden2k's Avatar
Ogden2k
Photojournalist
Posts: 6,977
Status: Offline
shield_mod.giftechie.gif
 
From: Maine, USA
Joined: Dec 2002
Rep: Ogden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mind
xbl.gifflickr.gif
Quote:
Originally posted by digital.bath
oh.. it works alright.. just one thing - the directory i just made.. to test.. how the **** do i delete it
I think a ls -a will list hidden directories, then once you see the dir, rmdir <dir name>, or rm <file name>.



__________________
Learn about the man behind the screen @ Ogden2k.net
Reply With Quote
  #7  
Old May 18th, 03, 9:04 PM
digital.bath's Avatar
digital.bath
grr.. raWr
Posts: 4
Status: Offline
 
From: bermuda
Joined: May 2003
Rep: digital.bath is on a distinguished road to becoming a computer geek
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
Reply With Quote
  #8  
Old May 18th, 03, 9:19 PM
Ogden2k's Avatar
Ogden2k
Photojournalist
Posts: 6,977
Status: Offline
shield_mod.giftechie.gif
 
From: Maine, USA
Joined: Dec 2002
Rep: Ogden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mindOgden2k has a brilliant tech mind
xbl.gifflickr.gif
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
As for the .htpassword file:
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.



__________________
Learn about the man behind the screen @ Ogden2k.net
Reply With Quote
Reply

Tags
directories, hidden, servers, unix


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Forum Jump

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


All times are GMT +1. The time now is 11:55 PM.