LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-06-2002, 08:46 PM   #1
Frinux
LQ Newbie
 
Registered: Oct 2002
Posts: 5

Rep: Reputation: 0
Question SAMBA on REDHAT 7


http://www.geocities.com/artecz/localhost.jpg

Please click the link above to see my problem..

This is what im getting when I try to enter the localhost in the network neighborhood of windows98.

If i enter the password. The error is invalid passwrd.


What do i do? Any help?
 
Old 11-06-2002, 09:22 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
your link is dead, if you could describe the problem a little.

Your problem with windows 98 is common due to the fact that it will only log you in using the current user instead of prompting for a username, it prompt for a password only.

You need to make sure you are actually logged into windows under a username that is valid on the samba server and has access permission to the shares.

did you add the users with smbadduser?

there are log files in /var/log/samba and your smb.conf file may not be setup right.



try smbclient -L host

see if you are listing shares
 
Old 11-06-2002, 09:30 PM   #3
Frinux
LQ Newbie
 
Registered: Oct 2002
Posts: 5

Original Poster
Rep: Reputation: 0
username are all the same and passwrd for samba and redhat and windows 'test = username' 'testing = password'.

when i use this command #smbclient -L localhost I can see all my shares 'public' and 'temp'

when i try to go into \\localhost\public it prompts me to enter a password i enter the password. Error messg 'invalid password'

please try i again to copy and paste the address link http://www.geocities.com/artecz/localhost.jpg
 
Old 11-06-2002, 09:33 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
one thing that you might need to consider. On windows you have a guest account that is broadcasting shares, so you will see them even if you cannot access them. However on samba, if you do not have access and you do not allow the guest account you will not be able the list shares.
the share is IPC$
windows sometimes has autoshare enabled so you have C$ D$ etc..
when you share a folder on the default autoshare you will see it even if you have no access.


On linux this would be like having a guest share but setting file permissions to block users. The way samba works is much better if you have your users setup.
 
Old 11-06-2002, 09:50 PM   #5
Frinux
LQ Newbie
 
Registered: Oct 2002
Posts: 5

Original Poster
Rep: Reputation: 0
I do have the user 'test' added in Samba.

here is my smbconf

[global]
workgroup = Frinux
server string = Samba Server
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd

[public]
path = /Share
guest only = yes
writeable = yes
read only = yes

[temp]
path = /test
guest only = yes
writeable = no
read only = yes
 
Old 11-07-2002, 12:23 AM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
guest only = yes

are you sure that's what you want?


this would mean that a user connot access it, only the guest user which may be nobody by default

Last edited by DavidPhillips; 11-07-2002 at 12:25 AM.
 
Old 11-07-2002, 12:27 AM   #7
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
writable and read only are opposites just use

writable = no
or
writable = yes

Last edited by DavidPhillips; 11-07-2002 at 12:29 AM.
 
Old 11-07-2002, 12:35 AM   #8
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
here's one that works

try to ignore the force group apache, maybe make it something else or leave it out.

Just something I'm doing

If you can go back to the default config file and enable [homes] and get that working first.



[global]
workgroup = HOME
server string = Samba
hosts allow = 192.168.1. 192.168.0. 127.
printcap name = /etc/printcap
load printers = yes
printing = lprng
log file = /var/log/samba/%m.log
max log size = 0
security = share
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
#ssl CA certFile = /usr/share/ssl/certs/ca-bundle.crt
unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = 192.168.0.1/24 192.168.1.1/24
remote announce = 192.168.1.255 192.168.0.255
local master = yes
os level = 85
domain master = yes
preferred master = yes
name resolve order = wins lmhosts bcast
wins support = yes
dns proxy = no
#============================ Share Definitions ==============================
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = yes
printable = yes
[myfiles]
comment = Users Files
path = /home/%u/myfiles
read only = no
guest ok = no
force group = apache
force create mode = 770
create mask = 770
force directory mode = 770
browsable = yes
[public]
comment = Public
path = /var/www/pub
read only = no
guest ok = no
force group = apache
force create mode = 775
create mask = 775
force directory mode = 775
browsable = yes

Last edited by DavidPhillips; 11-07-2002 at 12:36 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba on RedHat 9 lumux Linux - Networking 1 01-06-2004 06:43 AM
Samba with RedHat 9 Panzerfrost Linux - Newbie 1 09-21-2003 08:09 AM
samba in redhat 8 ataie Linux - Networking 3 07-21-2003 07:00 AM
installing samba-3.0alpha24-1.i386.rpm into RedHat 8 and RedHat 9 Linh Linux - Newbie 2 06-04-2003 05:50 AM
Samba on Redhat 8 juanb Linux - General 1 03-26-2003 11:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration