LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Samba: How to map home folder to somethign other than Z:\ (https://www.linuxquestions.org/questions/linux-server-73/samba-how-to-map-home-folder-to-somethign-other-than-z-%5C-710565/)

john_es 03-10-2009 02:32 PM

Samba: How to map home folder to somethign other than Z:\
 
I have samba running on ubuntu 8.10, and I can login with my XP box.
When I do, the home folder for the user is mapped to Z:\

How can I map the home folders to say M:\ or U:\ (something other than Z:\)?

Thanks,
John

chitambira 03-11-2009 05:24 AM

You filder if mapped automatical;ly at login by a logon script invoked by samba, or may be the directive is within your samba smb.conf file. Check for:
logon drive =
logon home =


You can manually map the drive any time with:
net use M: \\servername\yourhomedir

desertwebdesigns 03-11-2009 11:23 AM

My Computer > Tools > Map Network Drive

There you can set the drive letter for the drive you want to map as well ass the server you're mapping to.

kirukan 03-11-2009 11:28 AM

Right click, My computer icon -->select, Map Network Drive
on this way also you can mount

john_es 03-13-2009 01:02 AM

So you are saying I can put:
net use M: \\servername\yourhomedir

into my smb.conf file?

I'll test that out, and if so, that's awesome.

Regarding the last two comments, first thanks - I appreciate the responses. I know I can do it that way, but I wa looking for a way to set teh default to something other than Z:.

kirukan 03-13-2009 03:52 AM

i dont think that you can use "net use M: \\servername\yourhomedir" in your smb.conf actually this is a DOS command. chitambira has mentioned on his post, you can manually mount drive on your remote machine using this command.
check there is a option for selecting drive (in default dirve Z is there but you can select anyone in the list if not mounted already)

chitambira 03-13-2009 04:10 AM

Quote:

You filder if mapped automatical;ly at login by a logon script invoked by samba, or may be the directive is within your samba smb.conf file. Check for:
logon drive = M:
logon home = \\%N\%U

You can manually map the drive any time with:
net use M: \\servername\yourhomedir
Here is what I mearnt:
-The first two options you can use in your smb.conf file
-The last is a dos command to map it manually on a Windows client

john_es 03-13-2009 04:31 AM

Oh...
I thought logon drive, logon home were ignored if roaming profiles were disabled.

I did find this page that I am reading now... http://oreilly.com/catalog/samba/cha...k/ch06_06.html

kirukan 03-13-2009 04:57 AM

Oh... my thought is wrong
Thanks John to gave this url

chitambira 03-13-2009 05:26 AM

Logon path is the one which is mandatory when roaming profiles are enabled,
but logon drive and logon home are not tied to roaming profiles (only)

Kirukan
Quote:

Oh... my thought is wrong
Which thought is wrong? You cannot put net use M: in smb.conf because its a DOS command. logon scripts are windows batch scripts which you store on your samba server, but are executed by windows as the user logs on, so they mean nothing to linux, but are only read and executed as windows command at the client side.

So nothing is new at this point. My first post still holds. using batch scripts (logon scripts)is equivalent to running net use M: manually soon after logging in, only difference is that in this case, the admin is automatically doing it for all users (which is the essence of scripting).


All times are GMT -5. The time now is 07:07 PM.