Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SAMBA Maybe? 1

Status
Not open for further replies.

skiflyer

Programmer
Sep 24, 2002
2,213
US
Ok, I know this has been asked here before, and I've been searching through those questions, but I'm still not sure what applies to me and what the exact situation is.

I'm at work, surrounded by MS OS's of all varieties.

I'm not really all too concerned with getting on the domain, though it may be nice.

More importantly, I want to resolve hostnames without entering them all into my hosts file.

Things went flawlessly and the DHCP server assigned me my IP address, I entered the proxy script into the browser... things look good. But I'm not sure what to do next such that I can access other servers on the network... and also, I'd like access to other computers shared folders (This is where I'm thinking being on the domain would be nice.)

What type of things do I need to learn and what if any changes will need to take place outside my box?

Thanks,
Rob
 
Samba is only used for mapping drives between Windows and unix/linux.

Life would be much easier if you had a domain set up there. Then you would simply add the DNS server to your config.

Can the windows machines resolve by name?

-pd
 
We do have a domain set up here, I just don't know how to get a linux box on it.

And they can resolve eachother by name... they can ping my linux box by IP (I never set a name for my linux box), but they can't access the webserver on my linux box (This is the one issue which MUST be resolved).

-Rob

 
I personally like LinNeighborhood for browsing shares. As long as you have your samba server set up properly, LinNeighborhood will work great.
If you're a Debian user, just apt-get install linneighborhood
If you use anything else, you can go to and grab the appropiate packages. I'd drop by there anyways just for how to config your lan node as so it works nicely.

Also, you can join your domain IF you can authenticate using your user name. You just use smbpasswd with the -j option along with username and passwd. Be aware that most domain operators make only a few priviliged accounts (it's stupid to auth any user on the lan), though you could sniff it and get the lanman hash if he didnt remove it.

Hopefully this helps ;-) Please let Tek-Tips members know if their posts were helpful.
 
I'm trying
smbpasswd -j DOMAIN_NAME passwd

and it just keeps popping up the help screen.

I've also tried
smbpasswd -j DOMAIN_NAME username passwd
and
smbpasswd -j DOMAIN_NAME -U username passwd

always the help screen.

 
I have all my linux boxes resolving all our Win boxes by name. Simply add the DNS servers ip to your network settings and make sure your gateway is correct. If you are using Red Hat command line, try linuxconf (it's easiest)
 
linuxconf gives me a command not found, however I can use the graphical interface as well... I thought DHCP set those values for me, but I'll ask the sys admins and see if there's another one.

-Rob
 
Not making much progress, but have spawned another question... how do I determine my IP address on a linux box? Apparently the # I was going with (127.0.0.1) was from Apache not my box... so confused...

Thanks,
Rob
 
I've also tried
smbpasswd -j DOMAIN_NAME username passwd
and
smbpasswd -j DOMAIN_NAME -U username passwd

always the help screen.

____________________________________________

Try doing:

smbpasswd -j DOMAIN -U user

It then should prompt you for a password. Please let Tek-Tips members know if their posts were helpful.
 
running it as root however, gives me

unable to find the domain controller for DOMAIN_NAME

 
Ok so, I can put ips in the etc/host file and use them that way, but there're a few hundred computers here which have dynamic IP's... so that's just not going to be a good long term solution.

But I have progress, and that's it :)

Thanks for the help, I'm limping along and at a place where I can do a couple things... but if anyone has some more ideas about how to actually get on this domain that'd be great.

-Rob
 
You probably need to specify the name of the primary domain controller (with the -r flag). I believe that smbpasswd defaults to localhost if you don't.
Code:
smbpasswd -j DOMAIN_NAME -r PDC_NAME -U username
where PDC_NAME is the netBIOS name of the PDC.

jaa
 
Alright, I just talked to the IT guy, and apparently the DNS server isn't going to help me much because most of the boxes here don't run DNS... and they use WINS to distribute the names... is reading a WINS server a lost cause with Linux?

-Rob
 
If you can, go set up SWAT (part of Samba package). It's a web-server for fully configuring SMBD and NMBD services so that you can do all with windows servers. Yes, the samba package can read data from a Wins server.

It can be installed either 2 ways. Frist, it can be installed through inetd, the super-server. Look through /etc/inetd.conf for SWAT service. It it's commented out, uncomment it. However, it could also be running as a daemon. If it's not on your system, you may have to install it.

Using swat will help configure all your shares and everything else concerning samba.

good luck ;-) Please let Tek-Tips members know if their posts were helpful.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top