VMware Images:
|
SAMBA (Domaincontroller) Server For Small Workgroups With Ubuntu 6.10 - Page 4
SAMBA Serverapt-get install samba samba-common samba-doc libcupsys2-gnutls10 libkrb53 winbind smbclient Edit /etc/samba/smb.conf so that it looks like this: vi /etc/samba/smb.conf [global] workgroup = MYWORKGROUP netbios name = SERVER1 server string = %h server (Samba, Ubuntu) passdb backend = tdbsam security = user username map = /etc/samba/smbusers name resolve order = wins bcast hosts domain logons = yes preferred master = yes wins support = yes # Set CUPS for printing load printers = yes printcap name = CUPS printing = CUPS printer admin = @lpadmin # Default logon logon drive = H: logon script = scripts/logon.bat logon path = \\server1\profile\%U # Useradd scripts add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u delete user script = /usr/sbin/userdel -r %u add group script = /usr/sbin/groupadd %g delete group script = /usr/sbin/groupdel %g add user to group script = /usr/sbin/usernod -G %g %u add machine script = /usr/sbin/useradd -s /bin/false/ -d /var/lib/nobody %u idmap uid = 15000-20000 idmap gid = 15000-20000 template shell = /bin/bash # sync smb passwords woth linux passwords passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* . passwd chat debug = yes unix password sync = yes # set the loglevel log level = 3 [public] browseable = yes public = yes [homes] comment = Home valid users = %S read only = no browsable = no [printers] comment = All Printers path = /var/spool/samba printable = yes public = no writable = no create mode = 0700 [print$] comment = Printer Drivers path = /var/lib/samba/printers browseable = yes read only = yes guest ok = no write list = root, @smbadmin [netlogon] comment = Network Logon Service path = /home/samba/netlogon admin users = Administrator valid users = %U read only = no guest ok = yes writable = no share modes = no [profile] comment = User profiles path = /home/samba/profiles valid users = %U create mode = 0600 directory mode = 0700 writable = yes browsable = no guest ok = no Create the directories for domain logons and profiles: mkdir /home/samba Now we restart Samba: /etc/init.d/samba restart Edit /etc/nsswitch.conf. Change the line: vi /etc/nsswitch.conf hosts: files dns to: hosts: files wins dns Add all computers of your workgroup in the /etc/hosts file on the server: vi /etc/hosts [...] 192.168.0.100 server1 192.168.0.110 workstation1 192.168.0.111 workstation2 192.168.0.112 workstation3 192.168.0.113 workstation4 [...] Add the root user to the SAMBA password database. The root user (alias: Administrator) will be our domain administrator. This account is needed to add new computers to the SAMBA domain. smbpasswd -a root Create the file /etc/samba/smbusersand add the line by executing: echo "root = Administrator" > /etc/samba/smbusers This will allow us to use the common Windows username Administrator as an alias for the Linux root user. Now I will test if the setup is correct: smbclient -L localhost -U% The output should look similar to this: Domain=[MYWORKGROUP] OS=[Unix] Server=[Samba 3.0.22] Set up the default domain groups for Windows: net groupmap modify ntgroup="Domain Admins" unixgroup=root
Adding Users To Our SAMBA DomainNow we will add a user, e.g. tom, to our Samba domain. You will have to add a user like this for each user account you want to connect to this SAMBA domain server. 1) Add a Linux user tom: useradd tom -m -G users 2) Add the Linux user tom to the SAMBA password database: smbpasswd -a tom
Adding SharesNow I will add a share that is accessible by all users: mkdir -p /home/shares/allusers At the end of the file /etc/samba/smb.conf add the following lines: [allusers] comment = All Users path = /home/shares/allusers valid users = @users force group = users create mask = 0660 directory mask = 0771 writable = yes Now we restart Samba: /etc/init.d/samba restart
|
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning
Learn benefits of Simpana software.
View the Gartner Video




print: 

Recent comments
19 hours 8 min ago
21 hours 52 min ago
1 day 3 hours ago
1 day 5 hours ago
1 day 6 hours ago
1 day 7 hours ago
1 day 9 hours ago
1 day 15 hours ago
1 day 15 hours ago
1 day 19 hours ago