LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-04-2003, 04:13 PM   #1
gmansfield
LQ Newbie
 
Registered: Aug 2003
Posts: 15

Rep: Reputation: 0
Angry Samaba share configuration problems


I am having trouble trying to get a samba server configured to act as a file server. I have several Windows machines that are part of a workgroup called home. I have a linux machine with Red Hat 9 installed and working ok. I set up a folder on the linux machine that I have shared. Its called Music. My problem is that although from the windows machine I can see the linux machine I am unable to browse the shared folder. If I browse the linux machine I get asked for a password. I use a valid login " graham" with a valid password. Both password and login are valid on both windows machines and the linux machine. I am using windows xp.

I releaise that my problem is in the config file so I have posted it in case someone can see what I am doing wrong.

#======================= Global Settings =====================================
[global]

workgroup = Home
server string = File Server
hosts allow = 192.168.1.
printcap name = /etc/printcap
load printers = yes
printing = cups
guest ok = yes
guest account = graham
log file = /var/log/samba/%m.log
max log size = 0
security=user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:
pam password change = yes
obey pam restrictions = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
username map = /etc/samba/smbusers
guest ok = yes
dns proxy = no


[Music]
path = /home/graham/Music
public = yes
writeable = yes
comment = Music files
guest ok = yes


any help on thios would be much appreciated.
 
Old 09-08-2003, 11:02 AM   #2
clothocan
LQ Newbie
 
Registered: Dec 2002
Posts: 13

Rep: Reputation: 0
I'm having the same problem. All the docs seem to be under the assumption that I already know what I'm doing before I read them.
 
Old 09-08-2003, 01:06 PM   #3
stweaver
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Rep: Reputation: 0
I seemed to have the same problem with the version of Samba that came with my Red Hat 9 CDs. I went to the Samba project, grabbed the latest version and, voila, filesharing worked (Win2000). A guy I work with installed from the same Red Hat 9 CDs and his worked. Perhaps it was a configuration issue and reinstalling corrected it....don't know...Good luck

http://www.samba.org
 
Old 09-08-2003, 02:14 PM   #4
clothocan
LQ Newbie
 
Registered: Dec 2002
Posts: 13

Rep: Reputation: 0
I did manage to get it working just a few minutes ago without reinstalling!! (I don't believe it would have fixed the problem, anyway...)

All the usernames on the Windows machine are Capitalized. The Linux usernames aren't, of course. Through Webmin I added a username mapping, and it all worked just ducky.

Sooo... I checked in /etc/samba, and there was a new file called user.map that had the usernames I had just added through webmin in the form of

username=Username

I added the rest of my usernames to it in both their linux and windows variations, and everybody can access fine now.

Now I'm wondering... can this be used to map different windows users to different samba users? Or perhaps multiple windows users to a single samba user? hmmmm.....
 
Old 09-08-2003, 04:11 PM   #5
gmansfield
LQ Newbie
 
Registered: Aug 2003
Posts: 15

Original Poster
Rep: Reputation: 0
Well I now have a really weird thing happening. I added browsable=yes to my config file and then 2 out of my 3 windows machine can now access the Music directory HOWEVER the other one can't and the strange this is they all have usernames of graham and the same passwords. Anyone got any ideas on this one.

StWeaver: one thing is if you have the firewall turned on you will have problems and that might have happpend in the install process.

One other thing is it possible not have to have to use a username and password. What I really want is to be able to just have an open share that any of my network can read and right to?
 
Old 02-24-2004, 07:47 PM   #6
scorpnik
LQ Newbie
 
Registered: Feb 2004
Distribution: fedora
Posts: 1

Rep: Reputation: 0
redhat 9 samba issues

Red hat 9 sucked bigtime for this I finally gave up

best advise load up redhat 10 or fedora 1.0 this comes with samba 3 update configure it through the user interface and it will work without
problems make sure that your windows machines and linux box'es are on the same network and same workgroup... if you are running a windows domain then use the domain name for the workgroup instead...

I dont know jack about linux except how to install it and configure smb and it worked just fine good luck
 
Old 02-24-2004, 11:08 PM   #7
Wags
LQ Newbie
 
Registered: Aug 2003
Location: Australia mate
Distribution: Slackware 9.1
Posts: 23

Rep: Reputation: 15
get webmin or swat save lots of hassles
 
Old 04-03-2006, 02:55 PM   #8
mkim
LQ Newbie
 
Registered: Oct 2005
Distribution: Red Hat 7.3
Posts: 5

Rep: Reputation: 0
I had a similar problem, had users set up on my linux (red hat 7), and users set up on my Xp boxes, but when i tried to connect to samba shares, it didn't work. Finally realized that i had to add the usernames/passwords to samba as well. haven't looked at the config file yet, but i just used swat to add the smbusers. I think the commandline is smbpasswd ?? maybe that will help someone, as any of th eusers i add in there can now get the shares i want them to.
 
  


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
Printing to a Windows Samaba Share Maskkkk Linux - Networking 1 09-07-2004 01:15 PM
Samaba problem Mr.Bone Linux - Networking 5 08-29-2004 05:32 PM
Samaba Robush Linux - Newbie 3 01-29-2004 08:45 PM
Samaba Problems biggiefatts Linux - Networking 6 06-02-2003 05:42 PM
Samaba setup help ogden2k Linux - Networking 9 02-05-2003 12:28 PM


All times are GMT -5. The time now is 12:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration