Quick guide to install Samba/CIFS in Linux

You may want to install Samba/CIFS in a linux host to share files with other Windows computer or to use as a media server with a networked media player.

If samba is missing, install it in the host machine (foomachine):

sudo yum install samba

Create a new smb user:

/sbin/smbpasswd -a foouser

Start / check status / restart samba service:

/etc/rc.d/init.d/smb start / status / restart

To make samba service run automatically at startup:

/sbin/chkconfig smb on

Type \\foomachine\foouser  in Windows explorer and type the username foouser and the password to access your linux files.

To add other directories to share with samba, edit /etc/samba/smb.conf

Resource: http://www.cpqlinux.com/samba.html

Support CNX Software - Donate via PayPal or cryptocurrencies, become a Patron on Patreon, or buy review samples
Notify of