Solved

Samba as PDC for Domain (not AD) mostly working...help me finish

Posted on 2008-10-08
2
323 Views
Last Modified: 2013-12-23
>Attached is my smb.conf.

I am setting up a Ubuntu server as a central login point for our windows xp network via samba.  Here is what I have so far:
 -- Machines can authenticate against the server and login.
 -- I can add machines to the Domain

Here is what is not happening correctly, and I can't figure out why, but it needs to be fixed:
 -- The 'Home' shares aren't mounting in windows on login.  Once logged into the domain on a client computer I can browse to the home directory, and even change things in there, but it doesn't mount as a network drive.  It doesn't make sense that I could browse to the directory when the share configuration says "browsable = no".
 -- Sometimes, on some computers, when I login I get a desktop with Notepad open.  The file is called "Desktop.ini" and is located in that users roaming profile directory in the Startup folder.  This doesn't seem to happen on all computers, though we have two different architectures (though both are similar hardware and all running winXP)
 -- On the start menu, the users name is displayed with three commas after it:  eg. "Robert Carpenter,,," instead of "Robert Carpenter"  
 -- Roaming Profiles don't seem to be fully working, or there is some issue with caching.... I login on computer A, change the theme (eg. to "windows classic"), and log back out.  I then login on computer B, and observe the desktop theme having not changed (ie. its still "Windows XP" theme).


Further information (may be useless...):
 -- after having been added to the domain and logging in on one of the member computers, a users home directory will look like the attached code snippet
.:

total 28K

drwxr-xr-x 3 rcarpenter rcarpenter 4.0K 2008-10-08 13:53 .

drwxr-xr-x 5 root       root       4.0K 2008-10-08 11:06 ..

-rw------- 1 rcarpenter rcarpenter 2.0K 2008-10-08 13:31 .bash_history

-rw-r--r-- 1 rcarpenter rcarpenter  220 2008-10-08 10:25 .bash_logout

-rw-r--r-- 1 rcarpenter rcarpenter 2.3K 2008-10-08 10:25 .bashrc

-rw-r--r-- 1 rcarpenter rcarpenter    0 2008-10-08 13:53 home.txt

drwx------ 9 rcarpenter rcarpenter 4.0K 2008-10-08 13:45 profile

-rw-r--r-- 1 rcarpenter rcarpenter  566 2008-10-08 10:25 .profile

-rw-r--r-- 1 rcarpenter rcarpenter    0 2008-10-08 10:38 .sudo_as_admin_successful
 

./profile:

total 1.1M

drwx------ 9 rcarpenter rcarpenter 4.0K 2008-10-08 13:45 .

drwxr-xr-x 3 rcarpenter rcarpenter 4.0K 2008-10-08 13:53 ..

drwx------ 4 rcarpenter rcarpenter 4.0K 2008-10-08 11:13 Application Data

drwx------ 2 rcarpenter rcarpenter 4.0K 2008-10-08 11:10 Cookies

drwx------ 2 rcarpenter rcarpenter 4.0K 2008-10-08 11:10 Desktop

drwx------ 2 rcarpenter rcarpenter 4.0K 2008-10-08 11:10 Favorites

drwx------ 2 rcarpenter rcarpenter 4.0K 2008-10-08 11:13 My Documents

-rwx------ 1 rcarpenter rcarpenter 1.0M 2008-10-08 13:45 NTUSER.DAT

-rwx------ 1 rcarpenter rcarpenter 1.0K 2008-10-08 13:45 ntuser.dat.LOG

-rw------- 1 rcarpenter rcarpenter  268 2008-10-08 13:45 ntuser.ini

-r-x------ 1 rcarpenter rcarpenter 5.8K 2008-10-08 13:45 ntuser.pol

drwx------ 2 rcarpenter rcarpenter 4.0K 2008-10-08 11:10 Recent

drwx------ 3 rcarpenter rcarpenter 4.0K 2008-10-08 11:10 Start Menu

