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.
im running RH8 and samba 2.2.7. I have no problem connecting to my linux box from my win2k machine. but when i try to access my win2k machine from my linux machine i get NT_STATUS_ACCESS_DENIED.
can anyone help me out with this one. it has to be something with win2k not recognizing the user/pass but damned if i can fix it. im a little confused about the smbuser and smbpasswd files.
can samba be directed to send a different user/pass combo to windows instead of sending the one thats actually logged in ?
You can also supply a password= and have it run through but if you're remotely concerned about security you won't do that, 'cos your password will show up in your process list.
This is most often caused by incorrect case in your share name.
Ensure that when you're not doing something like :
//Server/Share
when it should be
//Server/share
Share names are case sensitive. If you're not sure what it should be you can do :
smbclient -L //Server -U username
[root@randalf root]# smbclient -L //Binky -U administrator
added interface ip=192.168.10.15 bcast=192.168.10.255 nmask=255.255.255.0
Got a positive name query response from 192.168.10.99 ( 192.168.10.99 )
Password:
Domain=[DBT] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
Sharename Type Comment
--------- ---- -------
E$ Disk Default share
IPC$ IPC Remote IPC
print$ Disk Printer Drivers
I$ Disk Default share
Downloads Disk
HPLaserJ Printer HP LaserJet 6P/6MP PostScript
Mp3 Disk
OmniBack Disk
Percy Printer HP LaserJet 6MP
ADMIN$ Disk Remote Admin
H$ Disk Default share
C$ Disk Default share
in this example you if you wanted to connect to the Downloads share, you MUST make sure it has a capital D.
Location: United States of America and damn proud of it!
Distribution: Windows 10 prior Red Hat User
Posts: 473
Rep:
Okay, I got this far, however, I think part of the problem is I'm not a member of the Windows workgroup. If you see there are two workgroups named. I need to have the Linux box part of the Windows workgroup in order to see the Linux box from Windows, correct? Well, how can I join the Windows workgroup from Linux? I need to be a member of the PIOSOHP workgroup.
In addition, I wish to make the Linux box the server in this case, NOT the windows box. How will I be able to do that?
Password:
Domain=[PIOSOHP] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
Sharename Type Comment
--------- ---- -------
IPC$ IPC Remote IPC
D$ Disk Default share
print$ Disk Printer Drivers
HPOfficeJet Printer HP OfficeJet R40
F$ Disk Default share
ADMIN$ Disk Remote Admin
Shares Disk
C$ Disk Default share
Server Comment
--------- -------
ASUSA7V266-E-PI
HP-PAVILION-PIO
well changing the wokgroup is easy... use a text editor, such as VI, Emacs, pico..... and open /etc/samba/smb.conf... next look for the option "workgroup" it will look something like
workgroup = mygroup
change mygroup to the workgroup you want it to be in
as for shares nd using it as a server there are countless ways to do it you need to be alittle more specific dou you want it to be the pdc, or simply a peer
if you look at
man smb.conf it gives you a lot of info
Location: United States of America and damn proud of it!
Distribution: Windows 10 prior Red Hat User
Posts: 473
Rep:
Well, gentlemen,
I got it up and running!! Now all I have to do is figure out how to get other users besides myself on the Windows box authenticated on Linux. Do I have to have the users from Windows as users on LInux?
Location: United States of America and damn proud of it!
Distribution: Windows 10 prior Red Hat User
Posts: 473
Rep:
But do the users have to be users on the Linux box itself or just in the smbpasswd file? I'm kind of tired now as I've been working on it all day. I'm putting it to bed for this evening and I'm going to work on it again tomorrow. Thanks.
For security reasons it's generally a good idea to have all samba users be valid linux accounts, and I believe if I recall there is a default option in smb.conf that sets synching of linux users and samba users, I believe with the default set you have to have a linux account for each user in smbpasswd so if you wish to only create entries to smbpasswd I would look at the smb.conf file
I believe this entry is the one I am thinking of but someone may have to confirm this
Location: United States of America and damn proud of it!
Distribution: Windows 10 prior Red Hat User
Posts: 473
Rep:
Well guys,
As I may or may not have said, I decided to start over from scratch here and reinstall Linux. Maybe it was a drastic step but what the heck? This is only at home, not at work. Who cares? Anyway, we'll see what happens after all of this. Thanks to everyone that has helped me so far!!
Location: United States of America and damn proud of it!
Distribution: Windows 10 prior Red Hat User
Posts: 473
Rep:
Hello again guys,
Now I'm stuck again. I've got users in my smb.conf file but anytime I try to connect to Linux from Windows, I get an Enter Network Password message on the screen. If I just press OK, I just go right through. But why is this happening? Secondly, if I enter my name or any other user's name, I get rejected. PLEASE HELP GUYS!!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.