| >> HOME >> FC5 MENU >> WindowsNT/2000 互換ファイルサーバー (Samba) |
 |
|
|
|
|
|
|
|
|
|
|
| |
[root@linux ~]# yum -y install samba
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
core [1/3]
core 100% |=========================| 1.1 kB 00:00
updates [2/3]
updates 100% |=========================| 1.2 kB 00:00
extras [3/3]
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 356 kB 00:02
updates : ################################################## 1023/1023
Added 13 new packages, deleted 19 old in 5.54 seconds
primary.xml.gz 100% |=========================| 1.2 MB 00:04
extras : ################################################## 4375/4375
Added 140 new packages, deleted 81 old in 18.09 seconds
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for samba to pack into transaction set.
samba-3.0.23a-1.fc5.1.i38 100% |=========================| 108 kB 00:01
---> Package samba.i386 0:3.0.23a-1.fc5.1 set to be updated
--> Running transaction check
--> Processing Dependency: libgnutls.so.12 for package: samba
--> Processing Dependency: samba-common = 0:3.0.23a-1.fc5.1 for package: samba
--> Processing Dependency: libcups.so.2 for package: samba
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for gnutls to pack into transaction set.
gnutls-1.2.10-1.i386.rpm 100% |=========================| 5.6 kB 00:00
---> Package gnutls.i386 0:1.2.10-1 set to be updated
---> Downloading header for samba-common to pack into transaction set.
samba-common-3.0.23a-1.fc 100% |=========================| 41 kB 00:00
---> Package samba-common.i386 0:3.0.23a-1.fc5.1 set to be updated
---> Downloading header for cups-libs to pack into transaction set.
cups-libs-1.2.2-1.1.i386. 100% |=========================| 32 kB 00:00
---> Package cups-libs.i386 1:1.2.2-1.1 set to be updated
--> Running transaction check
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
samba i386 3.0.23a-1.fc5.1 updates 16 M
Installing for dependencies:
cups-libs i386 1:1.2.2-1.1 updates 172 k
gnutls i386 1.2.10-1 core 332 k
samba-common i386 3.0.23a-1.fc5.1 updates 8.5 M
Transaction Summary
=============================================================================
Install 4 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 25 M
Downloading Packages:
(1/4): samba-3.0.23a-1.fc 100% |=========================| 16 MB 00:51
(2/4): gnutls-1.2.10-1.i3 100% |=========================| 332 kB 00:01
(3/4): samba-common-3.0.2 100% |=========================| 8.5 MB 00:30
(4/4): cups-libs-1.2.2-1. 100% |=========================| 172 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: gnutls ######################### [1/4]
Installing: cups-libs ######################### [2/4]
Installing: samba-common ######################### [3/4]
Installing: samba ######################### [4/4]
Installed: samba.i386 0:3.0.23a-1.fc5.1
Dependency Installed: cups-libs.i386 1:1.2.2-1.1 gnutls.i386 0:1.2.10-1 samba-common.i386 0:3.0.23a-1.fc5.1
Complete!
|
|
|
|
|
|
| |
|
|
| |
|
|
| |
[root@linux ~]# pdbedit -a fedora
new password: xxxxxxxxxx
retype new password: xxxxxxxxxx
Unix username: fedora
NT username:
Account Flags: [U ]
User SID: S-1-5-21-1478920562-1364168470-2641653212-2000
Primary Group SID: S-1-5-21-1478920562-1364168470-2641653212-2001
Full Name:
Home Directory: \\mbrsv02\fedora
HomeDir Drive:
Logon Script:
Profile Path: \\mbrsv02\fedora\profile
Domain: MBRSV02
Account desc:
Workstations:
Munged dial:
Logon time: 0
Logoff time: 火, 19 1月 2038 12:14:07 JST
Kickoff time: 火, 19 1月 2038 12:14:07 JST
Password last set: 火, 01 8月 2006 22:25:46 JST
Password can change: 火, 01 8月 2006 22:25:46 JST
Password must change: 火, 19 1月 2038 12:14:07 JST
Last bad password : 0
Bad password count : 0
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
|
|
|
| |
|
|
| |
[root@linux ~]# mkdir /home/samba
[root@linux ~]# chmod 777 /home/samba
|
|
|
| |
|
|
| |
[root@linux ~]# vi /etc/samba/smb.conf
# 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
#
# For a step to step guide on installing, configuring and using samba,
# read the Samba-HOWTO-Collection. This may be obtained from:
# http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf
#
# Many working examples of smb.conf files can be found in the
# Samba-Guide which is generated daily and can be downloaded from:
# http://www.samba.org/samba/docs/Samba-Guide.pdf
#
# 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]
unix charset = eucJP
display charset = eucJP
dos charset = CP932
# workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
workgroup = WORKGROUP
unix password sync = Yes
passwd program = /usr/bin/passwd %u
:
:
# 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
hosts allow = 192.168.1. 127.
:
:
# A publicly accessible directory, but read only, except for people in
# the "staff" group
[public]
comment = Public Stuff
path = /home/samba
public = yes
writable = yes
; printable = no
; write list = @staff
create mask = 0777
force create mode = 0777
security mask = 0777
force security mode = 0777
directory mask = 0777
force directory mode = 0777
directory security mask = 0777
force directory security mode = 0777
valid users = user1, user2
force user = root
|
|
|
|
|
|
| |
|
|
| |
[root@linux ~]# service smb start
SMB サービスを起動中: [ OK ]
NMB サービスを起動中: [ OK ]
|
|
|
| |
|
|
| |
[root@linux ~]# chkconfig smb on
[root@linux ~]# chkconfig --list smb
smb 0:off 1:off 2:on 3:on 4:on 5:on 6:off
|
|
|
|
|
|
| |
|
|
 |
|
 |
 |