Имя пользователя:
Пароль:
 

Название темы: изменить имя машины
Показать сообщение отдельно

Аватара для bool

Старожил


Сообщения: 229
Благодарности: 9

Профиль | Отправить PM | Цитировать


я там имя группы сменил, и благополучно расположился в нашей рабочей группе , но только под именем - localhost 8(
вот весь мой конфиг(разбил на несколько сообщений, в один пост не уместился):
Код: Выделить весь код
 
 
# This is the main Samba configuration file. You should read the
 
# smb.conf(5) manual page in order to understand the options listed
 
# here. Samba has a huge number of configurable options (perhaps too
 
# many!) most of which are not shown in this example
 
#
 
# Any line which starts with a ; (semi-colon) or a # (hash) 
 
# is a comment and is ignored. In this example we will use a #
 
# for commentry and a ; for parts of the config file that you
 
# may wish to enable
 
#
 
# NOTE: Whenever you modify this file you should run the command "testparm"
 
# to check that you have not made any basic syntactic errors. 
 
#
 
#======================= Global Settings =====================================
 
[global]
 
 
 
# 1. Server Naming Options:
 
# workgroup = NT-Domain-Name or Workgroup-Name
 
workgroup = evm_centr
 
 
 
# netbios name is the name you will see in "Network Neighbourhood",
 
# but defaults to your hostname
 
; netbios name = <name_of_this_server>
 
 
# server string is the equivalent of the NT Description field
 
server string = Samba Server %v
 
 
 
# Message command is run by samba when a "popup" message is sent to it.
 
# The example below is for use with LinPopUp:
 
; message command = /usr/bin/linpopup "%f" "%m" %s; rm %s
 
 
 
# 2. Printing Options:
 
# CHANGES TO ENABLE PRINTING ON ALL CUPS PRINTERS IN THE NETWORK
 
# (as cups is now used in linux-mandrake 7.2 by default)
 
# if you want to automatically load your printer list rather
 
# than setting them up individually then you'll need this
 
printcap name = cups
 
load printers = yes
 
 
 
# It should not be necessary to spell out the print system type unless
 
# yours is non-standard. Currently supported print systems include:
 
# bsd, sysv, plp, lprng, aix, hpux, qnx, cups
 
printing = cups
 
 
 
# Samba 2.2 supports the Windows NT-style point-and-print feature. To
 
# use this, you need to be able to upload print drivers to the samba
 
# server. The printer admins (or root) may install drivers onto samba.
 
# Note that this feature uses the print$ share, so you will need to 
 
# enable it below.
 
# printer admin = @<group> <user>
 
printer admin = @adm
 
# This should work well for winbind:
 
; printer admin = @"Domain Admins"
 
 
 
# 3. Logging Options:
 
# this tells Samba to use a separate log file for each machine
 
# that connects
 
log file = /var/log/samba/log.%m
 
 
 
# Put a capping on the size of the log files (in Kb).
 
max log size = 50
 
 
 
# Set the log (verbosity) level (0 <= log level <= 10)
 
; log level = 3
 
 
 
# 4. Security and Domain Membership Options:
 
# This option is important for security. It allows you to restrict
 
# connections to machines which are on your local network. The
 
# following example restricts access to two C class networks and
 
# the "loopback" interface. For more examples of the syntax see
 
# the smb.conf man page. Do not enable this if (tcp/ip) name resolution does
 
# not work for all the hosts in your network.
 
; hosts allow = 192.168.1. 192.168.2. 127.
 
 
 
# Uncomment this if you want a guest account, you must add this to /etc/passwd
 
# otherwise the user "nobody" is used
 
; guest account = pcguest
 
# Allow users to map to guest:
 
map to guest = bad user
 
 
 
# Security mode. Most people will want user level security. See
 
# security_level.txt for details.
 
security = user
 
# Use password server option only with security = server or security = domain
 
# When using security = domain, you should use password server = *
 
; password server = <NT-Server-Name>
 
; password server = *
 
 
 
# Password Level allows matching of _n_ characters of the password for
 
# all combinations of upper and lower case.
 
; password level = 8
 
; username level = 8
 
 
 
# You may wish to use password encryption. Please read
 
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
 
# Do not enable this option unless you have read those documents
 
# Encrypted passwords are required for any use of samba in a Windows NT domain
 
# The smbpasswd file is only required by a server doing authentication, thus
 
# members of a domain do not need one.
 
encrypt passwords = yes
 
smb passwd file = /etc/samba/smbpasswd
 
 
 
# The following are needed to allow password changing from Windows to
 
# also update the Linux system password.
 
# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
 
# NOTE2: You do NOT need these to allow workstations to change only
 
#		the encrypted SMB passwords. They allow the Unix password
 
#		to be kept in sync with the SMB password.
 
; unix password sync = Yes
 
# You either need to setup a passwd program and passwd chat, or
 
# enable pam password change
 
; pam password change = yes
 
; passwd program = /usr/bin/passwd %u
 
; passwd chat = *New*UNIX*password* %n\n *Re*ype*new*UNIX*password* %n\n \
 
;*passwd:*all*authentication*tokens*updated*successfully*
 
 
 
# Unix users can map to different SMB User names
 
; username map = /etc/samba/smbusers
 
 
 
# Using the following line enables you to customise your configuration
 
# on a per machine basis. The %m gets replaced with the netbios name
 
# of the machine that is connecting
 
; include = /etc/samba/smb.conf.%m
 
 
 
# Options for using winbind. Winbind allows you to do all account and
 
# authentication from a Windows or samba domain controller, creating
 
# accounts on the fly, and maintaining a mapping of Windows RIDs to unix uid's 
 
# and gid's. winbind uid and winbind gid are the only required parameters.
 
#
 
# winbind uid is the range of uid's winbind can use when mapping RIDs to uid's
 
; winbind uid = 10000-20000
 
#
 
# winbind gid is the range of uid's winbind can use when mapping RIDs to gid's
 
; winbind gid = 10000-20000
 
#
 
# winbind separator is the character a user must use between their domain
 
# name and username, defaults to "\"
 
; winbind separator = +
 
#
 
# winbind use default domain allows you to have winbind return usernames
 
# in the form user instead of DOMAIN+user for the domain listed in the
 
# workgroup parameter.
 
; winbind use default domain = yes
 
#
 
# template homedir determines the home directory for winbind users, with 
 
# %D expanding to their domain name and %U expanding to their username:
 
; template homedir = /home/%D/%U
 
 
 
# When using winbind, you may want to have samba create home directories
 
# on the fly for authenticated users. Ensure that /etc/pam.d/samba is
 
# using 'service=system-auth-winbind' in pam_stack modules, and then
 
# enable obedience of pam restrictions below:
 
; obey pam restrictions = yes
 
 
 
#
 
# template shell determines the shell users authenticated by winbind get
 
; template shell = /bin/bash

Последний раз редактировалось bool, 25-03-2005 в 19:16.


Отправлено: 09:42, 25-03-2005 | #3

Название темы: изменить имя машины