LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-10-2009, 02:32 PM   #1
john_es
LQ Newbie
 
Registered: Mar 2009
Posts: 15

Rep: Reputation: 0
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
 
Old 03-11-2009, 05:24 AM   #2
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
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
 
Old 03-11-2009, 11:23 AM   #3
desertwebdesigns
LQ Newbie
 
Registered: Mar 2009
Distribution: Ubuntu, FC7, FC10
Posts: 5

Rep: Reputation: 0
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.
 
Old 03-11-2009, 11:28 AM   #4
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
Right click, My computer icon -->select, Map Network Drive
on this way also you can mount
 
Old 03-13-2009, 01:02 AM   #5
john_es
LQ Newbie
 
Registered: Mar 2009
Posts: 15

Original Poster
Rep: Reputation: 0
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:.
 
Old 03-13-2009, 03:52 AM   #6
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
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)
 
Old 03-13-2009, 04:10 AM   #7
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
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
 
Old 03-13-2009, 04:31 AM   #8
john_es
LQ Newbie
 
Registered: Mar 2009
Posts: 15

Original Poster
Rep: Reputation: 0
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
 
Old 03-13-2009, 04:57 AM   #9
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
Oh... my thought is wrong
Thanks John to gave this url
 
Old 03-13-2009, 05:26 AM   #10
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why Samba Server is sharing my Home folder? baig Linux - Security 2 12-18-2008 07:59 PM
XP cant map home drive to samba Samux Linux - Networking 3 02-27-2007 10:51 PM
Samba - Share definition on a folder under a home directory craig467 Linux - Software 9 06-07-2005 03:29 AM
Samba PDC Home folder pemission Problem mwj Linux - Software 0 01-28-2004 04:34 AM
Samba map drive home MichaelMWilson1 Linux - Networking 2 10-01-2003 08:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration