您好,登录后才能下订单哦!
这篇文章将为大家详细讲解有关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:
◆[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服务器如何搭建”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。