LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 10-15-2006, 01:59 PM   #1
jsnto
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Rep: Reputation: 0
advice setting up suse server - smartly


And by smartly - I mean clearly!

I have SUSE running as a server and it is accessable but I want two things that i don't have yet:

I want remote access so i can ftp web pages I create. And I would like to access as a user and access user /home/ directories but have them appear as in the main domain (ie not "WWW domain ca/~user/webpages" **but** "WWW domain ca/pages"

I want to be able to view the web pages using "www domain ca/index.html" (this **is it root directory**directory) but I don't want to ftp in using root or have to access the /srv/www/htdocs/ directory

Can I link my user directory so i can make changes in my user directory but it appears in the /srv/www/htdocs/ subdirectory?
 
Old 10-15-2006, 02:22 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
sounds like you just want to either change your documentroot in apache to point to an alternative location, or change the access rights of the current location to suit your non-root user.
 
Old 10-15-2006, 03:30 PM   #3
jsnto
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Original Poster
Rep: Reputation: 0
I guess I need to learn more. Maybe this is a better first step. I can put web pages in the /srv/www/htdocs subdir and they are viewable on the internet - how can I make my user (/jim/) pages available in the Internet? Do i have to add ~jim to the base URL? That doesn't work. Maybe i nneed to log in as root to change permissions?
Thanks for helping
 
Old 10-15-2006, 04:02 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
home user dirs is something i've neerv really done, it's not massively easy from scratch but most httpd.conf files are commented to do it already, so is often just a case of removing the comment marks.

you can make pages appear from *anywhere* you want to. as above, the DocumentRoot variable in httpd.conf defines where the default pages are served from.
 
Old 10-16-2006, 05:42 PM   #5
1337_penguin
Member
 
Registered: Jul 2005
Location: Brighton, UK
Distribution: Mainly Debian and Mepis, but also Slackware, Arch and Mandriva
Posts: 73

Rep: Reputation: 15
Hi

In order to get UserDirs working, you'll probably just need to uncomment/add something like:

UserDir public_html
UserDir disabled root

<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options Indexes SymLinksIfOwnerMatch IncludesNoExec
</Directory>

in /etc/apache/httpd.conf or /etc/apache2/apache2.conf depending on the version you're running.

As for FTP, I use vsftpd - enabling local access is just a matter of uncommenting:

local_enable=YES
write_enable=YES
(I also use chroot_local_user=YES)

in /etc/vsftpd.conf

Hope this helps.

1337_penguin
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help setting up mail server suse 9.1 tomhiggins Linux - Networking 0 07-20-2006 07:20 AM
Setting Up An FTP Server in Suse fclnewark Suse/Novell 7 01-30-2006 05:12 PM
Setting up a Server Need some Advice monkeywork Linux - Newbie 6 11-20-2003 01:40 PM
Setting up a Server Need some Advice monkeywork Linux - Software 1 11-20-2003 11:08 AM
setting up dhcp server in suse 7.1 parag Linux - Newbie 1 12-13-2001 10:10 AM


All times are GMT -5. The time now is 06:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration