Koozali.org: home of the SME Server

Ibays

Bob

Ibays
« on: October 12, 2002, 06:12:16 AM »
When I create an Ibay, sometimes I can't see the the "cgi-bin, files, html" directories from the windows machine. If I go in as root they are there.
I have done this a thousand times but only recently I have come across this problem. I can't work out what I am doing wrong.

Also how do you change the users home drive to not use the standard path "home/e-smith/files/users/name" but instead use and Ibay with a directory created for them. "home/e-smith/files/ibays/data/user_name" without mapping the home drive that the login script rpm puts in automatically.

Thanks in advance.

Damien Curtain

Re: Ibays
« Reply #1 on: October 12, 2002, 06:58:33 AM »
Bob wrote:
>
> When I create an Ibay, sometimes I can't see the the
> "cgi-bin, files, html" directories from the windows machine.
> If I go in as root they are there.
> I have done this a thousand times but only recently I have
> come across this problem. I can't work out what I am doing
> wrong.
>

Nothing wrong. The behaviour is different depending on whether you've enabled web access. If you haven't the root path is within the ibay/files directory because it assumes your only using the ibay as a samba share therefore do not want to see the 3 dirs, just 1.

> Also how do you change the users home drive to not use the
> standard path "home/e-smith/files/users/name" but instead use
> and Ibay with a directory created for them.
> "home/e-smith/files/ibays/data/user_name" without mapping the
> home drive that the login script rpm puts in automatically.

set the property LogonHome for the smb service, to something like \%L\data\%U may work...

eg.
/sbin/e-smith/db configuration setprop smb LogonHome \%L\data\%U
/sbin/e-smith/expand-template /etc/smb.conf
--
 Damien

Damien Curtain

Re: Ibays
« Reply #2 on: October 12, 2002, 07:12:54 AM »
Damien Curtain wrote:
>
> Bob wrote:
> >

>
> > Also how do you change the users home drive to not use the
> > standard path "home/e-smith/files/users/name" but instead use
> > and Ibay with a directory created for them.
> > "home/e-smith/files/ibays/data/user_name" without mapping the
> > home drive that the login script rpm puts in automatically.
>
> set the property LogonHome for the smb service, to something
> like \%L\data\%U may work...
>
> eg.
> /sbin/e-smith/db configuration setprop smb LogonHome
> \%L\data\%U
> /sbin/e-smith/expand-template /etc/smb.conf

Actually no thats wrong you want to change the actual home directory.... Ignore what I said

I thought ou couldn't map a subdir of a samba share.
--
 Damien

Damien Curtain

Re: Ibays
« Reply #3 on: October 12, 2002, 07:25:19 AM »
Damien Curtain wrote:
>
> Damien Curtain wrote:
> >
> > Bob wrote:
> > >
>
> >
> > > Also how do you change the users home drive to not use the
> > > standard path "home/e-smith/files/users/name" but instead
> use
> > > and Ibay with a directory created for them.
> > > "home/e-smith/files/ibays/data/user_name" without mapping
> the
> > > home drive that the login script rpm puts in automatically.
> >
> > set the property LogonHome for the smb service, to something
> > like \%L\data\%U may work...
> >
> > eg.
> > /sbin/e-smith/db configuration setprop smb LogonHome
> > \%L\data\%U
> > /sbin/e-smith/expand-template /etc/smb.conf
>
> Actually no thats wrong you want to change the actual home
> directory.... Ignore what I said
>
> I thought ou couldn't map a subdir of a samba share.

Last clueless post of the day I promise...

Duh of course you can, so what you'd so is make a custom template for /etc/e-smith/templates/etc/smb.conf/50homes and change the path line to

path = /home/e-smith/files/ibays/data/files/%S

But you probably have to create the directory for each user within the files dir before they can login with it.
--
 Damien

Bob

Re: Ibays
« Reply #4 on: October 12, 2002, 07:47:22 AM »
Thanks Damien,
Makes sense now.