Koozali.org: home of the SME Server

User Drive "Z" on windows 7

Offline darmasanthi

  • ****
  • 139
  • +0/-0
User Drive "Z" on windows 7
« on: September 07, 2012, 02:10:28 PM »
Hi,
I just installed a fresh SME 8.0, and joining windows 7 to the SME domain,
all running well, except the User Drive "Z".

i cannot find the user drive "Z"

regards,
darmasanthi

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: User Drive "Z" on windows 7
« Reply #1 on: September 08, 2012, 07:57:15 AM »
IIRC the home drive is mapped as H: by default for SME Server. Do you have a H-drive?

When logged in as root, what does this command show:
Code: [Select]
db configuration getprop smb LogonDrive
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 darmasanthi

  • ****
  • 139
  • +0/-0
Re: User Drive "Z" on windows 7
« Reply #2 on: September 13, 2012, 12:53:01 PM »
IIRC the home drive is mapped as H: by default for SME Server. Do you have a H-drive?

When logged in as root, what does this command show:
Code: [Select]
db configuration getprop smb LogonDrive

Hi cactus,
i am not see any result
as i know, on SME 7.xx the user home drive is become "z" drive,
but i am not see any drive indicated as home drive for the user

regards,
darmasanthi

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: User Drive "Z" on windows 7
« Reply #3 on: September 13, 2012, 02:13:54 PM »
Hi cactus,
i am not see any result
as i know, on SME 7.xx the user home drive is become "z" drive,
but i am not see any drive indicated as home drive for the user

regards,
darmasanthi

the variable seems to be WinNTLogonDrive

anyway
Code: [Select]

[root@fileserver ~]$ more /etc/e-smith/templates/etc/smb.conf/22logondrive

   logon drive = { defined($WinNTLogonDrive) ? $WinNTLogonDrive . ':' : 'h:' }


be sure your pc has not any physical H: drive

if it doesn't work, file a bug, thank you

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: User Drive "Z" on windows 7
« Reply #4 on: September 13, 2012, 10:05:16 PM »
the variable seems to be WinNTLogonDrive

anyway
Code: [Select]

[root@fileserver ~]$ more /etc/e-smith/templates/etc/smb.conf/22logondrive

   logon drive = { defined($WinNTLogonDrive) ? $WinNTLogonDrive . ':' : 'h:' }

That is strange, that file is not on my SME Server 8 machine, I only have:

Code: [Select]
[root@smetest ~] cat /etc/e-smith/templates/etc/smb.conf/11logonDrive
{
    $drive = $smb{LogonDrive} || 'Z';
    return "logon drive = ${drive}:";
}
[root@smetest ~]# rpm -qf /etc/e-smith/templates/etc/smb.conf/11logonDrive
e-smith-samba-2.2.0-48.el5.sme
[root@smetest ~]#

Apart from that the file you are mentioning is not in CVS

I find my fragment in the source tree however:
Code: [Select]
[jonathan@build2 e-smith-samba-2.2.0]$ root/etc/e-smith/templates/etc/smb.conf/22*
-bash: root/etc/e-smith/templates/etc/smb.conf/22*: No such file or directory
[jonathan@build2 e-smith-samba-2.2.0]$

I find my fragment in the source tree however:
Code: [Select]
[jonathan@build2 e-smith-samba-2.2.0]$ root/etc/e-smith/templates/etc/smb.conf/22*
-bash: root/etc/e-smith/templates/etc/smb.conf/22*: No such file or directory
[jonathan@build2 e-smith-samba-2.2.0]$ cat root/etc/e-smith/templates/etc/smb.conf/11logonDrive
{
    $drive = $smb{LogonDrive} || 'Z';
    return "logon drive = ${drive}:";
}
[jonathan@build2 e-smith-samba-2.2.0]$
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: User Drive "Z" on windows 7
« Reply #5 on: September 13, 2012, 10:12:44 PM »
i am not see any result
as i know, on SME 7.xx the user home drive is become "z" drive,
but i am not see any drive indicated as home drive for the user
If nothing is set, it should be set to Z by default, according to the code of the template fragment in CVS. You can check that by running the following command when logged in as root:
Code: [Select]
grep "logon drive" /etc/samba/smb.conf
Are you sure the PC is in the domain (I think this does not work for workgroups) and there is no other drive mapped or assigned to 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 darmasanthi

  • ****
  • 139
  • +0/-0
Re: User Drive "Z" on windows 7
« Reply #6 on: September 14, 2012, 07:00:40 AM »
If nothing is set, it should be set to Z by default, according to the code of the template fragment in CVS. You can check that by running the following command when logged in as root:
Code: [Select]
grep "logon drive" /etc/samba/smb.conf
Are you sure the PC is in the domain (I think this does not work for workgroups) and there is no other drive mapped or assigned to Z:?

Hi cactus,
For workstation with Win XP is working fine, i can see the "Z" drive,
it only happen on the Win7 Ultimate as workstation (the pc are already join to the domain)

rgds,
darmasanthi

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: User Drive "Z" on windows 7
« Reply #7 on: September 14, 2012, 10:19:04 AM »
ok.. my fault:

Code: [Select]
[root@fileserver smb.conf]$ pwd
/etc/e-smith/templates/etc/smb.conf
[root@fileserver smb.conf]$ ls -la *logon*
-rw-r--r-- 1 root root  80 Dec 15  2007 11logonDrive
-rw-r--r-- 1 root root 532 Jan 29  2012 11logonHome
-rw-r--r-- 1 root root 482 Jan 29  2012 11logonPath
-rw-r--r-- 1 root root 360 Jan 29  2012 11logonScript
-rw-r--r-- 1 root root  81 Aug 30  2001 22logondrive
-rw-r--r-- 1 root root 222 Jan 29  2012 61netlogonshare
[root@fileserver smb.conf]$ rpm -qf 11logonDrive
e-smith-samba-2.2.0-48.el5.sme
[root@fileserver smb.conf]$ rpm -qf 22logondrive
smeserver-loginscript-0.2-8
[root@fileserver smb.conf]$ more 11logonDrive
{
    $drive = $smb{LogonDrive} || 'Z';
    return "logon drive = ${drive}:";
}
[root@fileserver smb.conf]$ more 22logondrive

   logon drive = { defined($WinNTLogonDrive) ? $WinNTLogonDrive . ':' : 'h:' }