Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

[HOWTO] :: Implement Samba as your PDC

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Post Reply
Advanced search
38 posts
  • Previous
  • 1
  • 2
Author
Message
JROCK2004
Guru
Guru
User avatar
Posts: 450
Joined: Tue Mar 02, 2004 5:31 am
Location: PA
Contact:
Contact JROCK2004
Website

  • Quote

Post by JROCK2004 » Fri Nov 03, 2006 4:28 pm

ok so as root just cp the contents inside the default folder from windows into /var/lib/samba/netlogon/ ???? do I haveto chmod the folder?
Top
Ejunkie
n00b
n00b
Posts: 58
Joined: Fri Jan 07, 2005 10:32 pm
Location: 127.0.0.1

  • Quote

Post by Ejunkie » Fri Nov 03, 2006 10:10 pm

it has to be world readable and executable but not world writeble
Top
JROCK2004
Guru
Guru
User avatar
Posts: 450
Joined: Tue Mar 02, 2004 5:31 am
Location: PA
Contact:
Contact JROCK2004
Website

  • Quote

Post by JROCK2004 » Fri Nov 03, 2006 10:55 pm

ok right now it is drwxr-xr-x
Top
Ejunkie
n00b
n00b
Posts: 58
Joined: Fri Jan 07, 2005 10:32 pm
Location: 127.0.0.1

  • Quote

Post by Ejunkie » Fri Nov 03, 2006 11:17 pm

JROCK2004 wrote:ok right now it is drwxr-xr-x
oke and from the samba point of view the share shoud be an public share.
Top
JROCK2004
Guru
Guru
User avatar
Posts: 450
Joined: Tue Mar 02, 2004 5:31 am
Location: PA
Contact:
Contact JROCK2004
Website

  • Quote

Post by JROCK2004 » Fri Nov 03, 2006 11:44 pm

but still will not create or load profile
Top
JROCK2004
Guru
Guru
User avatar
Posts: 450
Joined: Tue Mar 02, 2004 5:31 am
Location: PA
Contact:
Contact JROCK2004
Website

  • Quote

Post by JROCK2004 » Sat Nov 04, 2006 2:16 am

ok now it stopped complaining about it but now it will not write profile because of security. Any other ides? Do you guys need me to post anything?
Top
Ejunkie
n00b
n00b
Posts: 58
Joined: Fri Jan 07, 2005 10:32 pm
Location: 127.0.0.1

  • Quote

Post by Ejunkie » Sat Nov 04, 2006 1:45 pm

JROCK2004 wrote:ok now it stopped complaining about it but now it will not write profile because of security. Any other ides? Do you guys need me to post anything?
could you post your config file ?
Top
JROCK2004
Guru
Guru
User avatar
Posts: 450
Joined: Tue Mar 02, 2004 5:31 am
Location: PA
Contact:
Contact JROCK2004
Website

  • Quote

Post by JROCK2004 » Sat Nov 04, 2006 2:03 pm

ok I rebooted server and pc and now working better. it is saving the prfoles. it still complains that the pc does not have a local profile. I think I can fix that.

Now is this the right area to discuss how to get windows to use the printer? Windows can see it but it is complaining about drivers. PSC 1610v. It wants drivers. Thanks
Top
dahoste
Tux's lil' helper
Tux's lil' helper
Posts: 138
Joined: Thu Dec 01, 2005 6:07 am
Location: Maryland, USA
Contact:
Contact dahoste
Website

  • Quote

Post by dahoste » Wed Feb 21, 2007 7:56 pm

Hello, I was going to post this as its own thread, but since it's samba/PDC related (and I originally heavily leveraged the HOWTO), I figured I'd start here.

I'm hoping someone has some insight into the following problem that I've recently encountered:

Basically, winxp seems to be creating roaming profiles that are incompatible with itself. I've got two sets of winxp clients, which I'll call 'new' and 'old'. Profiles created (and perfectly usable) by the old clients don't work on the new clients, and profiles created (and usable) by the new clients won't work on the old clients. The catch is that as far as I can tell, I've configured the old clients and the new clients in exactly the same way. It may be that I've neglected to do something on the new clients that I did on the old. I didn't religiously document the process of configuring them, but I only remember doing the registry tweak and the gpedit.msc tweak.

More detail:

I've had a samba/ldap PDC running successfully for quite some time now (6+ months). Users can login to the domain, profiles are loaded and saved correctly to the PDC server, home drives are mapped correctly, the logon.bat is executed. Everything working great. But I just setup two new winxp machines (sp2, fully updated, etc..) and while I can login as any of the domain users, neither machine successfully loads the user's roaming profile. But it doesn't complain about anything either! The weird thing is that some desktop configuration stuff just plain doesn't work. For instance, any attempt to enable the quicklaunch menu on the taskbar is ignored (quicklaunch is enabled in the roaming profile). Ditto for enabling 'auto-hide' for the task bar. Also, I can change theme attributes for the desktop (background color, etc..) and they'll act like they've changed, but won't persist across a login/logout -- and yet there are no complaints about the profile when I log out, implying that winxp was able to save them to the PDC server just fine.

