Home > Ask the Enterprise Linux Experts > Questions & Answers > Admin rights for users in Samba 3.0.0
Ask The Enterprise Linux Expert: Questions & Answers
EMAIL THIS

Admin rights for users in Samba 3.0.0

John H. Terpstra EXPERT RESPONSE FROM: John H. Terpstra

Pose a Question
Other Enterprise Linux Categories
Meet all Enterprise Linux Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 24 October 2003
I am using a RedHat 9.0 file server. I just upgraded to Samba 3.0.0 from 2.2.8 which was just about seamless, except I do not have domain users with Admin rights on Samba 3.0.0 as I did in Samba 2.2.8. Is there a way to give admin rights to certain domain users in Samba 3.0.0 or do all users just have user rights?


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


As you correctly point out, Samba-3 behaves a little differently than does Samba-2.2.x. That is why it is important to read the Samba-HOWTO-Collection.pdf that ships with Samba-3. You can buy this in hard copy from your local bookstore (or Amazon.Com) as "The Official Samba-3 HOWTO and Reference Guide."

The chapters that are of primary interest in respect of the question you raise are the one covering User Account Databases, and Group Mapping.

By default, if you use your unchanged smb.conf from Samba-2.2.x it should work, but with the change you have noted. The default "passdb backend" is the smbpasswd file that your old installation used.

The one thing you must accomodate is the new group mapping system. You need to map the Domain Users, Domain Admins and Domain Guests groups to valid UNIX groups. Such mapping is essential to proper domain permissions handling.

For example, to map the UNIX group "wheel" to the Windows Domain Admins group you must execute:

net groupmap modify ntgroup="Domain Admins" unixgroup=wheel
There are two ways you can give particular users Domain Administrator privileges:

a) By adding your users to the UNIX group that maps to the Windows Domain Admins group. For example, to grant the user "georgewb" Domain Admin control:

net groupmap modify ntgroup="Domain Admins" unixgroup=wheel
Now add "georgewb" to the wheel group in your /etc/group file.

b) Make use of the "username map" facility. In your smb.conf file [globals] section, add:

username map = /etc/samba/smbusers
In /etc/samba/smbusers:
root = Administrator georgewb
This means the when "georgewb" logs on, he will be the Domain Administrator.




Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Linux Migration Advice: Unix-to-Linux, Windows-to-Linux
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2003 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts