LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-05-2004, 09:45 AM   #1
Wonderm00n
LQ Newbie
 
Registered: Dec 2004
Posts: 4

Rep: Reputation: 0
Questions about Samba acting as a PDC


Hi there,

I've got "Samba 3.0.9-1" running on "Red Hat Fedora Core 3" and followed the
instructions in "openapps.harkness.co.uk / Documentation / samba-a4.pdf" to
configure it as as PDC server.

98% of it is indeed working properly.

I'm just having two issues, that I really need some help on:

ISSUE 1:
- The creation of the machine trust account is not working
On smb.conf I've got:
add user script = /usr/sbin/useradd -d /dev/null -g machines -s
/bin/false -M %u

I've also tried to create the account manualy with:
/usr/sbin/useradd -g machines -d /dev/null -c "machine id" -s /bin/false
machine_name$
but i got:
useradd: invalid user name 'machine_name$'

If I create the user with WEBMIN user and groups modules it works ok...

So how can I create a user with "$" in command line mode? Even better...
What is the correct "add user script" so that's done automaticaly when
joining the windows beast to the samba domain?


ISSUE 2:
The configuration I've done is using "roaming profiles" wich are great for
people that use several machines and do have little files. In my environment
that is not going to happen. Which user has his own machine and TONS of
files, specialy huge beasts PST files.

My config:
(...)
;user profiles and home directory
logon drive = S:
logon home = \\%L\%U\.profile
logon path = \\%L\profiles\%U

(...)
[profiles]
path = /home/samba/profiles
writeable = yes
browseable = no
create mask = 0600
directory mask = 0700

Basicaly I want the users to have S: mapped to their /home/user directory,
so that can save sensitive information on the server, but having their
profiles locally. How can this be achieved?

I've tried to comment all [profiles] section and both "logon home" and
"logon path" Leaving only "logon drive = S:" uncommented. The user can logon
to the machine, has access to his home directory in S: but when loggin out
windows warns me that he can't write the profile to the server.


HELP! ;-)
 
Old 12-08-2004, 06:22 AM   #2
Wonderm00n
LQ Newbie
 
Registered: Dec 2004
Posts: 4

Original Poster
Rep: Reputation: 0
No answers so far... ok..

Anyway, I found the solution for ISSUE 1 in some newsgroups (thanks Wolfgang Wilhelm), and I'm posting it here for future reference of other users.

Since samba 3.x instead of "add user script", "add machine script" should se used:


Code:
#For adding machines automaticaly
        add machine script = /usr/sbin/useradd -d /dev/null -g machines -s /bin/false -M %u

#For password sync when changing user in samba
        unix password sync = yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *New*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n *Enter*new*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n *passwd: *all*authentication*tokens*updated*successfully*

(As you noticed I've also included a bit of configuration that allows the unix pwd be changed when the samba one is...)


Can anyone help me on ISSUE 2, regarding profiles?

Also I'm having some problems with apache: http://www.linuxquestions.org/questi...hreadid=262829
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
samba 3 problem - samba PDC can not join to the domain ananthak Linux - Networking 1 05-21-2006 10:39 AM
Samba 3.01rc2 acting as a PDC goochster Linux - Networking 7 12-15-2003 03:40 PM
Newbie Samba PDC questions zos Linux - Networking 3 06-22-2003 04:06 PM
Samba PDC Questions gauge73 Linux - Networking 1 02-18-2003 12:38 PM
samba as PDC questions? balam Linux - Networking 1 11-29-2002 04:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:44 PM.

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