LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-07-2004, 11:57 AM   #1
Gear_freak2000
Member
 
Registered: Jun 2003
Posts: 90

Rep: Reputation: 15
Exclamation I NEED YOU! Please READ!


Right im a to Linux but im quite a fast learner and am getting the hang of things.

I want to set-up and admin my own web server (for personal web development projects and to host a few friends sites)

I'm going to be installing:

SuSE Linux 9.0
Apache
PHP
MySQL
An ftp server
AND telnet (or a secure alternative)

Why I need YOU!

As I said I am a fast learner and have been browsing round the net for days learning things.

But I can’t find any help on Start to Finish web server (I was told about www.howtowebserver.com but the site seems to be down)

What im looking for is someone who can:

a) Point me to a place that has all my needs on it
Or
b) Be a kind of mentor eg. Someone I can ask questions about security and user management.

WHY?

Once my server is up and running I hope to write a DETAILED but easy guide on building a web server from scratch.

I will obviously give credit to ANYONE who helps.

So again. PLEASE HELP!!

-=GEARFREAK=-
 
Old 02-07-2004, 12:05 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
was there any reason you decided against a more suitable title such as "Need help setting up a full webserver"? Capital letters and exclamatino marks won't get you help faster.
 
Old 02-07-2004, 12:09 PM   #3
Gear_freak2000
Member
 
Registered: Jun 2003
Posts: 90

Original Poster
Rep: Reputation: 15
sorry i didnt mean to get people to answer quicker! im just tired lol

*Gets a pen out and changes the subject name*
 
Old 02-07-2004, 12:20 PM   #4
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
I recommend reading the docs at httpd.apache.org. Also, don't use telnet, use ssh which is the "secure alternative". SSH also allows you to do file copying securely (via scp and sftp).
 
Old 02-07-2004, 12:26 PM   #5
Gear_freak2000
Member
 
Registered: Jun 2003
Posts: 90

Original Poster
Rep: Reputation: 15
thanks for the reply.

i know how to setup apache , php and MYSQL no problem.

The main question i have is.

How to i add and cofigure a user so that he / she is only allowed in there own home dir (when they connect via ftp) and stop them getting remote access(Telnet / ssh)

Last edited by Gear_freak2000; 02-07-2004 at 12:28 PM.
 
Old 02-07-2004, 12:30 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you can stop individual remote connections by personalising the /etc/security/access.conf file. should have enough detail inside is already to explain everything.
 
Old 02-07-2004, 12:45 PM   #7
Gear_freak2000
Member
 
Registered: Jun 2003
Posts: 90

Original Poster
Rep: Reputation: 15
Thanks!

Any help on the adding users with only serton rights to folders?
 
Old 02-07-2004, 12:57 PM   #8
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
chmod and chown will giver certain user/groups permissions/who owns what for teh folders and indivisual files ----(just be carful with thiese things, dont wont somone loging in and finding they can delet ur whole system now eh?)
 
Old 02-07-2004, 02:14 PM   #9
witeshark
Member
 
Registered: Jan 2004
Location: Miami FL
Distribution: Mac OS X 10.4.11 Ubuntu 12.04 LTS
Posts: 429

Rep: Reputation: 30
Lightbulb

In Mac, the CHMOD changes the permissions or CHOWN changes the owner/group of the file. The specific detailed changes to a users files/folders permissions are this: +w (can write) +r (can read) -you can make any file read only (important) and +x for executable. Obviously -(letter) to remove that permission. Almost forgot! NEVER be online as ROOT!

Last edited by witeshark; 02-07-2004 at 06:39 PM.
 
Old 02-07-2004, 03:00 PM   #10
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
I dunno about MacOS, but in the linux world chmod changes the permissions and chown changes the owner/group of the file. Read the man page on both these commands.

There are two ways I have locked people out in the past.

First way was I took away read/write/execute lists for "others" on everything. I also changed the group association of everything in /bin, /usr, and /opt to localusers and make all the users that were allowed to run programs and browse system structure members of the localusers group. Users that weren't allowed weren't placed in that group.

I found that to be a pain because most programs when you use there install script set the permissions as root/root and mark binaries as executable for the world, so I had to change permissions constantly.

The second method, the method I employ now, is referred to as user jailing. I allow all my users ssh access to my machine. However, users that I want to keep out of places get chrooted to a directory on login. Inside there root directory they can browse the whole structure, and run the programs that exist there, but I have ultimate say over what goes in there. I only allow them the basic tools, don't allow them to install anything, and the only config. file they see in /etc is the passwd file with there password entry so they don't even know what other users are on the system or what software I am running. This takes some time to setup, but works quite well.

Last edited by jtshaw; 02-07-2004 at 03:07 PM.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounted read-write Fat32 partition suddenly becomes read-only?? hohead Linux - General 8 04-05-2007 12:17 PM
mozzla problems-can not read files online, can not read attachments sarajevo Linux - Software 1 09-20-2005 06:58 PM
Example share in smb.conf doesn't work - read/write vs read only kleptophobiac Linux - Networking 0 09-01-2004 07:14 PM
kernel panic unable to mount root (yes ive read/read other posts) dmx9595 Linux - General 4 01-17-2004 05:07 AM
my dvd is read as hdd and my ide cd-rw is read as scsi??? spyghost Linux - Hardware 11 07-16-2003 04:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:42 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