-rwx------ 1 rcarpenter rcarpenter    0 2008-10-08 13:30 Sti_Trace.log
 

./profile/Application Data:

total 16K

drwx------ 4 rcarpenter rcarpenter 4.0K 2008-10-08 11:13 .

drwx------ 9 rcarpenter rcarpenter 4.0K 2008-10-08 13:45 ..

drwx------ 2 rcarpenter rcarpenter 4.0K 2008-10-08 13:29 AVG7

drwx------ 4 rcarpenter rcarpenter 4.0K 2008-10-08 11:45 Microsoft
 

./profile/Application Data/AVG7:

total 12K

drwx------ 2 rcarpenter rcarpenter 4.0K 2008-10-08 13:29 .

drwx------ 4 rcarpenter rcarpenter 4.0K 2008-10-08 11:13 ..

-rwx------ 1 rcarpenter rcarpenter  129 2008-10-08 13:29 sched-0002.cfg
 

./profile/Application Data/Microsoft:

total 16K

drwx------ 4 rcarpenter rcarpenter 4.0K 2008-10-08 11:45 .

drwx------ 4 rcarpenter rcarpenter 4.0K 2008-10-08 11:13 ..

drwx------ 3 rcarpenter rcarpenter 4.0K 2008-10-08 11:45 Credentials

drwx------ 3 rcarpenter rcarpenter 4.0K 2008-10-08 11:13 Windows
 

./profile/Application Data/Microsoft/Credentials:

total 12K

drwx------ 3 rcarpenter rcarpenter 4.0K 2008-10-08 11:45 .

drwx------ 4 rcarpenter rcarpenter 4.0K 2008-10-08 11:45 ..

drwx------ 2 rcarpenter rcarpenter 4.0K 2008-10-08 11:45 S-1-5-21-2462658520-3496200850-702572536-3000
 

./profile/Application Data/Microsoft/Credentials/S-1-5-21-2462658520-3496200850-702572536-3000:

total 8.0K

drwx------ 2 rcarpenter rcarpenter 4.0K 2008-10-08 11:45 .

drwx------ 3 rcarpenter rcarpenter 4.0K 2008-10-08 11:45 ..
 

./profile/Application Data/Microsoft/Windows:

total 12K

drwx------ 3 rcarpenter rcarpenter 4.0K 2008-10-08 11:13 .

drwx------ 4 rcarpenter rcarpenter 4.0K 2008-10-08 11:45 ..

drwx------ 2 rcarpenter rcarpenter 4.0K 2008-10-08 13:42 Themes
 

./profile/Application Data/Microsoft/Windows/Themes:

total 16K

drwx------ 2 rcarpenter rcarpenter 4.0K 2008-10-08 13:42 .

drwx------ 3 rcarpenter rcarpenter 4.0K 2008-10-08 11:13 ..

-rwx------ 1 rcarpenter rcarpenter 5.7K 2008-10-08 13:42 Custom.theme
 

./profile/Cookies:

total 24K

drwx------ 2 rcarpenter rcarpenter 4.0K 2008-10-08 11:10 .

drwx------ 9 rcarpenter rcarpenter 4.0K 2008-10-08 13:45 ..

-rwx------ 1 rcarpenter rcarpenter  16K 2008-10-08 13:44 index.dat
 

./profile/Desktop:

total 8.0K

drwx------ 2 rcarpenter rcarpenter 4.0K 2008-10-08 11:10 .

drwx------ 9 rcarpenter rcarpenter 4.0K 2008-10-08 13:45 ..
 

./profile/Favorites:

total 12K

drwx------ 2 rcarpenter rcarpenter 4.0K 2008-10-08 11:10 .

drwx------ 9 rcarpenter rcarpenter 4.0K 2008-10-08 13:45 ..

-rwx------ 1 rcarpenter rcarpenter  122 2008-10-08 11:10 Desktop.ini
 

./profile/My Documents:

total 12K

drwx------ 2 rcarpenter rcarpenter 4.0K 2008-10-08 11:13 .

