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 am attempting to setup Samba on my RHEL4 system for access by my WinXP systems. I can see the shares on my WinXP system, but when I attempt to access a share, a username/password box pops up. The username is already filled in with Software\guest and requests a password. I have no idea what password it is requiring.
I am a novice to Linux, so any help would be Appreciated. I can supply screen shots from the WinXP side if it will help along with my smb.conf file.
I am attempting to setup Samba on my RHEL4 system for access by my WinXP systems. I can see the shares on my WinXP system, but when I attempt to access a share, a username/password box pops up. The username is already filled in with Software\guest and requests a password. I have no idea what password it is requiring.
I am a novice to Linux, so any help would be Appreciated. I can supply screen shots from the WinXP side if it will help along with my smb.conf file.
It's asking for a user ID/password on your Linux system. Windows is populating it with whatever it thinks is right.
My apologies if I'm misunderstanding you here but when you try to access your samba share from XP samba replies with "who are you and what's your password?" hence the dialogue box.
It then checks the provided information against it's list of users and passwords.
If you haven't supplied samba with any usernames and passwords then only 'guest' exists without sufficient permissions to see the contents of the shares.
You could set a password for 'guest' using smbpasswd but it's not wise to use that account as it is an obvious one to attack if you are in an environment where that could happen.
Try creating a user on the Linux machine by editing the smbusers file and then setting a password for that user (using smbpasswd). You should then be able to access the share from Windows by typing in the username and password in the dialogue box when it appears.
When I access the system from my WinXP system I see both the Home and Software1 shares. When I click on the Software1 share a username/password box pops up. The Username part is greyed out and says Software\guest. The password box is writeable.
It should have come up and allowed to put user "jdonaldson".
When Windows talks to samba it uses the its username and password to try to log in to the share.
If the username and password don't match then, after three attempt (that you don't see) samba will default to the guest account and the dialogue box greys out.
You could ensure that your Windows username and password match the samba settings or change your smb.conf to add a share along the lines of;
[Jhaxxars share]
path = /media/Storage/Jhaxxars Share
browesable = yes
writable = yes
guest ok = no
username = yourusername
only user = yes
or if you want a public share that anyone can get into without a username and password then edit smb.conf to something like;
[global]
workgroup = workgroup
netbios name = whatever-server
server string = Samba Server
interfaces = eth0, lo
auth methods = guest
map to guest = Bad User
hosts allow = 192.168.1., 127.0.0.1
[shared]
comment = Shared
path = /pub
write list = nobody, guest
read only = No
guest ok = Yes
How are you trying to connect to the share drive? If you are doing it from explorer (ie with "map network drive"), there should be a check box in the browse/enter share name screen to logon or connect as a different user. Click on that to allow modifying the username.
Unknown_User..... thank you for the tip. It allows me to logon now. Since I am not super adapt at Samba or Linux in general, I created a user called "software". Added it as a Samba user. This way each person in the lab can logon to it, access the folders, and etc. Crude...yes, but works.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.