Professional Documents
Culture Documents
Samba
Samba
Samba
server router
ip address . server .
server ip address (static IP/Fixed IP) .
( GUI ) NetworkManager
. server
. NetworkManager
user .
NetworkManager
.
user
.
desktop right click , Open in Terminal :
network interfaces
:
: windows capital letters,
simple letters !
.
!
Code:
ifconfig
windows ipconfig .
:
network interfaces .
.
lo, p2p1, p7p1 network interfaces . lo loop back
network interface . Windows .
add/remove devices .
.
loop back interface
interfaces . , p2p1,p7p1 network
interfaces 2 .
. p2p1, p7p1 network interfaces
.
: em0, em1
?
ubuntu centos 5
eth0, eth1,eth2..
.
redhat linux 6/fedora 15 .
CMOS network interface
. centos 6 .
p2p1, p7p1
.
root (root
. windows administrator ).
:
Code:
su root
root . . *
.
root prompt .
user prompt $ (
). root prompt # .
user
:
Code:
whoami
user :
root :
NM_CONTROLLED=yes interface
NetworkManager .
Code:
NM_CONTROLLED="no"
.
BOOTPROTO=dhcp dhcp ip address
. windows obtain ip automatically
.
Code:
BOOTPROTO="none"
.
ONBOOT=no
(boot time) interface .
Code:
ONBOOT="yes"
.
ONBOOT="yes"
.
ip address .
, router ip 192.168.10.1 . ip
. , router dhcp
192.168.10.10 ip address . .
192.168.10.2 - 192.168.10.9 ip .
server 192.168.10.2 .
:
Code:
IPADDR="192.168.10.2"
NETMASK="255.255.255.0"
GATEWAY="192.168.10.1"
root prompt .
ip address .
:
Code:
chkconfig network on
service network restart
ip address ifconfig .
:
DNS
address . dhcp router dhcp
.
google DNS .
/etc/resolv.conf .
nano
.
:
: , , ,
!!!
Code:
echo "nameserver 8.8.8.8" > /etc/resolv.conf
echo "nameserver 8.8.4.4" >> /etc/resolv.conf
:
Code:
cat /etc/resolv.conf
NetworkManager .
:
Code:
chkconfig NetworkManager off
service NetworkManager stop
ip address .
IP samba service
firewall samba ports .
samba service terminal root
.
:
Code:
chkconfig smb on
:
:
Code:
chkconfig nmb on
root
firewall configuration :
Trusted Services
Samba Samba Client scroll :
Apply :
. Yes :
TAB . space
bar .
CUSTOMIZE . TRUSTED SERVICES
:
OK .
:
/etc/samba/smb.conf.backup
:
Code:
yum install samba-swat
swat
, . Y
.
.
.
:
. :
Code:
nano /etc/xinetd.d/swat
nano editor :
disable = yes :
Code:
disable
= no
(CTRL+X )
:
Code:
chkconfig xinetd on
service xinetd start
:
Code:
http://localhost:901
WIZARD .
options :
Server Type : Domain Controller
Configure Wins As : Server for Client Use
Expose Home Directories : No
COMMIT .
GLOBALS Global Settings :
settings .
. settings .
Code:
Change View To : Advanced .
WORKGROUP : EKDOMAIN ( domain . ).
NETBIOS NAME : SERVER ( server . windows network
. )
SERVER STRING : EKDOMAIN CONTROLLER ( description .
)
PASSWD PROGRAM : /usr/bin/passwd %u
PASSWD CHAT DEBUG : YES
USERNAME MAP : /etc/samba/smbusers
UNIX PASSWORD SYNC : YES
LOG LEVEL : 3
PROFILE ACLS : YES
COMMIT CHANGES .
:
SHARES .
Change view to : Advanced .
:
CREATE SHARE :
Code:
netlogon
Globals settings . ,
settings .
Code:
COMMENT : Network Logon Service
PATH : /home/samba/netlogon
VALID USERS : %U
ADMIN USERS : administrator
READ ONLY : yes
GUEST OK :yes
SHARE MODES : no
BROWSEABLE : no
AVAILABLE : yes
COMMIT CHANGES .
:
COMMIT CHANGES .
:
(command output)
. .
chmod, chown FTP .
groupadd .
mkdir . windows command prompt
.
core system . .
:
Code:
nano /etc/nsswitch.conf
Code:
. :
:
Code:
hosts: files wins mdns4_minimal [NOTFOUND=return] dns myhostname
CTRL+x .
root samba server administrator .
.
Code:
smbpasswd -a root
root . .
selinux . :
Code:
nano /etc/selinux/config
SELINUX=enforcing :
Code:
SELINUX=disabled
CTRL+x .
reboot .
Domain controller .
users
.