LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 05-01-2004, 10:35 PM   #1
florian_mrt
Member
 
Registered: Mar 2004
Location: Bristol, UK
Distribution: Linux Red Hat 9
Posts: 37

Rep: Reputation: 16
Samba problem on RedHat9


Hello ppl,

I have on a router modem, winXP-box, win2000-box, RedHat9-box.

The RedHat9 box is a spare part assembled box, LAN is working cause I have internet on the redhat box. I try to log through my laptop with winXPPro, username Florian (the name in the top of the START-menu, right?) and password mypassword. I did what a previous user did using a GUI thing, but tried his thing nonetheless (his thread http://www.linuxquestions.org/questi...787#post909787).

I didnt do su cause i was logged in as root anyway
adduser florian reported user already added which I expected.
smbpasswd florian
mypassword
mypassword
password successfully changed
everything ok there. Changed the smb.conf file EXACTLY like his, except in the [public] section:
path = /home/samba (a folder I created before with a HelloWorld.txt file in it).Here follows his WORKING smb.conf:


# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2004/04/09 22:43:26

# Global parameters
[global]
workgroup = MSHOME
security = USER
null passwords = Yes
ldap ssl = no
encrypt passwords = yes
smb passwd file = /etc/samba/private/smbpasswd

[homes]
comment = Home Directories
browseable = no
read only = no
create mode = 0750

[public]
comment = Public Stuff
path = /mnt/2winData
public = yes
writable = yes
printable = no


(Does it matter if you add a linux and samba user florian with a lower-case f when you log in WinXPPro with Capital F Florian?

What I want to reach is a file-storage server as the linux has a rather big disk. Security would be exagerated for the moment as all LAN members are friends. The whole thing is like a learning experience for me, but the fun - after two months - is changing into another emotion.

Really, some concentration from someone on my problem would help me forward. Im out of idears. I hoped that someone in my university would be able to better cope with samba stuff, but no-one.

Thanks for any help.
 
Old 05-01-2004, 10:37 PM   #2
florian_mrt
Member
 
Registered: Mar 2004
Location: Bristol, UK
Distribution: Linux Red Hat 9
Posts: 37

Original Poster
Rep: Reputation: 16
Two more things

Two more things;

I can see the RedHat9 box from my winXP laptop, and I can smbmount a shared folder on my laptop.
 
Old 05-01-2004, 11:00 PM   #3
sandiegocal
LQ Newbie
 
Registered: Mar 2004
Location: san diego
Posts: 16

Rep: Reputation: 0
before anyone tries to help you, they really should read the flaming message you left me at:
http://www.linuxquestions.org/questi...hreadid=168305

that was really uncalled for.
i had said that i was willing to help you with a step by step answer, just post a separate thread.

i refuse to help someone who is just plain rude.

good luck figuring this out - perhaps other people will help you.
 
Old 05-02-2004, 11:56 AM   #4
florian_mrt
Member
 
Registered: Mar 2004
Location: Bristol, UK
Distribution: Linux Red Hat 9
Posts: 37

Original Poster
Rep: Reputation: 16
Look buddy - Im sorry I did that. Please understand me; I've been hassling around samba for two months; I've uni-exams coming; I worked 3.5 hours more on the samba thing before I posted you. It all made me more and more stressed. Then I read your post, and it all comes off me.

Im really sorry that I insulted you, which I dont want you to feel anymore, as I now feel like that was wrong from me. If there was a delete post link, my message wouldn't have been there by now.
 
Old 05-03-2004, 06:47 PM   #5
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
samba woes, a very common, and stressful problem

before anything is said and done, what version of samba are you using? I have had specific trouble with the 3.x series, and I run the latest 2.x, 2.28a

first of all, the case of the letter will probably be a problem, as there is an option called "preserve case" which is by default set to "yes" if nothing is specified
your best bet is to see if in windows xp you can alter the name to florian as apposed to Florian and/or in your smb.conf file, under the global settings, enter
preserve case = no
*you may also just want to try adding the user Florian on your linux box

now go through these specific commands:
adduser florian (this should already be set, like you said)
smbpasswd -a florian
mypassword
mypassword

now setup your smb.conf file; since windows networking is intrinsically sucky, your best bet is to allow samba to gain primary control over the network, and make it the "primary master"; from what I have seen in my own network, unless the workgroup is "mapped" to a computer, the network will fail (it is noticeable in winxp - winxp computer as well)

the only info you need is your domain name

here is a (my) currently functioning smb.conf file; the only thing funny about it is that unless the linux box running samba is turned on first, the winxp will battle for network control; so, turn on linux before powering on your winxp computer

# Samba config file created using SWAT
# from localhost (127.0.0.1)
# Date: 2004/05/01 14:33:11

# Global parameters
[global]
workgroup = MSHOME
encrypt passwords = Yes
null passwords = Yes
log level = 3
printcap name = cups
os level = 33
printing = cups

[homes]
comment = Home Directories
read only = No
create mask = 0750
browseable = No

[public]
comment = Public Stuff
path = /mnt/2winData
read only = No
guest ok = Yes

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
use client driver = Yes
browseable = No

*note: you may not need the [printer] section or the printer-related options in global; just remove those lines

the public section is best not to contain a /home directory, unless you give /home/user full permissions (so if you want the path to be /home/user, you will also need to do chmod -R 777 /home/user); your best option is to create a directory /public, and do chmod 777 /public

keep the homes section as it is; i know it says browseable=no, but that option works perfectly fine

note the os level = 33; this is to give samba an advantage in becoming the local and domain master of the network

after writing your smb.conf file, run testparm, which will test the validity of the configuration; after that, shutdown both your computers, turn on the linux and let it fully load, then power on winxp

networking may be a little funny at first; give winxp at least 5 minutes to negotiate with samba; after that, go to Network Neighborhood and see if you can get into your linux box

if you cannot see your linux box, go to start - run and type \\hostname (where hostname is the name of you linux box, which you can usually find in /etc/HOSTNAME)

either way, post back here with results (if you can access, if you get an access denied or no privelege message, or if you get a box asking for a password)


and to conclude, a message for sandiegocal: what you did was completely arbitrary and unnecessary in this thread; leave what happened for the past, you told her to make a new thread (which wasn't necessary btw) and she did so, and you garbage it with your pathetic post; if you have a problem with a usage of the forums, please don't clog up the boards, just message a moderator
oh, and "piggy-backing" a thread is not wrong (afaik) and the thread was not "closed"
 
Old 05-04-2004, 09:37 PM   #6
florian_mrt
Member
 
Registered: Mar 2004
Location: Bristol, UK
Distribution: Linux Red Hat 9
Posts: 37

Original Poster
Rep: Reputation: 16
No, it didn't solve the problem, but something strange does appear in network neighborhood.

Theres now a box Name 'Samba 2.2.7a-security-rollup-fix (Localhost)' Comment 'Samba 2.2.7a-security-rollup-fix'

I couldn't get into it, no password box, I couldn't 'start->run' and command it, even by its IP, an error message appeared each time I tried, although it appeared after a long pause.

At the time I saw this, I didn't saw my own WinXP box.

I updated my smb.conf file with os level = 99 (because we want it to be the network neighborhood server, so he has the highest control this way?)
I added primary master = yes.
I did a testarm afterwards and it all went errorless.
then I rebooted

Any help further? Thanks really much for your help...

Last edited by florian_mrt; 05-04-2004 at 09:40 PM.
 
Old 05-25-2004, 10:23 PM   #7
florian_mrt
Member
 
Registered: Mar 2004
Location: Bristol, UK
Distribution: Linux Red Hat 9
Posts: 37

Original Poster
Rep: Reputation: 16
OK, Im back. My exams are over. I want to put some concentration into this problem now, so this problem is over as soon as possible.

I get an error like above. So there is clearly a connection already.

Is there anyone who can post me their working smb.conf about how to make samba ASK for a password and username and not asking the computer about its current session's username?

Might there be a Firewall conflict do you think? I got VNC working properly...

Common, ppl! Some effort plz! Thanks a lot for all your help so far...
 
  


Reply



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
pthread problem on redhat9 wizardjack Programming 4 02-02-2005 08:54 AM
A few hardware problem with redhat9 Antimatter Linux - Hardware 4 10-26-2003 07:29 PM
RedHat9 Samba conf dskny Linux - Software 1 10-02-2003 02:18 PM
pppoe problem on RedHat9 vova Linux - Hardware 1 08-09-2003 08:02 AM
Wine/RedHat9 problem AndyOz Linux - Software 1 07-05-2003 08:59 AM

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

All times are GMT -5. The time now is 06:39 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