config Samba service on Redhat 5
2010-07-09 09:24
274 查看
My T60 laptop running out of Harddisk, today plan to config a samba service on my redhat5 linux for storing some files not often used.
Steps:
1. /etc/init.d/smb start
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]
pgrep nmbd
10207
[root@dgswxl init.d]# netstat -tlnp |grep smgb
[root@dgswxl init.d]# netstat -tlnp |grep smb
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 10203/smbd
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 10203/smbd
2. close the firewall if needed.
iptables -F
3. add samba user,
smbpasswd -a wxl
New SMB password:
Retype new SMB password:
Added user wxl.
4. in /etc/smb.conf, add the following,
[wxlsdir]
comment = wxl's Service
path = /home/wxl/pcfile
valid users = wxl
public = no
writable = yes
printable = no
5. Restart the service,
/etc/init.d/smb restart
6. Check the samba status,
smbclient -L localhost -U wxl
omain=[DGSWXL] OS=[Unix] Server=[Samba 3.0.23c-2]
Sharename Type Comment
--------- ---- -------
wxlsdir Disk wxl's Service
IPC$ IPC IPC Service (Samba Server)
wxl Disk Home Directories
Domain=[DGSWXL] OS=[Unix] Server=[Samba 3.0.23c-2]
Server Comment
--------- -------
Workgroup Master
--------- -------
WXL DGSWXL
7. Then from the Windows to access the linux by, //{hostip}
Steps:
1. /etc/init.d/smb start
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]
pgrep nmbd
10207
[root@dgswxl init.d]# netstat -tlnp |grep smgb
[root@dgswxl init.d]# netstat -tlnp |grep smb
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 10203/smbd
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 10203/smbd
2. close the firewall if needed.
iptables -F
3. add samba user,
smbpasswd -a wxl
New SMB password:
Retype new SMB password:
Added user wxl.
4. in /etc/smb.conf, add the following,
[wxlsdir]
comment = wxl's Service
path = /home/wxl/pcfile
valid users = wxl
public = no
writable = yes
printable = no
5. Restart the service,
/etc/init.d/smb restart
6. Check the samba status,
smbclient -L localhost -U wxl
omain=[DGSWXL] OS=[Unix] Server=[Samba 3.0.23c-2]
Sharename Type Comment
--------- ---- -------
wxlsdir Disk wxl's Service
IPC$ IPC IPC Service (Samba Server)
wxl Disk Home Directories
Domain=[DGSWXL] OS=[Unix] Server=[Samba 3.0.23c-2]
Server Comment
--------- -------
Workgroup Master
--------- -------
WXL DGSWXL
7. Then from the Windows to access the linux by, //{hostip}
相关文章推荐
- config Tomcat service on ubuntu14 server as daemon thread
- ConfigSource attribute on system.serviceModel section
- ConfigSource attribute on system.serviceModel section
- ConfigSource attribute on system.serviceModel section(转)
- App.config 中读写appSettings、system.serviceModel终结点,以及自定义配置节
- USB-SAMBA Service (RDK-B)
- Issue 71 - pymssql - Undefined symbols on Mac, CentOS, Redhat with pre-compiled build - A fast MS SQL Server client library for Python directly using C API instead of ODBC. It is Python DB-API 2.0 compliant. Works on Linux, *BSD, Solaris, Mac OS X and Win
- MySQL: 2003 can't connect to mysql service on 'xxx' (10060)
- Could not start the service on local computer. Error 1053: the service did not respond to the start or control request i
- My other android app : based on location based service app
- Install and config Redis on Mac OS X via Homebrew
- Installation on RedHat Varnish
- Android AIDL bindService后不能调用onServiceConnected方法(一种情况)
- Install and config Apache, PHP, MySql on windows XP
- service XXX does not support chkconfig
- redhat 7 samba 连接不上
- hudson install on Redhat
- 调试windows service的onstart事件
- GIMR (Management Database) Registers Into Same Service that the Database Instance also registers On
- redhat5.1的samba的配置及安装