I've applied the 'signorseal' registry hack to all winxp clients. I've also used gpedit.msc to enable 'Do not check for user ownership of Roaming Profile Folders'. So as far as I know, I've established the same config on all of my winxp clients. But the new ones are misbehaving. Or, rather, it's more accurate to say that the new ones and the old ones aren't playing nice together, when it comes to creating/saving/loading the roaming profiles.

I created a brand new user (on the linux side via smbldap-useradd), and logged in as that user on the new winxp clients. A new roaming profile is created and works perfectly. That same (new) user does not have its profile loaded correctly on an existing (old) winxp client. No complaints from winxp, mind you, it just doesn't provide a fully functional desktop after login. It took a really long time to login the first time with the new user on an old client, but the login happens very quickly on subsequent tries. Logoff is quick, with no error messages about anything. This is precisely the same behavior I see when logging in as an 'old' user on a 'new' client.

Needless to say, I'm using the same samba PDC for the whole thing. It's samba v3.0.24.

Here's the profiles section from my smb.conf:

Code: Select all

[profiles]
path = /var/lib/samba/profiles
browseable = no
writeable = yes
create mask = 0600
directory mask = 0700
profile acls = yes
csc policy = disable
hide files = /desktop.ini/ntuser.ini/NTUSER.*/
Any help with this would be greatly appreciated!

thanks!
Top
darkphader
Veteran
Veteran
User avatar
Posts: 1225
Joined: Thu May 09, 2002 11:24 pm
Location: Motown
Contact:
Contact darkphader
Website

  • Quote

Post by darkphader » Wed Feb 21, 2007 8:53 pm

dahoste wrote:I've applied the 'signorseal' registry hack to all winxp clients.
You didn't mention your Samba version but for any modern version of Samba the signorseal reghack is not needed. I don't know if it will hurt but it certainly isn't necessary. Make sure you're running the latest Samba release then try removing and re-joining the systems to the domain. Try boosting Samba's log level to get more info.

Chris
WYSIWYG - What You See Is What You Grep
Top
dahoste
Tux's lil' helper
Tux's lil' helper
Posts: 138
Joined: Thu Dec 01, 2005 6:07 am
Location: Maryland, USA
Contact:
Contact dahoste
Website

  • Quote

Post by dahoste » Sat Feb 24, 2007 10:25 pm

I'm using samba v3.0.24 (I mentioned that towards the bottom of the first post).

I did revert the 'signorseal' registry value, though it seems to have had no effect at all.

I started a thread for this issue on the official samba mailing list:

http://lists.samba.org/archive/samba/20 ... 29773.html

So far, nothing satisfactory to report, but I've included a lot more detail on what I've tried and what behavior I'm seeing.

Still hoping someone can suggest a nice fix for this.

cheers,

-David
Top
Sedrik
l33t
l33t
User avatar
Posts: 655
Joined: Fri Apr 08, 2005 7:14 am
Location: Uppsala, Sweden

  • Quote

Post by Sedrik » Tue Jul 31, 2007 10:57 am

Hi all

I'm having trouble adding a machine to my domain. It complains that it can't find the user I tell it to add the machine with :( (yes, i'm using root)

Any pointers, will post smb.conf if needed.
From Gentoo with love
Top
Sedrik
l33t
l33t
User avatar
Posts: 655
Joined: Fri Apr 08, 2005 7:14 am
Location: Uppsala, Sweden

  • Quote

Post by Sedrik » Tue Jul 31, 2007 12:03 pm

Disregard my last post, I solved that problem. Now another one has arrised.

I want new files that are created from a client to be created with full group permissions and the group to be either users or styrelsen.

I add users as normal with useradd (useradd -m -G <users,styrelsen and anything else that is wanted> -s /bin/bash username).

Now when I tried to add the test user, user I did
useradd -m -G users -s/bin/bash user and he got the groups users and user.
Creating new files gives me this result :(

Code: Select all

ls -l /UTN/gemensamttest/
total 0
-rwxr--r-- 1 user  user      0 Jul 31 13:58 Ny(tt) Textdokument (2).txt
-rwxr--r-- 1 user  user      0 Jul 31 13:54 Ny(tt) Textdokument.txt
-rwxr--r-- 1 admin styrelsen 0 Jul 31 13:51 users.txt
So two questions, how do I create a user such that either users or styrelsen becomes the main group (sorry bad terminology) that is the group wich is listed by ls.

and secondly how do I change the default permissions of the files that are created? I would like them to be 0770 or something.

Thanks :)
From Gentoo with love
Top
Post Reply

38 posts
  • Previous
  • 1
  • 2

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic