Could someone tell me what the /home/<user>/public_html folder is for? I beleive mine was created when I setup myself as a user. Its empty! Just curious. Thanks Matt
On Wednesday 03 September 2003 19:51, Matt Stamm wrote:
Could someone tell me what the /home/<user>/public_html folder is for? I beleive mine was created when I setup myself as a user. Its empty!
Just put your web-pages in there, and then go to localhost/~yourname/ and they will appear automagically. It's a way of allowing all users access to a webserver without having to open up permissions on the main webserver at /srv/www. -- Best wishes Kevin Donnelly www.kyfieithu.co.uk - Meddalwedd Rydd yn Gymraeg
The 03.09.03 at 21:31, Kevin Donnelly wrote:
Just put your web-pages in there, and then go to localhost/~yourname/ and they will appear automagically. It's a way of allowing all users access to a webserver without having to open up permissions on the main webserver at /srv/www.
On the other hand, you need world readable access on /home/user/, and I don't think that's a good idea either :-? -- Cheers, Carlos Robinson
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 3 Sep 2003 23:58:50 +0200 (CEST) "Carlos E. R." <robin1.listas@tiscali.es> wrote:
On the other hand, you need world readable access on /home/user/, and I don't think that's a good idea either :-?
Yes this is true, however you can set the permissions of all your other files in your home directory to 600 and directories to 700. Charles - -- "Even more amazing was the realization that God has Internet access. I wonder if He has a full newsfeed?" (By Matt Welsh) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/VoCK3epPyyKbwPYRAmZ9AKClvUKX7o/G1h8jTTLLb9LF84zRywCfbn+v V+kwf1sc3sAchIoKViX9PGg= =ecBc -----END PGP SIGNATURE-----
The 03.09.03 at 20:00, Charles Philip Chan wrote: El 2003-09-03 a las 20:00, Charles Philip Chan escribió:
On the other hand, you need world readable access on /home/user/, and I don't think that's a good idea either :-?
Yes this is true, however you can set the permissions of all your other files in your home directory to 600 and directories to 700.
Yes, but I can forget. And, would this be a multiuser server, not every body would remember, either. What I did once is set another directory, like "/srv/www/local/" instead. Then, in "/etc/httpd/suse_public_html.conf" I change: #<Directory /home/*/public_html> <Directory /srv/www/local/*> -- Cheers, Carlos Robinson
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 4 Sep 2003 02:19:33 +0200 (CEST) "Carlos E. R." <robin1.listas@tiscali.es> wrote:
What I did once is set another directory, like "/srv/www/local/" instead. Then, in "/etc/httpd/suse_public_html.conf" I change:
Yes, this a better solution. On a related security note, I still don't know why SuSE doesn't use "user privacy groups". This is alway the first thing I change when I setup a new SuSE machine. Charles - -- But what can you do with it? -- ubiquitous cry from Linux-user partner. (Submitted by Andy Pearce, ajp@hpopd.pwd.hp.com) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/VohH3epPyyKbwPYRAsXOAJ9Xc/4egcOEy+buZFxB/YsCnDe7rQCghP55 /EGVtcjCNxuTXW542NvbUGw= =fjAH -----END PGP SIGNATURE-----
On Thursday 04 September 2003 01:33, Charles Philip Chan wrote:
Yes, this a better solution. On a related security note, I still don't know why SuSE doesn't use "user privacy groups". This is alway the first thing I change when I setup a new SuSE machine.
For reference, what changes do you make? -- Best wishes Kevin Donnelly www.kyfieithu.co.uk - Meddalwedd Rydd yn Gymraeg
On Thu, 4 Sep 2003 10:49:24 +0100 Kevin Donnelly <kevin@dotmon.com> wrote:
For reference, what changes do you make?
Actually I should say that user private groups are more for convenience and ease of security. This is the only thing that I really liked about Redhat (I was using Redhat until version 5.x when I switched to SuSE). What I did was to change the default umask to 002 in /etc/profile.local. Now every time I add a user, I first create a group for the user with the some name and set that to the user's primary group. The rationale behind it is here: http://www.redhat.com/docs/manuals/linux/RHL-7.3-Manual/ref-guide/s1-users-g... Charles -- Dijkstra probably hates me (Linus Torvalds, in kernel/sched.c)
On Thu, 4 Sep 2003 10:49:24 +0100 Kevin Donnelly <kevin@dotmon.com> wrote:
For reference, what changes do you make?
Actually I should say that user private groups are more for convenience and ease of security. This is the only thing that I really liked about Redhat (I was using Redhat until version 5.x when I switched to SuSE). What I did was to change the default umask to 002 in /etc/profile.local. Now every time I add a user, I first create a group for the user with the some name and set that to the user's primary group. The rationale behind it is here: http://www.redhat.com/docs/manuals/linux/RHL-7.3-Manual/ref-guide/s1-users-g... Charles -- Dijkstra probably hates me (Linus Torvalds, in kernel/sched.c)
On Thursday 04 September 2003 01:19, Carlos E. R. wrote:
On the other hand, you need world readable access on /home/user/, and I don't think that's a good idea either :-?
I was assuming from what he said that he's on a standalone or LAN, where that doesn't matter so much. And for beginners, using public_html is much easier than sorting out the permissions on the main server dir.
El 2003-09-03 a las 20:00, Charles Philip Chan escribió:
Yes this is true, however you can set the permissions of all your other files in your home directory to 600 and directories to 700.
Yes, but I can forget. And, would this be a multiuser server, not every body would remember, either.
What I did once is set another directory, like "/srv/www/local/" instead. Then, in "/etc/httpd/suse_public_html.conf" I change:
#<Directory /home/*/public_html> <Directory /srv/www/local/*>
This is an interesting tip. -- Best wishes Kevin Donnelly www.kyfieithu.co.uk - Meddalwedd Rydd yn Gymraeg
The 03.09.04 at 10:47, Kevin Donnelly wrote:
I was assuming from what he said that he's on a standalone or LAN, where that doesn't matter so much. And for beginners, using public_html is much easier than sorting out the permissions on the main server dir.
In my case, I like to learn and keep good habits: I use my home machine for learning.
This is an interesting tip.
But now it doesn't work: it worked in 8.1, but it stopped working after I upgraded to suse 8.2. I'll have to check around. -- Cheers, Carlos Robinson
participants (4)
-
Carlos E. R.
-
Charles Philip Chan
-
Kevin Donnelly
-
Matt Stamm