成都创新互联网站制作重庆分公司

RHEL5Samba服务器如何搭建

这篇文章将为大家详细讲解有关RHEL 5 Samba服务器如何搭建,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。

网站建设哪家好,找创新互联公司!专注于网页设计、网站建设、微信开发、小程序开发、集团企业网站建设等服务项目。为回馈新老客户创新互联还提供了沈北新免费建站欢迎大家使用!

下面来简单的介绍一下RHEL 5 Samba服务器搭建的过程:

◆[root@Linserv~]#rpm-qa|grepsamba
◆[root@Linserv~]#mount/dev/cdrom/mnt
mount:blockdevice/dev/cdromiswrite-protected,mountingread-only
◆[root@Linserv~]#rpm-ivh/mnt/Server/samba-3.0.23c-2.i386.rpm
warning:/mnt/Server/samba-3.0.23c-2.i386.rpm:HeaderV3DSAsignature:NOKEY,keyID37017186
error:Faileddependencies:
samba-common=0:3.0.23c-2isneededbysamba-3.0.23c-2.i386
◆[root@Linserv~]#eject
◆[root@Linserv~]#!mou
mount/dev/cdrom/mnt
mount:blockdevice/dev/cdromiswrite-protected,mountingread-only
◆[root@Linserv~]#rpm-ivh/mnt/Server/samba-common-3.0.23c-2.i386.rpm

warning:/mnt/Server/samba-common-3.0.23c-2.i386.rpm:HeaderV3DSAsignature:NOKEY,keyID37017186
Preparing...###########################################[100%]
1:samba-common###########################################[100%]
◆[root@Linserv~]#mount/dev/cdrom/mnt
mount:blockdevice/dev/cdromiswrite-protected,mountingread-only
◆[root@Linserv~]#rpm-ivh/mnt/Server/samba-3.0.23c-2.i386.rpm
warning:/mnt/Server/samba-3.0.23c-2.i386.rpm:HeaderV3DSAsignature:NOKEY,keyID37017186
Preparing...###########################################[100%]
1:samba###########################################[100%]
◆[root@Linserv~]#vi/etc/samba/smb.conf
[global]
workgroup=MYGROUP
serverstring=SambaServer
security=user
loadprinters=yes
cupsoptions=raw
logfile=/var/log/samba/%m.log
maxlogsize=50
DNSproxy=no
[homes]
comment=HomeDirectories
browseable=no
writable=yes
[printers]
comment=AllPrinters
path=/usr/spool/samba
browseable=no
guestok=no
writable=no
printable=yes
[public]
path=/home/public
public=yes
onlyguest=yes
writeable=no
◆[root@Linserv~]#servicesmbstart
StartingSMBservices:[OK]
StartingNMBservices:[OK]
◆[root@Linserv~]#mkdir/home/public
◆[root@Linserv~]#chownnobody:nobody/home/public/
◆[root@Linserv~]#vi/home/public/test.doc
◆[root@Linserv~]#useraddsamba1
◆[root@Linserv~]#useraddsamba2
◆[root@Linserv~]#tail/etc/passwd
rpc:x:32:32:PortmapperRPCuser:/:/sbin/nologin
sshd:x:74:74:Privilege-separatedSSH:/var/empty/sshd:/sbin/nologin
rpcuser:x:29:29:RPCServiceUser:/var/lib/nfs:/sbin/nologin
nfsnobody:x:65534:65534:AnonymousNFSUser:/var/lib/nfs:/sbin/nologin
pcap:x:77:77::/var/arpwatch:/sbin/nologin
a:x:500:500::/home/a:/bin/bash
b:x:501:501::/home/b:/bin/bash
virtual:x:502:502::/home/ftpsite:/bin/bash
samba1:x:503:503::/home/samba1:/bin/bash
samba2:x:504:504::/home/samba2:/bin/bash
◆[root@Linserv~]#cat/etc/samba/smbpasswd
◆[root@Linserv~]#smbpasswd-asamba1
NewSMBpassword:
RetypenewSMBpassword:
Addedusersamba1.
◆[root@Linserv~]#smbpasswd-asamba2
NewSMBpassword:
RetypenewSMBpassword:
Addedusersamba2.
◆[root@Linserv~]#cat/etc/samba/smbpasswd
samba1:503:CCF9155E3E7DB453AAD3B435B51404EE:3DBDE697D71690A769204BEB12283678::LCT-4921594C:
samba2:504:CCF9155E3E7DB453AAD3B435B51404EE:3DBDE697D71690A769204BEB12283678::LCT-4921595B:

RHEL 5 Samba服务器如何搭建RHEL 5 Samba服务器如何搭建 RHEL 5 Samba服务器如何搭建

◆[root@Linserv~]#mount/dev/cdrom/mnt
mount:blockdevice/dev/cdromiswrite-protected,mountingread-only
◆[root@Linserv~]#rpm-ivh/mnt/Server/samba-client-3.0.23c-2.i386.rpm
warning:/mnt/Server/samba-client-3.0.23c-2.i386.rpm:HeaderV3DSAsignature:NOKEY,keyID37017186
Preparing...###########################################[100%]
1:samba-client###########################################[100%]
◆[root@Linserv~]#umount/mnt
◆[root@Linserv~]#mount-ousername=administrator//192.168.0.21/Inetpub/mnt
Password:
◆[root@Linserv~]#ls/mnt
AdminScriptswwwroot
◆[root@Linserv~]#

RHEL 5 Samba服务器如何搭建RHEL 5 Samba服务器如何搭建

关于“RHEL 5 Samba服务器如何搭建”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。


当前标题:RHEL5Samba服务器如何搭建
URL标题:http://cxhlcq.com/article/ijheec.html

其他资讯

在线咨询

微信咨询

电话咨询

028-86922220(工作日)

18980820575(7×24)

提交需求

返回顶部