SCAN to SMB on FEDORA

Scan to SMB on Fedora 13, 14, 15

Samba is the standard Windows interoperability suite of programs for Linux and Unix. It is an important component to seamlessly integrate Linux/Unix Servers and Desktops into Active Directory environments using the winbind daemon.

 

First, check if Samba is installed on Fedora.
Go to Application > System Tools > Terminal

In the terminal, run

rpm -q samba samba-client samba-common

If these 3 are not yet installed, then type

su

to enter as super user and type password.

 

Installing Samba

In the terminal, as root, run

yum install cups-libs samba samba-clients samba-common

to install samba.

 

Configuring the share folder

Still in the terminal, as root, create a folder.

mkdir /home/smb

where smb is the folder inside home directory.

To enable read & write access to the smb folder,

chmod 0777 /home/smb

To create a sample test file.

touch /home/smb/sample-file

 

To allow SELinux to read & write files from Samba,

semanage fcontext -a -t samba_share_t “/home/smb(/.*)?”

To apply changes

restorecon -R -v /home/smb

Configuring Samba

Lets edit the samba configuration file located in /etc/samba/smb.conf.

In the terminal, as root, run

cp /etc/samba/smb.conf /etc/samba/smb.conf.original

to backup the smb.conf file in case we mess up.

Then we install nano, an easy editing tool

yum install nano

Now we will edit the smb.conf file

nano /etc/samba/smb.conf

This is the main Samba configuration file.

Scroll down and add the following at the bottom of the file.

[smb]
comment = smb shared folder on fedora
path = /home/smb
writable = yes
browseable = yes
guest ok = yes

After editing the file, on your keyboard hit CTRL+X

then type “y” and hit enter to save the file.

 

Adding a Samba user

A Samba account is required to mount a Samba file system. In the terninal run,

smbpasswd -a username

then type the password.

Note: username is the fedora username

the username of my fedora is ariel.

How to identify? It is located in the title of the terminal

“ariel@r-fedora:/home/ariel”

where the name before the @ sign is the fedora username.

 

Starting the Samba service

In the terminal, as root, run

service smb start

To set Samba always on, run

chkconfig smb on

To check Samba share, run

smbclient -U username -L localhost

where username is the fedora user.

Allowing Samba through a Firewall

Go to System > Administration > Firewall

Check the Samba and Samba Client boxes.

Kyocera Command Center setup

Host name: Host name of Fedora PC or its IP address, r-fedora or 192.168.22.75

Path: Shared Folder, smb

Login User Name: Login name on Fedora, ariel

Login Password: Fedora  smbpasswd, password

or see the image below

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.