Public file sharing on redhat

Hello,

I want to share my folder on redhat like 192.168.x.x\share
But I can't use 3rd party packets/application or something like that.
And I want to see shared folder on windows2003 server command with [\\192.168.x.x\share](file://\\192.168.x.x\share).

Basicly I need to know what should I do step by step.

Install and configure Samba. Description here.

I don't want to use samba or something like this packets.

Can I share manually to editing local files?

for example

/etc/fstab

Short answer: no
Long answer: No, because

  1. /etc/fstab is only for locally mounted filesystems, not for filesystems made available to other computers
  2. the Linux kernel by itself does not support making filesystems available other than by NFS

However, what definition for "3rd party software" do you have? Samba is part of the default RHEL repositories, same as vi(m), OpenSSH, Perl, ...

I want to install samba but I don't know which packets are I need.
Redhat is already installed some samba files but below packets aren't related to samba service. How can I find neccessary samba rpm packets and reason I need how many files?
Most important thing is when I search samba rpm files, I don't know what I got to do.

I am waitting your kindly recommendation. :cool:

# rpm -qa | grep samba
samba-common-3.0.33-3.28.el5
samba-client-3.0.33-3.28.el5

The package you're looking for is probably called "samba-server". Check the repository with yum for it.

Also, they are called "Packages" not packets. A packet has a different meaning

Hi again, I have installed samba properly.

# rpm -qa | grep samba
system-config-samba-1.2.41-5.el5
samba-common-3.0.33-3.28.el5
samba-client-3.0.33-3.28.el5
samba-3.0.33-3.28.el5
# 

And I have configured smb.conf but I can't share my folder on redhat 5.5 server. What's my fault? :rolleyes:
[\\192.168.x.x\rmpler](file://192.168.x.x/rmpler) can't reach from 2003 server.

#vi /etc/samba/smb.conf
security = share
interfaces = lo  eth0
bind interfaces only = true
guest account = nobody

[Guest Share]
        comment = Guest access share
        writeable = yes
        path = /rpmler
        public = yes
        browseable = yes
        guest ok = yes
        guest only = yes
        guest account = nobody
#testparm
#/etc/init.d/samba reload
#chmod 777 /rmpler

Are you using an enforcing policy on SELinux? Is iptables configured?

Firstly I disabled iptable service but I can't reach shared folder.
I got permission error persist. Picture attached. W2003 server is member of our domain. I have shared redhat server according to public and no username and password.

How can solve this permission problem. Server at domain and redhat server standalone.

#chkconfig iptables off
#service iptables stop
#chkconfig ip6tables off
#service ip6tables stop

I am googling and I need your experience.

again, I asked about SELinux. Have you tried either setting it to disabled or creating a rule for samba?

check if "system-config-selinux" is installed.

To install the packages necessary for a Samba server on RHEL:

yum -y install samba samba-client

You need to configure Samba by editing /etc/samba/smb.conf.

By default samba is configured to use encrypted passwords but no passwords are set in /etc/samba/passwd.tdb. You must run smbpasswd for each user you wish to grant acrees to the server to.

If you are running SELinux, and want to share home directories you must do

setsebool -P samba_enable_home_dirs_on

to enable access to home directories.

If you are using iptables, you need to add appropriate rules for TCP ports 445 and 139 and UDP ports 137 and 138.

samba-client has already installed.

system-config-samba-1.2.41-5.el5
samba-common-3.0.33-3.28.el5
samba-client-3.0.33-3.28.el5
samba-3.0.33-3.28.el5

When I hit to shared path that [\\192.168.x.x\rpmler](file://\\192.168.x.x\rpmler) I don't want to enter username and password.
My smb.conf is only include below parameter; please help.

[global]
usershare owner only = False
security = share
guest account = nobody
interfaces = lo eth0
bind interfaces only = true
[backup]
path = /rpmler
comment = Insert comment here
public = yes
browseable = yes
writable = yes
guest ok = yes
guest only = yes

#service iptables stop

#smbclient -L localhost -U% // smbclient controlled.

#useradd -s /bin/sh -g root administrator // same username with 2003DC

#smbpasswd -a administrator // // same password with 2003DC
#vi /etc/samba/smb.conf

[global]
workgroup = argela

    security = user            
    smb passwd file = /etc/samba/smbpasswd       
    load printers = no

[share]
comment = file server
path = /root/rpmler
valid users = administrator

    admin users = administrator    
    read only = no 
    public = yes 
    browseable = yes

# ls -l
total 96
-rw------- 1 root root 1611 Mar 25 18:45 anaconda-ks.cfg
drwxr-xr-x 2 root root 4096 Mar 25 16:57 Desktop
-rw-r--r-- 1 root root 55367 Mar 25 18:45 install.log
-rw-r--r-- 1 root root 4010 Mar 25 18:38 install.log.syslog
drwxrwxrwx 2 administrator root 4096 Jun 3 15:54 rpmler
#

#etv/sysconfig/selinux/ // SELINUX=disabled

:slight_smile:

THANKS EVERYBODY ITS DONE.