LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-03-2011, 05:30 AM   #1
fdelval
Member
 
Registered: Feb 2010
Posts: 107

Rep: Reputation: 15
configuring samba users to join clients to the domain


Hello all,

Im currently using an english book to setup my samba server, and im having problems understanding it.

I explain my problem.

I dont want to use root to join clients to the domain; i prefer creating a plain user.



Ok, so, the steps i follow are:

net groupmap add unixgroup=srvadmins ntgroup="Server Admins"

net groupmap add ntgroup="Domain Admins" unixgroup=dmnadmins rid=512 type=d

net rpc rights grant 'ORA\Server Admins' seMachineAccountPrivilege

This way, i have a group called srvadmins with permissions to join clients, a group called dmnadmins with permissions to manage users and other permissions, and root.

Now, users: "root", "dmnadmin"(from dmnadmins group) and "srvadmin" (from srvadmins group) can add machines to domain.
Root because is root, srvadmin because i granted permissions, and dmnadmin because is admin

So i wonder, why srvadmins group is needed to be granted privileges?

I tryed to lower dmnadmins privileges by revoking semachineaccountprivilege privilege, but didnt worked

net rpc rights revoke 'ORA\Domain Admins' seMachineAccountPrivilege

looks like its privileges comes from another group and it user managed to add a machine to the domain correctly.


Ok, so, is this really usefull? why do i need 3 kind of users to be able to join to the domain?

should i really stick to using root to join clients?

thanks
 
Old 02-04-2011, 01:49 AM   #2
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254
Greetingz!

Let me make sure I understand your question; You're using an Open Source implementiation of a Microsoft scheme/protocol while struggling with English, and you wonder why you're having problems, correct?
 
Old 02-04-2011, 02:21 AM   #3
fdelval
Member
 
Registered: Feb 2010
Posts: 107

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by xeleema View Post
Greetingz!

Let me make sure I understand your question; You're using an Open Source implementiation of a Microsoft scheme/protocol while struggling with English, and you wonder why you're having problems, correct?
Well, the problem is about user rights and privileges.

if you say microsoft here is important, then, i should start up by stuying the turing machine to understand my problem.
if english would be a really important problem, then, i shouldnt be posting in an english forum.

Can you help about privileges?
 
Old 02-04-2011, 03:22 AM   #4
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254
If you're trying to avoid having to run everything as root, and no one is in the "wheel" group, you can do one of two things;

1) Just use "sudo"
2) Use the "wheel" group.
a) First, find out if the wheel group exists with "grep wheel /etc/group". If it does, add your regular user account to that group.
b) Note what groups you're apart of with "id username"
c) Then usermod -g wheel username
d) Confirm that username was added to the "wheel" group by checking the output of "id username" again.
e) Now for any commands you want to use, you'll need to do two things;
i) Set the owner+group to the commands you need "chown root:wheel /usr/bin/somebinary"
ii) Lock-down the permissions to the commands you need "chmod 750 /usr/bin/somebinary"
iii) Flip the SetUID bit on the commands you need "chmod u+s /usr/bin/somebinary"
iv) It should look like this when done;
Code:
-rwsr-x--- 1 root wheel 0 Feb  4 03:17 /usr/bin/somebinary
WARNING: "SetUID" binaries are dangerous, anyone that can run them, will do so with root's effective UID. If you do not know what this means, what "SetUID" is, google/read/lrn2sysadmin first.
 
  


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 : New windows xp clients cant join samba domain lyschange Linux - Newbie 4 08-31-2010 02:38 AM
Samba: Clients fail to join domain, machine password not found Neruocomp Linux - Software 0 07-20-2006 10:25 AM
samba 3 problem - samba PDC can not join to the domain ananthak Linux - Networking 1 05-21-2006 10:39 AM
Cannot join Samba domain. codedv Linux - Networking 0 10-12-2004 05:33 PM
join samba domain! egyptian Linux - Networking 1 07-29-2004 10:18 AM

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

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