|
|
Views
Edit history
changed:
-
How do we create a directory in every user's home directory where they
can drop a file, and have it automatically displayed by the Apache Web
Server running on the LTSP server?
The simple answer is to create a symlink in /etc/skel, so when you create
users on the system, it links a directory to DocumentRoot of the Web
Server. However, we discovered that, the redhat-config-user utility didn't
handle the symlink properly.
So Nandy created a work-around. He modified the .bashrc in /etc/skel like
so::
# .bashrc
# User specific aliases and functions
# Source global definitions
if [[ -f /etc/bashrc ]; then # these
. /etc/bashrc # lines
fi # are standard
if [[ ! -d /home/$USER/www ]; then # does the link exist?
echo creating link... # echo to standard out
ln -s /var/www/html /home/$USER/www # create the symbolic link if not
else # otherwise
echo www link exists... # echo to standard out.
fi # done
|
|
«
|
January
2009
|
»
|
| Su |
Mo |
Tu |
We |
Th |
Fr |
Sa |
|
|
|
|
1 |
2 |
3 |
| 4 |
5 |
6 |
7 |
8
|
9 |
10
|
| 11 |
12 |
13 |
14 |
15 |
16 |
17 |
| 18 |
19 |
20 |
21 |
22 |
23 |
24 |
| 25 |
26 |
27 |
28
|
29
|
30 |
31 |
-
General Meeting January 8, 2009
San Diego County Office of Education 6401 Linda Vista Rd Room 301,
2009-01-08
-
Installfest January 10, 2009
National City Adult Education Center: 517 Mile of Cars Way; National City, CA 91950,
2009-01-10
-
Open Source Conference, January 28,29 2009
Ramada Inn & Conference Center
5550 Kearny Mesa Rd.
San Diego, CA 92111,
2009-01-28
-
General Meeting, February 12, 2009
San Diego County Office of Education 6401 Linda Vista Rd Rooms 401 & 401,
2009-02-12
|