LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 07-19-2012, 01:36 PM   #1
ashamanmiller
LQ Newbie
 
Registered: Dec 2010
Posts: 23

Rep: Reputation: 0
Question Ubuntu server- creating a limited apache user account with domain name?


I'm contemplating dusting off my old failed attempt at created my file/ webserver again, with Ubuntu Server. I wish to do many things with this, the most important being this:
1) Create an account for a friend to host his websites with Apache. However, I don't want him to access any of the other files besides his own, and I wish to attach a domain name for his website... and how to use other domain names if other users were to ask to host their files on my server.
2) Similar to number 1, I wish to host my file server using sftp and a ftp program such as filezilla, where my account would have full access yet someone elses account wouldn't.
3) Set up the best configuration for PuTTY to login to my server remotely.
Sorry for the beginner questions, yet I can't seem to find any articles that explains this (if this is at all possible.)
Thanks!
 
Old 07-19-2012, 09:49 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Basically (and these section nums are not related to your qns nums)

1. use Ubuntu's repositories and pkg mgr to install apache (& mysql if reqd).
Do not try to handbuild.

2. use vitrual hosts to separate each website

3. use htaccess ctrls, but put them in the vhost directory tags, not as .htaccess files in website dirs.

4. ensure only you are uploading content/pages etc. This may run into a lot of work later, but its best to start that way.

5. ensure only your user is in same group as apache (it may actually install as httpd user)

6. Edit /etc/ssh/sshd_config to only allow you to ssh in.
you should probably use ssh-auth-keys instead of a passwd, especially if you want to automate uploads/downloads.
You can also restrict by username, host etc etc http://www.openbsd.org/cgi-bin/man.c...nfig&sektion=5

There are a lot of HOWTOs on the net; try to find one that's specific to your distro+vesrion and get an LTS (Long Term Support) version of Ubuntu for this.

you should have no probs using filezilla or putty on the same lan.
 
  


Reply

Tags
server


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
how to add new user account Nagios over Ubuntu Server mjfuentes Linux - Server 2 12-07-2010 11:28 AM
Need help creating VERY LIMITED user accounts damgar Linux - Newbie 8 10-25-2009 01:57 AM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 11:02 AM
Am having problems creating a machine account from XP WS to Samba 3 Domain Controller robertomason Linux - Wireless Networking 3 03-13-2004 05:37 PM
creating user account Robin01 Linux - Newbie 2 01-25-2004 02:17 PM


All times are GMT -5. The time now is 08:47 AM.

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