Samba: How to map home folder to somethign other than Z:\
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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:.
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)
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
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).
Last edited by chitambira; 03-13-2009 at 05:27 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.