LinuxQuestions.org
Visit Jeremy's Blog.
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, 12: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, 08:49 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,308

Rep: Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744Reputation: 2744
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 10:28 AM
Need help creating VERY LIMITED user accounts damgar Linux - Newbie 8 10-25-2009 12: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 10: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 04:37 PM
creating user account Robin01 Linux - Newbie 2 01-25-2004 01:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:56 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
Open Source Consulting | Domain Registration