Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 02-09-2004, 05:15 PM   #1
Senior Member
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
Creating a webserver


I have installed RH9 on a machine and use it for a server. Everything works great (HTTP, FTP, MYSQL, PHP, SSH, ...)

So now I am wondering:

1. How do I restrict users connecting to FTP only to be able to browse in their user directories?

2. How do I get mysql to connect only with password? Now it doesn't want to connect if I use password.

3. How do I assign rights to newly created directories and files that users create in their user directories?

Thanks for the help!

Old 02-09-2004, 05:25 PM   #2
Registered: Dec 2003
Location: Denmark
Distribution: Mandrake
Posts: 179

Rep: Reputation: 30
Answer to question 3 use the command chmod to change permisions and the command chown to change the group and owner of the file. to learn more about this issue, type man chmod

Welcome to the free world.
Old 02-10-2004, 05:01 AM   #3
Senior Member
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Original Poster
Rep: Reputation: 45
Chmod works

I used chmod before, but it is rather slow to change files attributes. But anyway, ok it works. What does chown do? It sets the owner of the file, but what does that mean, why is it different if it says user instead fo root?

Ok that brings me to the second question.

My MySQL database is not behaving as it should. I can't connect to it from a remote computer. It says this "my IP" is not allowed to connect to "my servers IP". And on my computer I have to connect to MySQL only with the command mysql, because otherwise it says can not connect (user = bla bla)(password = YES). Connecting wtihout username and password works great, but that is not what I want to do.

Some help would be great!
Old 02-10-2004, 07:57 AM   #4
Registered: Aug 2003
Location: Essex, UK
Distribution: Windoze 2000, Fedora Core 3
Posts: 325

Rep: Reputation: 30
i never worked it out... when i applied a pass to the database it wouldnt allow me in! got the same error as your getting. personally it doesnt make any differance to me but it would be nice to have the option. in the end i was forced to scrap the install and start again to fix it... if you find out please email me and let me know

Old 02-10-2004, 08:40 AM   #5
Registered: Aug 2003
Location: Limbo
Posts: 54

Rep: Reputation: 15
this is actually in the mysql manual, but this is not a RTFM posting. You'll just be able to get better info there.

anyways, you should manually set the the host in mysql.user table that you want to connect from. Something like this

host | user | password
somehost.atyourdomain | username | fhgyroepd07gkekmg
otherhost.atyourdomain | username | fhgyroepd07gkekmg

notice that you can have multiple hosts mapped to the same username
Old 02-10-2004, 09:57 AM   #6
LQ Newbie
Registered: Oct 2003
Distribution: Red Hat 9
Posts: 24

Rep: Reputation: 15
to restrict people just change the permissions so that only admins can see the whole system and that only a user can see his home directory. have it make a group for each user and give only the user and admin read/write access.


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
Creating a webserver phillips321 Linux - Networking 5 07-18-2005 08:09 AM
a little help with my webserver, please metalgirsolid Linux - Software 2 05-11-2005 01:38 AM
webserver down sjrowe Linux - Newbie 2 08-07-2004 09:29 AM
Can't see WebServer from outside... Can see WebServer locally as http://localhost friddick Linux - Networking 13 08-19-2003 07:27 PM
what to do with my webserver acid2000 General 6 04-24-2003 09:38 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:17 PM.

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