Public file sharing on redhat

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Public file sharing on redhat
# 8  
Old 06-02-2011
Hi again, I have installed samba properly.

Code:
# 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? Smilie
\\192.168.x.x\rmpler can't reach from 2003 server.

Code:
#vi /etc/samba/smb.conf

Code:
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

Code:
#testparm
#/etc/init.d/samba reload
#chmod 777 /rmpler


Last edited by pludi; 06-02-2011 at 09:56 AM..
# 9  
Old 06-02-2011
Are you using an enforcing policy on SELinux? Is iptables configured?
# 10  
Old 06-02-2011
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.
Public file sharing on redhat-sharepng
# 11  
Old 06-02-2011
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.
# 12  
Old 06-02-2011
To install the packages necessary for a Samba server on RHEL:
Code:
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
Code:
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.
# 13  
Old 06-03-2011
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 I don't want to enter username and password.
My smb.conf is only include below parameter; please help.

HTML Code:
[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
# 14  
Old 06-12-2011
#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

Smilie

THANKS EVERYBODY ITS DONE.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Wget for downloading a public file (stream) as mp4

I need a hint for using wget for getting a free content from a TV station that is streaming its material for a while until it appears on any video platform, that means no use of illegal methods, because it is on air, recently published and available. But reading the manual for wget I tried the... (5 Replies)
Discussion started by: 1in10
5 Replies

2. HP-UX

mount windows file sharing on hp-ux

Hi all, Can anyone teach me how to mount windows file sharing on hp-ux thanks (2 Replies)
Discussion started by: pantas manik
2 Replies

3. UNIX for Dummies Questions & Answers

file sharing

Hello all, Just curious. I have several unix echo commands(echo Y > file.txt) running in parallel(each directs a value of 'Y' to the same file). What happens if 2 echo's collide(trying to the write to the same file at the same time)? Not sure how unix deals with this. Thanks ... (1 Reply)
Discussion started by: robert4732
1 Replies

4. UNIX for Advanced & Expert Users

secure file transfer with public key

Hi, I was provided with Server IP Username and Password (worked when tested basic FTP) Public key (GnuPG v1.0.6) They refuse when I send it using basic FTP and insists for encryption. I have Solaris 10 and Linux in my environment. How can I encrypt and send them securely?... (5 Replies)
Discussion started by: prvnrk
5 Replies

5. UNIX for Dummies Questions & Answers

File sharing

I'm not sur how Im a new user (6 Replies)
Discussion started by: chris1982
6 Replies

6. IP Networking

sharing of IP address for load sharing avoiding virtual server & redirection machine

I have RedHat 9.0 installed on three of my servers (PIII - 233MHz) and want that they share a common IP address so that any request made reaches each of the servers. Can anyone suggest how should I setup my LAN. I'm new to networking in Linux so please elaborate and would be thankful for a timely... (2 Replies)
Discussion started by: Rakesh Ranjan
2 Replies

7. UNIX for Advanced & Expert Users

file sharing

i want to share some file to some user of my group(there are many users in a perticular group). So how should i do that?And i m not a super user. (5 Replies)
Discussion started by: yogesh_powar
5 Replies

8. UNIX for Dummies Questions & Answers

file sharing

my computer and the rest of my network run Mac OS X , and i was wondering how or if your can transfer files from other computers with the Terminal. i also wanna know where i can download a free UNIX version and more on the sudo command (2 Replies)
Discussion started by: Pyrohotdog
2 Replies
Login or Register to Ask a Question