View Full Version : List of directories with passwords?
Evoir
01-15-2002, 03:30 AM
I'm wondering if there is some way to see an overview of which directories I have placed passwords. I noticed that I have a few "extra" passwords, when I go to password protect a directory, there are a few extra choices of username/passwords than I am actvely using. Yet, I don't know what directories I put them in...
Does this make any sense?
Would be cool if there was an additional feature in the CNC to list what directories have password protection on.
Arthur
01-15-2002, 04:16 AM
I think I know what you mean. You want a list of all .htaccess files and whether or not it has user xyz listed in it.
Well, on the command-line it's not difficult to find that out. Go to your www directory and type;
find . -name ".htaccess"
This gives you a list of all your .htaccess files.
type
find . -name ".htaccess" | xargs grep xyz
This lists the .htaccess files that have the string xyz in it.
A list of all username+passwords (encrypted) can be found in /big/dom/xdomain/CNC_protect/.passwd
Arthur
Evoir
01-15-2002, 04:40 AM
Thank you Arthur!
I'll try that. But so far, the SSH (Telnet) in the control panel doesn't launch for me. I don't think I've tried it until today... since the upgrade to CNC 3.0, that is.
I use telnet so rarely, that it is nice for me to use the cnc for it. I'm wondering if it is a mac related issue? I never had this problem before the new CNC.
hmm. Seeing if i have some odd telnet application laying around....
Arthur
01-15-2002, 04:50 AM
Evie, give MacSSH (http://www.macssh.com/) a whirl. Or try BetterTelnet (http://www.cstone.net/~rbraun/mac/telnet/). Both are free.
I'm no Mac user, so I can't comment on how good/bad they are, but I like the price ;)
Found another one MacTelnet (http://www.mactelnet.com/)
And why the ssh client in your CNC isn't work, I don't know. You probably don't have Java installed, or your Java version is too old. The old telnet applet was less picky it seems.
btw, I hardly ever use the CNC, but my compliments to FQ and in particular Justin for a job very well done.
Justin
01-15-2002, 07:43 AM
The CNC SSH applet requires Java 1.2 or higher I believe. It has a few more requirements than the old telnet applet did, as it is quite a bit more functional (mostly that it uses encryption). Since we strongly recommend using SSH instead of plain-text telnet, we thought it best to offer an SSH client as part of the CNC.
With protected directories, we may be able to add a special folder icon with a padlock to show that it is a protected directory, but digging through all directories recursively could become quite heavy (some accounts have a lot of directories)... but the suggestion is noted for possible expansion later :)
Thanks for the compliments on the CNC :)
Justin
01-15-2002, 04:38 PM
The CNC has been updated, and password-protected folders should show a padlock-on-folder icon. Note that this only applies to directories protected from within the CNC.
Hope this helps :)
too cool!
way to go justin. :)
julie
jak graphic solutions, inc.
Evoir
01-15-2002, 05:02 PM
That rocks. :) Thank you.
I actually love my web hosting company. :)
So, one step further: you know when you are setting up passwords, is there some way to actually list the directories that are CNC protected, along with the username/passwords associated with it? (for down the line...)
Thanks
Justin
01-15-2002, 05:31 PM
That is where it gets more complicated. In order to do that, the CNC would have to recurse into every directory in your tree, which (as I mentioned earlier) could become quite heavy for some accounts.
This is something I'm working on a solution for, however, as I personally agree that it would be nice to have. In my testing on the new CNC, I protected a great number of directories, and it does become difficult to manage after a while.
Evoir
01-15-2002, 05:45 PM
Thanks Justin,
What you said makes sense. :)
Evoir
01-15-2002, 06:27 PM
Originally posted by arthur:
Go to your www directory and type;
find . -name ".htaccess"
This gives you a list of all your .htaccess files.
type
find . -name ".htaccess" | xargs grep xyz
This lists the .htaccess files that have the string xyz in it.
A list of all username+passwords (encrypted) can be found in /big/dom/xdomain/CNC_protect/.passwd
Arthur
This worked like a charm.
Justin: Does doing this in telnet cause as much server strain as creating a button in the CNC that would do this? (Just asking, not pushing)
Justin
01-16-2002, 07:17 AM
It could become heavy if you have a lot of directories, but if not it shouldn't be a problem. Just keep an eye on it -- if it takes a long time to execute, you will want to avoid running the command too often...
The only reason I brought the issue up is that when adding features to the CNC, we always have to consider worst-case scenerios, and make sure that there won't be any issues for those sites with a lot of files and directories.
Evoir
02-21-2002, 05:45 PM
I just want to say thanks again. I just found this new feature very helpful :)
vBulletin® v3.6.8, Copyright ©2000-2013, Jelsoft Enterprises Ltd.