drwx------ 9 rcarpenter rcarpenter 4.0K 2008-10-08 13:45 ..

-rwx------ 1 rcarpenter rcarpenter   81 2008-10-08 11:13 desktop.ini
 

./profile/Recent:

total 12K

drwx------ 2 rcarpenter rcarpenter 4.0K 2008-10-08 11:10 .

drwx------ 9 rcarpenter rcarpenter 4.0K 2008-10-08 13:45 ..

-rwx------ 1 rcarpenter rcarpenter  150 2008-10-08 11:10 Desktop.ini
 

./profile/Start Menu:

total 12K

drwx------ 3 rcarpenter rcarpenter 4.0K 2008-10-08 11:10 .

drwx------ 9 rcarpenter rcarpenter 4.0K 2008-10-08 13:45 ..

drwx------ 3 rcarpenter rcarpenter 4.0K 2008-10-08 11:10 Programs
 

./profile/Start Menu/Programs:

total 12K

drwx------ 3 rcarpenter rcarpenter 4.0K 2008-10-08 11:10 .

drwx------ 3 rcarpenter rcarpenter 4.0K 2008-10-08 11:10 ..

drwx------ 2 rcarpenter rcarpenter 4.0K 2008-10-08 11:10 Startup
 

./profile/Start Menu/Programs/Startup:

total 8.0K

drwx------ 2 rcarpenter rcarpenter 4.0K 2008-10-08 11:10 .

drwx------ 3 rcarpenter rcarpenter 4.0K 2008-10-08 11:10 ..

Open in new window

smb.conf.txt
0
Comment
Question by:robacarp
2 Comments
 
LVL 7

Assisted Solution

by:namol
namol earned 250 total points
Comment Utility
Taking a quick look at your config, the [homes] portion seems to be missing a path directive. path = /home/$u should work.  In regards to the drive mapping, unless you have a script doing it, which there is one specified in the config but it is commented out, windows will not automatically map the drive. If you want the drive to automatically get mapped to H:, put net use * /home in the file and it will automatically map the path to the appropriate drive letter. As far as the commas goes, it appears that it is an ubuntu quirk with Samba, see http://www.nabble.com/Group-Policy---Network-Path-Not-Found---Samba-4-td14691767.html. Let us know what happens!
0
 
LVL 3

Accepted Solution

by:
robacarp earned 0 total points
Comment Utility
I figured out the problems:

-- The home shares weren't mounting because I was specifying the directory incorrectly.
        In my smb.conf file I had:    logon home = \\%N\%U\
        I changed to (on a hunch, having configured apache a few times):     logon home = \\%N\%U
              (no trailing slash)

       This allowed the logon shares to mount automatically, without specifying the path directive of the [homes] share.

-- The client machines opening a desktop.ini file sometimes on login.
       I relocated the profile storage to be inside the home folder for a user and this problem disappeared.  It is also possible that the deletion and re-creation of the profiles (as opposed to the location of them) is what fixed the problem.
       The profile (logon path) is now specified as:    logon path = \\%L\%U\.win-profile
            I prefixed the directory with a dot to indicate that I want the directory hidden and samba automatically sets the windows hidden flag.

-- The commas in the name.  Apparently this (as namol said) is a quirk with Debian or Ubuntu.  Its all over the web with no apparent solution.

-- Roaming profiles started working fully when I migrated the profiles to inside the users home directory.  I am guessing that the reason it didn't work before is that I was missing some sort of share configuration required to allow for roaming profiles when the logon path is outside the home directory.  Either way, its all fixed and working well now.

Namol, thanks for responding.  I must say that I had expected better from the EE crowd, but maybe there aren't many samba experts lurking around here. :-)
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Usually shares are where we want them for our users and we tend to take them for granted. There are times, however, when those shares may disappear causing difficulty for your users. One of the first things to try is searching for files that shou…
Are you one of those front-line IT Service Desk staff fielding calls, replying to emails, all-the-while working to resolve end-user technological nightmares? I am! That's why I have put together this brief overview of tools and techniques I use in o…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now