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 02-20-2012, 08:05 AM   #1
reckless2k2
LQ Newbie
 
Registered: Jul 2006
Location: Yardley, PA.
Distribution: Ubuntu, CentOS, Slackware, openSUSE
Posts: 25

Rep: Reputation: 0
Samba mount home as home for each user


I haven't been able to recreate this in my own environment but my business does this. How can I mount each users home directory as home?

User1
Work environment:
//server/home

Home environment:
//server/user1

User2
Work environment:
//server/home

Home environment:
//server/user2
 
Old 02-20-2012, 08:32 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Can you please explain in more detail what you actually mean? what is the significance of these "environments"?
 
Old 02-20-2012, 08:43 AM   #3
reckless2k2
LQ Newbie
 
Registered: Jul 2006
Location: Yardley, PA.
Distribution: Ubuntu, CentOS, Slackware, openSUSE
Posts: 25

Original Poster
Rep: Reputation: 0
"environment" merely means just that.

At work, everyone connects using //server/home no matter that user at each terminal they log in at.

At home, my users can only connect using //server/theirusername.

I'm not sure if it's a setting in the samba config that enables the network login to see the user login and map as //server/home rather than //server/theirusername at work.

At home, users in my network at home can only connect using //server/theirusername for each user.
 
Old 02-20-2012, 08:51 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
it doesn't mean "just that". I'm still unsure what you actually mean. What do you mean by connect? That's a cifs share, so how does a user choose it? Are these users the same people? Is that relevent? Do all your colleagues also live in your house? Please give specific terms, not generalizations that can be taken in many different ways.

Last edited by acid_kewpie; 02-20-2012 at 08:52 AM.
 
Old 02-20-2012, 01:35 PM   #5
reckless2k2
LQ Newbie
 
Registered: Jul 2006
Location: Yardley, PA.
Distribution: Ubuntu, CentOS, Slackware, openSUSE
Posts: 25

Original Poster
Rep: Reputation: 0
At work, my business has Samba running off of a Linux box and Windows users for the entire business map from their individual Windows desktop machines using "map network drive" to their home share on the Linux box using //server/home.

So my user is reckless2k2 and I map using //server/home rather than //server/reckless2k2. Any other user at my work maps using //server/home and never have to put in their username after the //server. Like Jenny doesn't map the network drive as //server/jenny. She's maps the network drive on her Windows machine at work as //server/home.

At my house, I have Samba running on a Linux box and Windows machines mapping their network drives but they can't map //server/home. So my user at home is reckless2k2 and I have to map using //server/reckless2k2.

Why is that? I assume it has something to do with a config in the Samba file. At home, I'd like any of my users to map to their Samba share using only //server/home. I assume the Linux box has to understand that reckless2k2 is mapping so it can map using //server/home rather than //server/reckless2k2.

Primary domain controller must be on the Samba box? OpenLDAP must be on the Linux box?
 
Old 02-20-2012, 03:31 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Well that wasn't at all what I thought you meant, I would have guessed this was Linux clients to a Windows server.

I think you're referring to the [homes] section of smb.conf, I think the difference is probably that at work they set a dynamic path, e.g. "path = /home/%u" which would NOT be in a [homes], whereas you are not, and instead have a "valid users = %S" entry or similar IN a [homes]?
 
Old 02-20-2012, 06:58 PM   #7
reckless2k2
LQ Newbie
 
Registered: Jul 2006
Location: Yardley, PA.
Distribution: Ubuntu, CentOS, Slackware, openSUSE
Posts: 25

Original Poster
Rep: Reputation: 0
You are correct. My smb.conf [homes] section refers to valid users = %S.

Are you saying they are using something else like a combo of NFS along with NIS or OpenLDAP and then the 'path = /home/%u' to get this mapping at work?

I'm not sure if you are saying that I can't do this.

Thanks.
 
Old 02-20-2012, 07:14 PM   #8
reckless2k2
LQ Newbie
 
Registered: Jul 2006
Location: Yardley, PA.
Distribution: Ubuntu, CentOS, Slackware, openSUSE
Posts: 25

Original Poster
Rep: Reputation: 0
I revisited this again and realized that I'm about as sharp as a bowling ball. Hahaha.

It is shared as "homes" and I was trying to map as "home" which would not work. I was able to make a few edits and was fine.

Sorry for wasting your time.
 
  


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
[SOLVED] 'Could not chdir to home directory /home/[user]: Permission denied' arashi256 Linux - Newbie 25 11-11-2011 09:29 AM
how to mount the /home from a server exporting /home via SSHFS? frenchn00b Linux - Server 2 12-05-2009 03:55 PM
win xp home edition and samba home shares scheidel21 Linux - Software 8 10-09-2008 12:47 AM
Samba/Cifs Home Directory Mount Cottsay Linux - Software 1 06-07-2007 10:05 PM
Mount ext3 partition in /home/USER/Documents with read/write/execute acces for USER anonymous234 Linux - Hardware 2 01-12-2007 12:23 PM

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

All times are GMT -5. The time now is 04:01 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