In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to build a RHEL 5 Samba server for you. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
Here's a brief introduction to the process of building a RHEL 5 Samba server:
◆ [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~] #
This is the end of this article on "how to build a RHEL 5 Samba server". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.