[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] changing the default directory
- Subject: Re: [cobalt-users] changing the default directory
- From: Ted Behling <TBehling@xxxxxxxxxxxxx>
- Date: Sun Sep 9 10:36:07 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
At 10:48 PM 9/8/01, Rik Thomas wrote:
You definitely don't want to touch the httpd.conf file. All you need to do
is be VERY VERY did I say VERY careful and edit the /etc/passwd file. First
I would make a copy of it. Then change the section that says:
george:x:130:100:George Bush:/home/sites/site4/users/george:/bin/bash
and change it to:
george:x:130:100:George Bush:/home/sites/site4/web:/bin/bash
That's it, no reboots or anything. Just log back in and go from there. You
can even change the useradd defaults, so it will do this by default. But I
do not recommend doing this on a cobalt.
Er, wait just a second there. I strongly advise against defining the
user's home directory as the Web root. Sensitive files like .bash_history
get written there, which would be publicly accessible over the Web. I
don't have the original message in this thread, but if you want the user's
directory to change when shelling in, put a cd command in the user's
.profile file in his home directory. If you need his default to change
when FTPing, this can probably be done in the ProFTPd config file. If
you're really set on changing his home directory, at least set it to
/home/sites/site4, without the /web.
--------------------------------------------------------------------------
Ted Behling, Web Application Developer - Monarch Information Systems, Inc.
43 Folly Field Road, Unit 4, Hilton Head Island, SC 29928-5434
E-mail: mailto:TBehling@xxxxxxxxxxxxx
Phone/Fax: 1-800-842-7894 Local or Outside the USA: 1-843-842-7894
Cell Phone (urgent issues): 843-816-7895
Cell Phone E-mail: mailto:TedPhone@xxxxxxxxxxxxx (116 letter limit)
Web site: http://www.MonarchIS.net
--------------------------------------------------------------------------