linux下Samba服務配置與安裝
一,RPM包安裝samba伺服器、
==================================================
[root@nyist3 root]# mount /mnt/cdrom
[root@nyist3 root]# cd /mnt/cdrom/RedHat/RPMS
[root@nyist3 RPMS]# rpm -ivh samba-c
samba-client-2.2.7a-7.9.0.i386.rpm samba-common-2.2.7a-7.9.0.i386.rpm
[root@nyist3 RPMS]# rpm -ivh samba-common-2.2.7a-7.9.0.i386.rpm
warning: samba-common-2.2.7a-7.9.0.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing... ########################################### [100%]
package samba-common-2.2.7a-7.9.0 is already installed
[root@nyist3 RPMS]# rpm -ivh sa
samba-2.2.7a-7.9.0.i386.rpm sane-backends-1.0.9-5.i386.rpm
samba-client-2.2.7a-7.9.0.i386.rpm sane-frontends-1.0.9-2.i386.rpm
samba-common-2.2.7a-7.9.0.i386.rpm
[root@nyist3 RPMS]# rpm -ivh samba-2.2.7a-7.9.0.i386.rpm
warning: samba-2.2.7a-7.9.0.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing... ########################################### [100%]
1:samba ########################################### [100%]
[root@nyist3 RPMS]# rpm -ivh samba-client-2.2.7a-7.9.0.i386.rpm
warning: samba-client-2.2.7a-7.9.0.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing... ########################################### [100%]
package samba-client-2.2.7a-7.9.0 is already installed
[root@nyist3 RPMS]# rpm -ivh redhat-config-samba-1.0.4-1.noarch.rpm
warning: redhat-config-samba-1.0.4-1.noarch.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing... ########################################### [100%]
1:redhat-config-samba ########################################### [100%]
[root@nyist3 RPMS]# cd;eject
[root@nyist3 root]# mount /mnt/cdrom
[root@nyist3 root]# cd /mnt/cdrom/RedHat/RPMS
[root@nyist3 RPMS]# rpm -ivh sa
samba-swat-2.2.7a-7.9.0.i386.rpm sawfish-1.2-5.i386.rpm
sash-3.4-16.i386.rpm
[root@nyist3 RPMS]# rpm -ivh samba-swat-2.2.7a-7.9.0.i386.rpm
warning: samba-swat-2.2.7a-7.9.0.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing... ########################################### [100%]
1:samba-swat ########################################### [100%]
=====================================================================
檢視預設的配置檔案/etc/samba/sa
[root@nyist3 RPMS]# grep -v "#" /etc/samba/smb.conf|grep -v ";"|sort -u
browseable = no
comment = All Printers
comment = Home Directories
create mode = 0664
directory mode = 0775
dns proxy = no
encrypt passwords = yes
[global]
guest ok = no
[homes]
load printers = yes
log file = /var/log/samba/%m.log
max log size = 0
obey pam restrictions = yes
pam password change = yes
passwd chat = *New*password* %n/n *Retype*new*password* %n/n *passwd:*all*authentication*tokens*updated*successfully*
passwd program = /usr/bin/passwd %u
path = /var/spool/samba
printable = yes
printcap name = /etc/printcap
[printers]
printing = cups
security = user
server string = Samba Server
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
unix password sync = Yes
valid users = %S
workgroup = MYGROUP
writable = no
writable = yes
======================================================================
新增使用者changlin
================
[root@nyist3 RPMS]# useradd changlin
[root@nyist3 RPMS]# smbpasswd -a changlin
New SMB password:
Retype new SMB password:
Password changed for user changlin.
================
檢視samba伺服器資源唄使用的情況
=============================
[root@nyist3 RPMS]# smbstatus
Samba version 2.2.7a
Service uid gid pid machine
----------------------------------------------
IPC$ changlin changlin 2592 c50039780a554ca (10.255.6.163) Sat Sep 20 22:32:32 2008
changlin changlin changlin 2592 c50039780a554ca (10.255.6.163) Sat Sep 20 22:32:36 2008
No locked files
[root@nyist3 RPMS]# smbstatus -b
Samba version 2.2.7a
PID Username Machine Time logged in
-------------------------------------------------------------------
2592 changlin c50039780a554ca Sat Sep 20 22:32:32 2008
==================================================
啟動伺服器
[root@nyist3 RPMS]# service smb start
啟動 SMB 服務: [ 確定 ]
啟動 NMB 服務:
==============================
相關文章
- ubuntu系統samba服務的安裝配置UbuntuSamba
- ubuntu 22.04 安裝samba服務UbuntuSamba
- Linux平臺下snmp服務的安裝和配置Linux
- Linux下rsync安裝與配置Linux
- Kali Linux常用服務配置教程安裝及配置DHCP服務Linux
- Linux下安裝SVN服務端Linux服務端
- 【配置】Centos7 配置samba服務CentOSSamba
- MySQL - 下載與安裝配置(Linux)MySqlLinux
- Samba服務的配置總結Samba
- Samba安裝與使用Samba
- Linux環境下安裝配置vsftpd服務(三種認證模式)LinuxFTP模式
- CentOS7下RabbitMQ服務安裝配置CentOSMQ
- Linux伺服器---安裝sambaLinux伺服器Samba
- 如何在Linux下部署Samba服務?LinuxSamba
- LDAP系列(三)LDAP + Samba 安裝配置LDASamba
- Samba服務Samba
- Linux 安裝Mosquitto服務LinuxUI
- linux 安裝git服務LinuxGit
- Linux下ODBC安裝配置Linux
- linux maven安裝與配置LinuxMaven
- Linux下cifs公用網際網路系統和samba服務LinuxSamba
- Linux & Windows 環境下 RabbitMQ 安裝與基本配置LinuxWindowsMQ
- Linux & Windows 環境下 Redis 安裝與基本配置LinuxWindowsRedis
- Linux下安裝java及配置(yum安裝)LinuxJava
- CentOS.7下安裝配置FTP和SFTP服務CentOSFTP
- 服務端常見服務安裝及配置服務端
- centos7 (阿里雲、linux) 單機spark的安裝與配置詳解(jdk安裝與配置,scala安裝與配置,hadoop安裝與配置,spark安裝與配置)CentOS阿里LinuxSparkJDKHadoop
- 如何快速搭建Linux系統中Samba服務LinuxSamba
- windows下安裝Tomcat服務WindowsTomcat
- 自動批量對linux伺服器安裝配置NTP服務Linux伺服器
- Linux系統安裝Redis服務LinuxRedis
- 在 Windows 平臺下安裝與配置 MySQL 5.7.36之啟動與關閉MySQL服務WindowsMySql
- linux下安裝node npm並配置LinuxNPM
- Linux環境下nginx安裝配置LinuxNginx
- maven下載、安裝與配置Maven
- 通過 Samba 服務,建立 Linux 開發環境SambaLinux開發環境
- 透過 Samba 服務,建立 Linux 開發環境SambaLinux開發環境
- Mac與Linux實現多種方式安裝Redis服務MacLinuxRedis
- 9、Linux下mysql資料庫安裝與配置實操LinuxMySql資料庫