Samba Domaincontroller For Small Workgroups With SWAT On Fedora 8 - Page 3
5 Samba As DomaincontrollerConnect to the SWAT webinterface with your preferred browser. http://%vm_ip%:901 E.g.: http://192.168.0.100:901
5.1 The WizardClick on "Wizard" in the SWAT menu and edit the settings: Server Type = Domain Controller Afterwards click on "Commit" in the upper menu. Note: This will rewrite/clean the SAMBA configuration!
5.2 Global ConfigurationClick on "Global" in the SWAT menu and edit the settings (advanced view): workgroup = EXAMPLE.COM Now click on "Commit Changes" in the upper menu and after that create the directories for domain logons and profiles. mkdir -p /home/samba/netlogon Edit the nsswitch.conf: vi /etc/nsswitch.conf Change: hosts: files dns To: hosts: files wins dns Now we add root to the SAMBA password database - he (alias: administrator) will be our domain administrator. smbpasswd -a root
5.3 Default SharesNow we create the default shares for netlogon etc. Click on "Shares" in the SWAT menu and switch to the advanced view.
5.3.1 HomesFirst we edit the share "homes". Select it, click on "Choose Share" and edit the settings: valid users = %S Afterwards click on "Commit Changes"
5.3.2 Print$Insert "print$" (without quotes) as the name for the new share and click on "Create Share". Now edit the settings: comment = Printer Drivers Afterwards click on "Commit Changes"
5.3.3 NetlogonInsert "netlogon" (without quotes) as the name for the new share and click on "Create Share". Now edit the settings: comment = Network Logon Service
5.3.4 ProfilesInsert "profiles" (without quotes) as the name for the new share and click on "Create Share". Now edit the settings: comment = User profiles
5.4 TestingNow lets test if all is OK: smbclient -L localhost -U% The output should look like this: Sharename Type Comment
5.5 Domain GroupsIn this step we create the default domain groups for Windows. net groupmap add ntgroup="Domain Admins" unixgroup="root" type=domain -U root After that click on "STATUS" in the SWAT menu and restart all services.
5.6 Domain UsersNow we add users to our SAMBA domain - this is required for each useraccount that shall connect to the SAMBA domain controller. net rpc user add %username% -U root E.g.: net rpc user add james -U root Additionally you can add a quota to the user via: setquota -u %username% %block-softlimit% %block-hardlimit% %inode-softlimit% %inode-hardlimit% -a E.g.: The following command will add a quota to the user james: setquota -u james 40960 51200 0 0 -a Now james has a block softlimit of 40MB, a block hardlimit of 50MB and no restrictions for inodes (folders and files). You can check the current quota settings and quota usage via: quota %username% E.g.: quota james The output should look like this: Filesystem blocks quota limit grace files quota limit grace
6 Additional Samba SharesThis is an example for a share that is accessible by all users. 6.1 DirectoryFirst we have to create the directory that we want to share. Afterwards we change the owner, group and permissions. mkdir -p /home/shares/allusers/
6.2 Share ConfigurationClick on "SHARES" in the swat menu. Afterwards insert a desired name for the new share into the corresponding field and click on "Create Share". Now change the view to Advanced in the upper menu and edit the settings for the share. comment = Share for all users (or something other) After that click on "Commit Changes" in the upper menu.
7 Links
|
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com





print: 
Recent comments
21 hours 16 min ago
22 hours 44 min ago
1 day 2 hours ago
1 day 5 hours ago
1 day 8 hours ago
1 day 8 hours ago
1 day 9 hours ago
1 day 10 hours ago
1 day 11 hours ago
1 day 11 hours ago