redhat samba安裝配置

來源:互聯網
上載者:User

標籤:

突然想要用,好久沒配過這玩意了,再次配置一次,記錄一下過程。

1.掛載鏡像     mount -o loop ~/Desktop/RHEL_5.5\ i386\ DV.iso /mnt     然後查看是否掛再成功。
 2.安裝rpm包     cd /mnt/Server,將相關rpm包先拷貝出來至少會用到:(安裝期間若有依賴包沒有安裝,根據提示安裝就好)perl-5.8.8-27.el5.i386.rpmperl-Convert-ASN1-0.20-1.1.noarch.rpmsamba-common-3.0.33-3.28.el5.i386.rpmsamba-3.0.33-3.28.el5.i386.rpmsamba-client-3.0.33-3.28.el5.i386.rpm 3.配置     vi /etc/smb.conf ;[share]
;comment = Public Stu
;path = /home/frank
;public = yes
;writable = yes
;browseable = yes
;printable = no
;valid users = root frank

[arm]
comment = arm-kernel
path = /disk/A9
browseable = yes 4.設定samba使用者名稱和密碼     smbpasswd -a root     接下來會提示設定密碼

[[email protected] samba]# smbpasswd --help
smbpasswd: invalid option -- -
When run by root:
smbpasswd [options] [username]
otherwise:
smbpasswd [options]

options:
-L local mode (must be first option)
-h print this usage message
-s use stdin for password prompt
-c smb.conf file Use the given path to the smb.conf file
-D LEVEL debug level
-r MACHINE remote machine
-U USER remote username
extra options when run by root or in local mode:
-a add user
-d disable user
-e enable user
-i interdomain trust account
-m machine trust account
-n set no password
-W use stdin ldap admin password
-w PASSWORD ldap admin password
-x delete user
-R ORDER name resolve order

 

5.重啟smb服務     service smb restart

redhat samba安裝配置

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.