Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

List all apache Userdirs

Posted on 2005-03-13
3
Medium Priority
?
205 Views
Last Modified: 2010-03-04
Is there a way to list all the users that have been given a userdir (from the mod_userdir config file) in webpage?  

Possibly as a server side include or php?
0
Comment
Question by:sniop1
1 Comment
 
LVL 51

Accepted Solution

by:
ahoffmann earned 1320 total points
ID: 13552828
that's a generic list, usually
assuming that you configure ~/public_html as user-dir in httpd.conf, following gives you a rough idea:
awk -F: '{print "ls -ld "$(NF-1)"/public_html"}' /etc/passwd|sh
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month13 days, 21 hours left to enroll

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question