Method for successfully configuring Samba3.0 as domain logon and File Server

Source: Internet
Author: User
The method for successfully configuring Samba3.0 as the domain logon and file server-Linux Enterprise Application-Linux server application information is as follows. Samba3.0 is also available? I am also a Linux enthusiast? Last itch? Also download and configure? Feeling good? Share with you? Correct the error

When my system is installed in Red Hat9.0, I didn't select Linux as the file server? That's because I want to install Samba after the system is installed, which will save some trouble? You can also upgrade and install the samba3. 0rpm package.
The method is as follows:
# Rpm-Uvh-force -- nodeps samba-common-3.0.0.15.i386.rpm
# Rpm-Uvh-force -- nodeps samba-client-3.0.0-15.i386.rpm
# Rpm-Uvh-force -- nodeps samba-3.0.0-15.i386.rpm
Another tool is the Swat of the graphic interface.
What if I use this tool? Do you need to modify one? Yes?
Vi/etc/xinetd. d/swat
Disable = yes
Change
Disable = no.
# Rpm-ivh samba-swat-3.0.0-15.i386.rpm
Then open the browser and enter http: // hostname: 901.
Can I also install the redhat-config-samba tool? But I don't like it very much? Not practical.
To facilitate remote management? Webmin is also good? Is it version 1.121 now? We suggest you install it? With this, you can easily configure Samba.
Here I will not introduce how to use webmin to set up samba servers? Or according to my configuration file? Convenient? Hey ???
What is the content of the smb. conf file in my/etc/samba?

# Global parameters
# Global configuration parameters
[Global]
# Set a working group or domain name.
Workgroup = MYGROUP
# The Name Of The calculator (samba) displayed on the network ).
Netbios name = SAMBA
# Match the windows character set. The simplified Chinese character set is cp936, and the traditional Chinese character set is cp950.
Dos charset = CP936
Display charset = CP936
# Server description? % V displays the Samba version.
Server string = Samba Server % v
# Set the authentication process used by the samba server. The default value is USER? Are there four options? User, Share, Server and Domain.
Security = User
# Set the minimum number of characters for a plain text password.
Min passwd length = 6
# Anonymous? Name? If the password is incorrect, you are not allowed to log on to the server. That is, any illegal user name logon is considered as a gues user.
Map to guest = Bad User
# User name image.
Username map =/etc/samba/smbusers
# Path for storing samba passwords
Smb passed file =/etc/samba/smbpasswd
# Name and path of the samba log file.
Log file =/var/log/samba/% m. log
# Maximum log file size (KB)
Max log size = 50
# As the time server.
Time server = Yes
# Before the connection is considered invalid? Time of inactive status (MIN )? Prevent invalid connections from consuming resources.
Deadtime = 5
# Network protocol options? Do not change it? Otherwise, the network speed and network problems are affected.
Socket options = TCP_NODELAY SO_RCVBUF = 8192 SO_SNDBUF = 8192
# Is the batchcompute file or windows command file running in netlogon sharing successfully logged on? Note? Is this important? In addition, you must use the following [netlogon] sharing to configure your PDC? % U is the name of the automatically matched login user.
Logon script = % U. bat
# On the server, how does one save the configuration file path for Windows User Logon? % L is the name of the Samba matching server.
Logon path =\% L \ profile \ % U
# Set the local path of the main directory during logon.
Logon drive = H:
# Samba accepts the users in the group to log on in the domain.
Domain logons = Yes
# If you want to set samba as a domain server? The OS level of the browser must be higher than that of Windows. What should I do here? OS level? Windows 95 is 1? 98 is 1? Win2000pro is 16, winNt4.0, and win2000server is 32.
OS level = 65
# Set samba to the main browser.
Domain master = Yes
# Set samba to a WINS server.
Wins support = Yes
# Super User.
Admin users = root
# Set new file permissions.
Create mask = 0740
# Enforce permission restrictions when creating new files.
Force create mode = 0740
# Allow users to change their permissions under NT \ 2000.
Security mask = 0740
Force security mode = 0740
# Maximum permissions allowed when creating a new directory.
Directory mask = 0750
Force directories mode = 0750
Directory security mask = 0750
Force directory security mode = 0750
# How does Windows work? As long as the file is modified? The timestamp is updated at any time.
Dos filetimes = Yes
# Does Samba perform an integer operation on the file generation time? Is it counted as 1 second? This is also the way windows works.
Dos filetime resolution = Yes
# Share the home directory.
[Homes]
Comment = Home Directories
Read only = No
Browseable = No
# Important settings? Samba is used as a domain server to store files or scripts executed during user logon.
[Netlogon]
Comment = Network Logon Service
Path =/home/netlogon
Write list = root
Guest OK = Yes
Share modes = No
# User configuration file storage directory.
[Profile]
Path =/home/profiles
Read only = No
Create mask = 0770
Force create mode = 0770
Security mask = 0770
Force security mode = 0770
Directory mask = 0770
Force directories mode = 0770
Directory security mask = 0770
Force directory security mode = 0770
Browseable = No
# Printer shared directory.
[Printers]
Comment = All Printers
Path =/var/spool/samba
Printable = Yes
Browseable = No
OK? The Smb. conf file is configured. Next we need to manually create a directory under/home?
Profiles. The access permission is 0770. What group do you want to create? For example, share.
Used to store configuration files for Windows users.
The netlogon access permission is 1750? Is the sticky option added here? Cannot other users delete files in the directory? Only Super Users or creators can? Note that the sticky option only applies to the directory. The Group is share.
Create the smbpasswd file under/etc/samba below?
# Cat/etc/passwd | mksmbpasswd. sh>/etc/samba/smbpasswd
For security reasons? Set permissions?
# Cd/etc
# Chmod 500 samba
# Cd samba
# Chmod 600 smbapsswd

Next, you can create a logon script for a windows user in the netlogon directory? For example, batch files? What should be noted? Must be created under Windows? Because in Linux, how does one create? So Windows will not execute Linux Files. For example, if you have an account feixue, can the batch processing file be like this?
The content of feixue. bat is?
@ Net time \ SambaServer/set/yes
@ Net use H: \ SambaServer \ feixue-y
@ Regedit-s \ SambaServer \ netlogon \ *. reg
.

You must check the file permissions after saving the batch processing file to netlogon? After the correction, the user will execute it? Otherwise, hey? Are you in trouble ???

How do I configure Windows to log on to the Samba domain? For 98? Easy? Choose Client for microsoft networks in network properties? Check the first item? Enter the domain name (workgroup) of your Samba server. After the machine is re-activated? There are three items in the Login Dialog Box? Username? Password? Domain name.
How difficult is it to log on to the samba domain under NT/2000? First, you need to create a credit account for the windowsNT/2000 machine on the Samba server.
Take a computer named test as an example?
# Useradd-c 'test Compter '-d/dev/null-g share-s/bin/false-r Test $
We created a Linux local account? For security reasons, do you need to log on to Linux for any operations? Therefore, the user directory is/dev/null, and the shell is/bin/false.
Then we can use smbpasswd to create the corresponding Samba machine account?
# Smbpasswd-a-m test
Where-a is added? -M is a machine Trusted Account. So? A machine trust account named test $ in the NT domain is created based on the Linux Account test $.
Then add the Samba domain on windowsNT/2000? Enter the superuser name and password as prompted? You can join the Samba domain.
After the machine is re-activated? There will be three options? For example, you can use the previously created user feixue to log on.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.