Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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"
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.
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.