Samba: I don't want Z:!

Cerb

Elite Member
Aug 26, 2000
17,484
33
86
The Z: home drive when using Samba as a DC (Windows 2000 client) is immensely annoying. I want it to be disabled, but I also want to be able to access the user's home directory (\\server\cerbie). The included code gets rid of Z, but the home folder share is not accessible. However, if I set the logon home, I get Z again, even though logon drive is blank.

Google helped in getting rid of Z, but not in getting the home folder access back.
 

idea

Golden Member
Apr 15, 2001
1,100
0
0
I have no idea what you are asking. The Z: drive is the first drive Win2k will give your network'd drive only if you request it to be mapped. If you don't want it, why did you make Windows map it? And if you want it unmapped, why don't you just right-click on the Z: drive in My Computer and click "Disconnect?"

Also, why is the Z: drive annoying? What exactly makes it annoying? Is it just annoying to see it in your list of drives? Is it causing errors?

Is there something you are not telling us?
 

Cerb

Elite Member
Aug 26, 2000
17,484
33
86
Originally posted by: idea
I have no idea what you are asking. The Z: drive is the first drive Win2k will give your network'd drive only if you request it to be mapped.
Wrong. Samba makes it. If it just made it and did not make it some kind of default path, it'd be fine.

If you don't want it, why did you make Windows map it? And if you want it unmapped, why don't you just right-click on the Z: drive in My Computer and click "Disconnect?"
If I do, it comes right back, even if the logon.bat (currently blank) is set to unmap it as soon as I log on.

Also, why is the Z: drive annoying? What exactly makes it annoying? Is it just annoying to see it in your list of drives? Is it causing errors?
IMO, yes, and I'm willing to blame this part on on MS.

Let us say I'm in C:\images, and run convert image1.jpg -resample 50x80 image2.jpg

Does it save it to C:\images\image2.jpg? No, it saves it to Z:\image2.jpg. If Z is not mapped by Samba, all is well, and I can use CLI programs like normal. It's also just annoying that I want every save as dialog (ones that save state between application starts work fine) to start in My Documents, and not in Z:, as it can severely slow things down sometimes (if I haven't done much on the network recently, FI, it will spend several seconds populating the combo box in open/save dialogs).
Is there something you are not telling us?
Don't think so--AFAIK, it's something I can't figure out from docs and Googling, but it seems like it must be possible.

Here's an informative link, but doesn't help get rid of it (I just want to use my local C:\Documents and Settings\cerbie as my home), as the OP actually has a separate drive for that purpose: http://www.gatago.com/linux/samba/14517968.html
 

cleverhandle

Diamond Member
Dec 17, 2001
3,566
3
81
To clarify... have you ever had access to \\home\cerbie (using that name, not accessing the directory automatically through the logon home)?
 

Cerb

Elite Member
Aug 26, 2000
17,484
33
86
Assuming \\home is the server, yes.

Right now I don't, but it's clearly because of the smb.conf changes I've made (it's there, but inaccessible). Said folder mapped to /home/cerbie, the local home folder for that user on the server itself. It is still there and accessible when I ssh in.
 

cleverhandle

Diamond Member
Dec 17, 2001
3,566
3
81
So, if I understand this correctly...

Your username is "cerbie", which matches the Unix home directory "/home/cerbie" for Unix user "cerbie". If you set logon path = "", logon home = "", and comment out logon drive entirely then you can authenticate to the server, and can see but cannot access \\server\cerbie. If that is correct (please check), what do you have in the [homes] section of smb.conf?
 

Cerb

Elite Member
Aug 26, 2000
17,484
33
86
The username is cerbie.

If the logon drive is commented, Z: is created (it's a default). If it is set to nothing, Z is not created.

If the logon home and logon path are blank, \\server\cerbie exists, but is not accessible. If logon drive is not set blank, Z is not accessible (not access denied, but inaccessable as in a network resource no longer there), as well (they should go to the same place, so that makes sense).

If logon home is set, Z gets created and made home even if logon drive is blank. I will try commenting out logon home, and have logon drive blank, in a bit; I don't think I've tried that combo.
[homes]
comment = Home Directories
read only = No
browseable = No
hide dot files = yes
 

cleverhandle

Diamond Member
Dec 17, 2001
3,566
3
81
By "blank" do you mean unset or set to "" ? The manual page says to use "" to disable the feature.
 

Cerb

Elite Member
Aug 26, 2000
17,484
33
86
I mean just as it is in the attached code. "" and white space seem to have the same behavior.