[csw-users] Per user directories

Eric Enright eric.enright at gmail.com
Thu Nov 9 20:25:42 CET 2006


While logged in as temp, can you get to /home/ecomStudent/public_html?

Eric


On 11/9/06, Manish Agrawal <magrawal at coba.usf.edu> wrote:
> -bash-3.00# cat /etc/passwd
> root:x:0:0:Super-User:/root:/usr/bin/bash
> daemon:x:1:1::/:
> bin:x:2:2::/usr/bin:
> sys:x:3:3::/:
> adm:x:4:4:Admin:/var/adm:
> lp:x:71:8:Line Printer Admin:/usr/spool/lp:
> uucp:x:5:5:uucp Admin:/usr/lib/uucp:
> nuucp:x:9:9:uucp Admin:/var/spool/uucppublic:/usr/lib/uucp/uucico
> smmsp:x:25:25:SendMail Message Submission Program:/:
> listen:x:37:4:Network Admin:/usr/net/nls:
> gdm:x:50:50:GDM Reserved UID:/:
> webservd:x:80:80:WebServer Reserved UID:/:
> nobody:x:60001:60001:NFS Anonymous Access User:/:
> noaccess:x:60002:60002:No Access User:/:
> nobody4:x:65534:65534:SunOS 4.x NFS Anonymous Access User:/:
> ecomStudent:x:100:10::/home/ecomStudent:/usr/bin/bash
> mysql:x:101:101::/opt/csw/mysql5:/bin/false
> temp:x:102:1::/export/home/temp:/usr/bin/bash
>
> Thanks
> Manish
>
> On Thu, 09 Nov 2006 14:12:02 -0500, Eric Enright <eric.enright at gmail.com> wrote:
>
> > On 11/9/06, Manish Agrawal <magrawal at coba.usf.edu> wrote:
> >> Thanks, I went back and changed /opt/csw/apache2/etc/extras/http-userdir.conf and changed the directory for permisssions from /home/*/public_html to /export/home/*/public_html
> >>
> >> Now, temp works:
> >> http://ecom.ismlab.usf.edu/~temp
> >>
> >> but my old account still does not work:
> >> http://ecom.ismlab.usf.edu/~ecomStudent
> >>
> >> All permissions in all directory pairs are identical:
> >> -bash-3.00$ ls -ld /export/home/temp /export/home/ecomStudent /export/home/temp/public_html /export/home/ecomStudent/public_html
> >> drwxr-xr-x  15 ecomStudent staff       1024 Nov  9 11:18 /export/home/ecomStudent
> >> drwxrwxrwx   2 ecomStudent staff        512 Nov  9 11:41 /export/home/ecomStudent/public_html
> >> drwxr-xr-x   3 temp     other        512 Nov  9 12:40 /export/home/temp
> >> drwxrwxrwx   3 temp     other        512 Nov  9 12:43 /export/home/temp/public_html
> >>
> >> Also, now I am a little confused because useradd never created any link or reference (or whatever is in /home) for /home/temp. I had created the ecomStudent account using the Solaris management console and temp account using useradd.
> >
> > Hmm, now I'm a little confused as to why it doesn't work.  As for
> > /home, directories get mounted there by the automounter.  See
> > /etc/auto_home.  SMC probably created an entry in there, while useradd
> > certainly does not.
> >
> > What are the user's home directories set to in /etc/passwd?
> >
> > Eric
> >
> >
> >> -bash-3.00$ ls -al /home
> >> total 5
> >> dr-xr-xr-x   2 root     root           2 Nov  9 11:13 .
> >> drwxr-xr-x  28 root     root        1024 Nov  9 13:08 ..
> >> drwxr-xr-x  15 ecomStudent staff       1024 Nov  9 11:18 ecomStudent
> >>
> >> Thanks
> >> Manish
> >>
> >>
> >> On Thu, 09 Nov 2006 12:50:35 -0500, Eric Enright <eric.enright at gmail.com> wrote:
> >>
> >> > On 11/9/06, Manish Agrawal <magrawal at coba.usf.edu> wrote:
> >> >> I had tried that before, and have done it again, but it does not help:
> >> >>
> >> >> -bash-3.00$ ls -al | grep public_html
> >> >> drwxr-xr-x   2 ecomStudent staff        512 Nov  9 11:41 public_html
> >> >>
> >> >> http://ecom.ismlab.usf.edu/~ecomStudent
> >> >
> >> > eric at dantrag:~ $ ls -ld /home /home/eric /home/eric/public_html
> >> > drwxr-xr-x  11 root     root         512 Sep  7 21:19 /home/
> >> > drwx--x--x  85 eric     other       5120 Nov  3 20:40 /home/eric/
> >> > drwxr-xr-x  25 eric     other       3584 Nov  8 00:35 /home/eric/public_html/
> >> >
> >> > Works for me.  Can you access any of the files inside of this
> >> > directory by typing it's URL?
> >> >
> >> > Regards,
> >> > Eric
> >> >
> >> >>
> >> >> Thanks
> >> >> Manish
> >> >>
> >> >> On Thu, 09 Nov 2006 12:05:05 -0500, Eric Enright <eric.enright at gmail.com> wrote:
> >> >>
> >> >> > On 11/9/06, Manish Agrawal <magrawal at coba.usf.edu> wrote:
> >> >> >> I am trying to get per-user directories in Apache2 (Solaris x86). I have cswapache2 running:
> >> >> >>
> >> >> >> -bash-3.00# svcs -a | grep apa
> >> >> >> legacy_run     17:23:56 lrc:/etc/rc3_d/S50apache
> >> >> >> disabled       17:22:58 svc:/network/http:apache2
> >> >> >> online         11:29:36 svc:/network/http:cswapache2
> >> >> >>
> >> >> >> In /opt/csw/apache2/etc/httpd.conf, I have uncommented line 457:
> >> >> >> Include etc/extra/httpd-userdir.conf.
> >> >> >>
> >> >> >> I had an existing account called ecomStudent on the machine. I created a directory public_html in the home directory (/home/ecomStudent) and put an index.html file in the public_html directory:
> >> >> >>
> >> >> >> -bash-3.00$ pwd
> >> >> >> /home/ecomStudent/public_html
> >> >> >> -bash-3.00$ ls -al
> >> >> >> total 6
> >> >> >> drwxr--r--   2 ecomStudent staff        512 Nov  9 11:41 .
> >> >> >> drwxr-x---  15 ecomStudent staff       1024 Nov  9 11:18 ..
> >> >> >> -rw-r--r--   1 ecomStudent staff         64 Nov  9 11:41 index.html
> >> >> >>
> >> >> >> However, when I try to access the file:
> >> >> >> http://ecom.ismlab.usf.edu/~ecomStudent/
> >> >> >>
> >> >> >> I get a 403 Forbidden error: You don't have permission to access /~ecomStudent/ on this server.
> >> >> >
> >> >> > public_html needs execute permissions for group and other.
> >> >> >
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> Manish Agrawal
> >> >> Asstt. Prof., Dept. of ISDS, Univ. of South Florida
> >> >> 4202 E. Fowler Ave., CIS 1040, Tampa, Fl 33620 - 7800, U.S.A.
> >> >> (813)-974-6716 (W) 974-6749 (FAX) magrawal at coba.usf.edu
> >> >> http://coba.usf.edu/departments/isds/faculty/agrawal/index.html
> >> >> _______________________________________________
> >> >> users mailing list
> >> >> users at lists.blastwave.org
> >> >> https://lists.blastwave.org/mailman/listinfo/users
> >> >>
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >> Manish Agrawal
> >> Asstt. Prof., Dept. of ISDS, Univ. of South Florida
> >> 4202 E. Fowler Ave., CIS 1040, Tampa, Fl 33620 - 7800, U.S.A.
> >> (813)-974-6716 (W) 974-6749 (FAX) magrawal at coba.usf.edu
> >> http://coba.usf.edu/departments/isds/faculty/agrawal/index.html
> >> _______________________________________________
> >> users mailing list
> >> users at lists.blastwave.org
> >> https://lists.blastwave.org/mailman/listinfo/users
> >>
> >
> >
>
>
>
> --
> Manish Agrawal
> Asstt. Prof., Dept. of ISDS, Univ. of South Florida
> 4202 E. Fowler Ave., CIS 1040, Tampa, Fl 33620 - 7800, U.S.A.
> (813)-974-6716 (W) 974-6749 (FAX) magrawal at coba.usf.edu
> http://coba.usf.edu/departments/isds/faculty/agrawal/index.html
> _______________________________________________
> users mailing list
> users at lists.blastwave.org
> https://lists.blastwave.org/mailman/listinfo/users
>


-- 
Eric Enright



More information about the users mailing list