RHEL 5 Samba服务器如何搭建

72次阅读
没有评论

共计 3444 个字符,预计需要花费 9 分钟才能阅读完成。

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

下面来简单的介绍一下 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 服务器如何搭建”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。

正文完
 
丸趣
版权声明:本站原创文章,由 丸趣 2023-08-25发表,共计3444字。
转载说明:除特殊说明外本站除技术相关以外文章皆由网络搜集发布,转载请注明出处。
评论(没有评论)