Koozali.org: home of the SME Server

Home Drive Letter & Kixtart Login Scripts

Offline rmclay

  • *
  • 10
  • +0/-0
Home Drive Letter & Kixtart Login Scripts
« on: September 23, 2007, 11:26:21 AM »
Hi guys,

I am currently running SME 7.2 and wish to move the home drive letter from Z: to H:, I hav tried to modify the smb.conf by running:

root@host[~]# mkdir -p /etc/e-smith/templates-custom/etc/samba/smb.conf/
root@host[~]# cp /etc/e-smith/templates/etc/samba/smb.conf/11logondrive  /etc/e-smith/templates-custom/etc/samba/smb.conf/11logondrive
root@host[~]# /sbin/e-smith/expand-template /etc/samba/smb.conf

yet smb.conf still shows logonDrive = Z:

What am I doing wrong...?

Secondly, I have been using kixtart (http://www.kixtart.org) for my login scripts.  For some reason, it fails to pick up the group membership of any user.  I have an ITDEPT group with user jdoe, when testing this on a windows server, the script line InGroup("ABCLTD\ITDEPT") works ok, but not on SME server.  I was wondering how SME passed it's group membership data to Windows...? My appologies if this is not related to SME, if so, I'll report it on the Kix forums.

Thanks,
Robert

Offline jumba

  • *****
  • 291
  • +0/-0
  • Donations: July 2007 - $ 20.00
    • Smeserver på svenska!
Re: Home Drive Letter & Kixtart Login Scripts
« Reply #1 on: September 23, 2007, 02:28:53 PM »

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Home Drive Letter & Kixtart Login Scripts
« Reply #2 on: September 23, 2007, 10:37:53 PM »
All those solutions are being covered in http://www.sonoracomm.com/index.php?option=com_content&task=view&id=152&Itemid=32 I think...
Drum-roll... and that is why we have the bug tracker and her we find bug 1155. :-) Since SME Server 7.1 update 1 the logon drive mapping is templated and has a database entry:

Code: [Select]
db configuration setprop smb LogonDrive h
expand-template /etc/samba/smb.conf
service smb restart

Logging out and on again on a windows system should now map your home drive to h: instead of z:.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Home Drive Letter & Kixtart Login Scripts
« Reply #3 on: September 23, 2007, 10:41:36 PM »
Secondly, I have been using kixtart (http://www.kixtart.org) for my login scripts.  For some reason, it fails to pick up the group membership of any user.  I have an ITDEPT group with user jdoe, when testing this on a windows server, the script line InGroup("ABCLTD\ITDEPT") works ok, but not on SME server.  I was wondering how SME passed it's group membership data to Windows...? My appologies if this is not related to SME, if so, I'll report it on the Kix forums.
For this to work you should have SME Server provide a domain and you should join the Windows server to it. Than there should be a list of users and groups defined which are taken from SME Server and can be managed per server-manager.

If you are not in a domain every PC has it's own list of users and groups defined, which they cater access to. As they are unaware of users and groups (and their contents) as they exist on other computers in your network they can only use the local defined users and groups and hence could work on one system and fail on another one.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline rmclay

  • *
  • 10
  • +0/-0
Re: Home Drive Letter & Kixtart Login Scripts
« Reply #4 on: September 23, 2007, 11:31:57 PM »
Hi Cactus,

I have created the ABCCORP domain and my PC is on it.  As per the kix manual, I have the line:

If InGroup("ABCCORP\ITDEPT")
 use G: \\smeserver\ghost
EndIf

I'm not sure if this is how SME does the groups, but from reading online and checking some config files, I can't see why this is failing...  Thanks to everyone for the swift responses so far.

I now have H: Drives for home  :-D

Cheers,
Robert

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Home Drive Letter & Kixtart Login Scripts
« Reply #5 on: September 23, 2007, 11:41:22 PM »
Hi Cactus,

I have created the ABCCORP domain and my PC is on it.  As per the kix manual, I have the line:

If InGroup("ABCCORP\ITDEPT")
 use G: \\smeserver\ghost
EndIf
This should be the way every windows domain server handles group/user requests and is in fact SME Server does it when typd in when prompted. Assuming that KIX works the same this might be a KIX issue, perhaps some other user or the KIX forums can shed a light on this. I am not familiar with it.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
Re: Home Drive Letter & Kixtart Login Scripts
« Reply #6 on: September 24, 2007, 03:26:16 AM »
I have been using a modified loginscript contrib from SME6.0 for years now.

It is not an official release but one myself and ... jbennett fixed up for SME7.0 .... the link is:

http://mirror.contribs.org/smeserver/contribs/jbennett/sme7/loginscript/RPM/

One day I will try and push this to the dev team and hope ppl will take it on as it is very handy.

Works no problem with SME7.2.

I have played around with kixtart on windows and works well ... only briefly tryed to get it to work on SME but didn't have time to try and get it to run.

Regards,

Tib

Offline jdavey

  • ***
  • 43
  • +0/-0
Re: Home Drive Letter & Kixtart Login Scripts
« Reply #7 on: September 24, 2007, 07:07:17 PM »
Tib's right. Use the contrib he's mentioned: http://mirror.contribs.org/smeserver/contribs/jbennett/sme7/loginscript/RPM/
I've used it in more than 20 networks, and it's quick and easy to tailor to your specific needs.
...

Offline rmclay

  • *
  • 10
  • +0/-0
Re: Home Drive Letter & Kixtart Login Scripts
« Reply #8 on: September 29, 2007, 11:23:11 PM »
Hi Cactus,

I have now corrected the ingroup problems.  Thanks for that.

I'm now trying to move the Z: drive to H:, but still no luck.  When I run

root@host[~]# db configuration setprop smb LogonDrive h
root@host[~]# expand-template /etc/samba/smb.conf
root@host[~]# service smb restart

And reboot my workstation, the Z: drive still remains an no H: is mapped.  I copied and pasted these lines straight into a putty session, so cannot see why this is causing issues.

Thanks again,
Robert

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
Re: Home Drive Letter & Kixtart Login Scripts
« Reply #9 on: September 30, 2007, 03:21:22 AM »
if the instructions in the wiki don't work, please raise a bug
http://wiki.contribs.org/SME_Server:Documentation:Administration_Manual:Chapter7#Setting_up_network_drives

this is how my netlogon.bat is setup
I have no Z drive
nor any smb property