Networking :: Automated Way Of Loging Into Servers By Netbios Name Instead Of Ip's

Sep 18, 2010

In recent days, (today is September 18, 2010) I've been surfing the web trying to learn how to access nodes in my soho lan by netbios names instead of having to connect through the ip number, because ip's change every time according to DHCP assignments. I do not know what has happened to the "new" command mount.cifs, but things seem to have become a bit more complicated with the new version. Security problems, they say, and surely that's the reason.

I show here an automated way of loging into servers by netbios name instead of having to resort to the use of IP numbers, hosts files, wins servers and all that jazz. This is especially useful if your soho lan have five or more network nodes, and you do not want to go finding out the ip numbers assigned to the machines you want to connect to (temporarily or permanently).

This output is piped to gawk to isolate the line containing <00>, and gawk outputs the first element (print $1) of that line, which happens to be the ip of the server ServerName. I tested the script in my soho network, which now has Linux, Windows XP and Windows 7 nodes, and it worked perfectly for both tipes of servers.I'm using GNU's gawk, but I'm pretty sure that awk would do the job just as well.

View 1 Replies


ADVERTISEMENT

Networking :: Get Netbios Name From Ip Address?

Mar 1, 2010

At the CLI, I want to know how to get a netbios name from an IP address. It seems that every solution that I have found is windows based, or requires me to install something beyond samba. is a simple "prog-x -somearg 192.168.1.100" or similar to get the netbios name - and that it doesn't require a reconfiguration of my server?

For instance, I would like this to be usable on a desktop system in an ad hoc without having to be run from root.

View 8 Replies View Related

Fedora Networking :: Can't Ping Netbios Name FC-12-64?

Apr 29, 2010

I have been beating my brains out the last few days trying to get my linux box to ping my Pc's via the netbios name. (ping pc_name) I have read post after post with no luck at all. What i do know is that my pc's can ping the linux box via netbios name with no problem. Samba works from the pc's but not the other way around. I have added wins to my host in the nsswitch.conf fileMy smb.conf file:Quote:

global]
workgroup = OFFICE
server string = Samba Server Version %v

[code]....

View 10 Replies View Related

Networking :: How To Block Netbios Broadcasts

Oct 8, 2010

I've a server in an European data center, My server is receiving a lot of UDP Netbios Boradcast packets (I've sniffed them via tcpdump )

I've block the sender IP via iptables but tcpdump again shows the packets that are receiving.

an example tcpdump output 16:35:25.829592 IP SENDER-IP.netbios-ns > MY-SERVER-IP.255.netbios-ns: NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST

How can I block those broadcast packets?

View 8 Replies View Related

Ubuntu Networking :: NetBIOS - Addressing Computers By Name

May 6, 2010

I'm having some trouble addressing computers by name. I've just upgraded most my my box's to Lucid, and it was all working fine, but suddenly stopped - not quite sure why, or what I did, but I need it to come back! At first I thought it was my old router dying (which it was) but a new router hasn't helped.

I've now moved DHCP from the router to my server, and that's working fine, giving out static IPs from MAC addresses, and so forth, but I still can't address anything by name. My server is on 192.168.100.1 and called myth-server, if I

[Code]....

View 2 Replies View Related

CentOS 5 Networking :: PING From 5.5 To Windows Hostname/NETBIOS Name?

Jan 28, 2011

Givens

LAN
CentOS 5.5
Windows 7 machine (hostname/NETBIOS name: AwesomePC, LAN IP: 192.168.1.20)
Workgroup: Cake
No WINS server
No Domain
No AD

Goal

From CentOS 5.5, have

# ping AwesomePC

resolve to a ping on 192.168.1.20

Problem

# ping AwesomePC

resolves to some random public IP that seems to be coming from my WAN DNS (openDNS) servers

ATTEMPTS

Have edited /etc/nsswitch.conf, edited line: hosts: files wins dns Have edited /etc/resolv.conf, added line: search CAKE Have installed samba (# yum install samba) and run (# service smb start), with /etc/samba/smb.conf, workgroup = CAKE, name resolve order = wins host lmhosts bcast

Does # ping even care about samba? How can I get this to work?

View 5 Replies View Related

Networking :: How To Use DNS Server To Reduce Netbios Broadcast And Speed Up Browsing?

May 11, 2011

I am on a 172.16.x.x network with about 60 Windows XP home and Vista home clients in a peer-to-peer workgroup that uses DHCP to assign addresses. About half the traffic on my LAN is netbios broadcast. I do not want to do a WINS server because I do not want to have to manually change the registry on every machine. This is only for local name resolution and I do not have any web servers or e-mail servers. I do not have access to a Windows server to use as a DNS server. I am on Debian and using BIND but am open to other suggestions.

View 1 Replies View Related

General :: Automated Telnet For Testing Servers

Aug 20, 2009

So I have a script that is supposed to check to see if a mail server is up and responsive. What I want to know is how I can send it the telnet escape character. I've tried:VAR=`(sleep 5;echo quit) | (telnet mailserver.timbuktu.net 25 2>&- )`

This works BUT there is a problem as the mail server may have been accidentally firewalled off. If this happens, my automated checking script will hang. What I want to do is send the escape character so that the '>' prompt comes up. They I should be able to send it "quit" even if it is hung on not getting a response from the server. VAR=`(sleep 5;echo -e '^]';sleep 1;echo quit) | (telnet arhqmg01.usarec.army.mil 25 2>&- )`

The above doesn't work. telnet interprets CTRL+] as '^]' but you can't type '^]' and get the same effect. So I guess what I need is to send the actual keystrokes. Like echo "somenumber" ; echo quit

View 4 Replies View Related

Ubuntu Servers :: BEST 10.04lts Desktop Automated Deployment

Aug 25, 2010

vote on the best automated deployment for 10.04 lts desktop! have 50units identical pc's, one pdc (openldap, bind, dhcp) and one fs (nfs server). thinking of installing just one pc with all the updates, program addons and stuff, then thinking of: disk image the disk and copy to the rest of the 49units and just edit the host name and activate the etho by sudo mv /etc/udev/rules.d/70-persistent-net.rules /etc/udev/rules.d/70-persistent-net.rules.old would this be ok? i mean there will be no problem if users authenticate an stuff?

View 7 Replies View Related

Ubuntu Networking :: Share Out Samba Shares - Multiple Netbios Showing From Server

Nov 30, 2010

I have a fileserver that I want to share out samba shares. However, i configured samba to have another netbios (SAN) and my windows box still sees whoopn-SAN which is the name I gave to my server when i installed it. Now I am using 9.10 and I know that i can create a share from the gnome gui in nautilus and that appears to be a windows like share. How can I turn OFF the windows like shares that ubuntu does out of the box and use ONLY samba? I ask because there appears to be a conflict of permissions b/w samba and this stuff.

View 7 Replies View Related

Ubuntu Servers :: Stop Responding: Goes Into An Automated Scanning Mode

Jul 14, 2010

I just installed ubuntu as a learning tool. It was going fine until the next day after the install. This happened on two reinstall of ubuntu server 10.4. All was installed was lamp, squid, privoxy, tor, shorewall, and phpmyadmin. I have added 3 websites to the server.

Today, I noticed my internet stopped responding on my other pc which is linked to my server for internet access( privoxy). When I turned on the server, I noticed the screen was purging out random lines. I don't know what they mean, but it was a never ending series of lines filling the whole screen. To stop it, I ctrl+c. Some of these lines read usb, keyboard, mouse, etc. I am guessing the system went hay-wired.

When I reboot the machine, it did it again. This time I don't have the cmd prompt. I didn't know another other way to properly shutdown so I just cold reboot the machine. The next time it booted up, all seems normal like it always have been. My sites, internet is working.

I probably didn't provide enough info to diagnose this behavior. As mentioned before, it happened the first time I installed the server and it is happening again with the same applications installed.

Edited: It happened again. Some of the lines I could make out are these.

Code:
Bug: unable to handle kernal NULL pointer deference
Kernal panic-not syncing: Attempted to kill the idle task!
Error panic occured: Switching back to text console.
The server froze at this point.

View 1 Replies View Related

Ubuntu Servers :: Can't Bypass ISCSI Prompt During Automated Installation?

Sep 28, 2010

I'm trying to jump Ubuntu Server 10.04.1 x86_64 on an HP DL360 G5. After loading the modules for install, I'm greeted with an iSCSI prompt that cannot be bypassed. Hitting Finish brings me right back to the same iSCSI prompt.The issue seems to be identical to y kickseed file is as follows:

Code:
#platform=x86, AMD64, or Intel EM64T
# System authorization information

[code]....

View 4 Replies View Related

Ubuntu Servers :: Fully Automated Network - Host Name Configure And DNS Register In The First Boot

Jul 29, 2011

My organization is running a VMware vSphere based platform. On top of that we have a Sun Gridengine cluster consists of a number of ubuntu VMs.At the moment, we deploy new cluster nodes from the VM template. Although it already saves us lots of time, we still need to configure the network, host name, register DNS record manually.In a near future, we will need to add 100+ more hosts to the cluster. So we are seeking a automated deployment so that a VM does the following during its first boot:

1)configure the network for the correct IP with DHCP or manual.

2)request a designate host name (maybe from a pre-defined datasource?) and configure host name.

3)register itself to our DNS servers.

We don't really have experiences for running big cluster. So welcome to share your opinions and experiences.Specially I'd very keen to find out if there is any well-proven solution right there or I will need to implement from the scratch.

View 7 Replies View Related

Fedora Networking :: Scripts To Automated FTP Login To More 20 Server

Apr 22, 2009

How do I make a scripts to automated login ftp to more 20 server at one time? From fedora to ftp X 20 linux server.

View 2 Replies View Related

Debian :: Loging In Xfce Again Comes To The Same Gdm ?

Dec 8, 2010

I have installed Debian squeeze(testing) xfce. While I was changing selecting themes for the xfce window manager. It logged off and came to the login screen(gdm I think). On giving the username and password, it again comes to the same login screen. I can't get to the desktop.

View 14 Replies View Related

Server :: Loging Ssh With Syslog-ng ?

Nov 14, 2010

Im trying to get syslog-ng to log ssh stuff to a own file (later i want it to be forwarded to a other server but thats a later problem.

The thing is that if i restart my syslog-ng server and login with ssh, it logs it. but when i login again it dont. But if i restart the syslog-ng daemon again it logs again, but only once.

Here is my config.

Code:

View 1 Replies View Related

Ubuntu :: Can't Bypass Loging Screen ?

Jun 13, 2011

Yesterday I was working on Ubuntu, i shut down the computer normally, and then when i restarted it like an hour later i couldn't bypass the login screen. I insert my username & password correctly and the screen goes back for one second and then displays the login and password inputs again. I have just one username there. Before i shut it down i was trying to install Eclipse, so i messed around with some files related to Eclipse only, if that has anything to do with the problem. I also have Windows XP installed along with Ubuntu 9.10.

View 3 Replies View Related

Ubuntu :: Loging To Wireless Adapter ?

Jun 29, 2011

I'm using a cd to try Ubuntu 11.04. New user here. I get a message that requests for the wireless network password. When entered it appears to be valid. When clicking on wireless icon it shows connected. When I launch FireFox it can't find a server. Then after a few minutes it once again asks for the wireless password.

View 1 Replies View Related

Debian :: Root Loging Not Allowed In Squeeze

Mar 24, 2011

I tried to log in into squeeze as root, hoping to improve the system's fonts, but it is showing root login is not allowed!

View 14 Replies View Related

Fedora :: Loging Initial Boot Output ?

Oct 8, 2009

The main pages for logsave say that it is useful for saving the output of boot scripts before /var/log is mounted because the output is saved in memory until it can be written out. but there is now example of this.

How and where do you add the logsave command to save all the text that flashes by at boot time can be saved where you can read it cut and paste error message to forms etc.

View 1 Replies View Related

Ubuntu :: 10.04-Loging Prompt Hangs After Update?

Jul 23, 2011

I ran apt-get update to fetch firefox5. I didn't updated ubuntu since long so it down loaded around 280 updates including firefox. Now while installing I saw once EULA acceptance message for Microsoft ttf font installation, this message window doesn't have any button etc to confirm, so I did ctrl+c to exit, and then "apt-get" seems to have terminated in terminal.But I checked that it is still running in the background in process list, not sure active process or not.

I did rebooted PC assuming update might have completed. Now after reboot it boots up to the login prompt, but I don't see any cursor movement or key stroke effect. It just stays there and then after some time shuts down, with flashing error message relate to "Init.." i couldn't read it completely.

View 4 Replies View Related

Debian :: Getting Resolving Netbios Names ?

Jul 11, 2010

I'm having trouble getting my debian box to find my windows box. This should be possible using netbios names.

The debian box is a newly installed minimal (nothing but base) release, to which I've added samba (using apt-get).

The windows box can see the debuan box just fine. Attempting to ping it by name results with:

Pinging debbox [192.168.1.100] with 32 bytes of data: ...

But going back the other way, the debian box can't see the windows box.

ping: unknown host winbox

I'm pretty happy that the windows box is behaving itself as there are no problems getting it to interact with other windows machines on the network.

Looking on google, the suggestion is to modify the host line in /etc/nsswitch.conf to include wins: hosts: files dns [b]wins[/b]

This worked on other linux machines in the past but not this time.

So my guess it that I've got SAMBA mis-configured or I'm missing a package.

View 1 Replies View Related

Fedora :: Using Netbios Over An OpenVPN Network?

Nov 29, 2009

Does anyone know how to configure Fedora 12 to use netbios over an OpenVPN network

putting

hosts: files wins dns

into the nsswitch.conf file enable netbios over the LAN but not over the VPN.

View 4 Replies View Related

Ubuntu :: Port 139 445 Netbios-ssn Microsoft-ds

Aug 29, 2010

I have these two ports open for some reason. netstat says they're attached to 'smbd', but when I look at packages installed and search for smbd the only thing that comes up is samba4 which is NOT installed.

I'm guessing some other package installed this as a dependency. Is there anyway to find out what it was and remove it?

View 4 Replies View Related

Slackware :: Turn Off Netbios In Samba?

Apr 6, 2011

If you're running samba server on your Slackware box on a windows network / domain, and you don't want it showing up on the windows computers network neighborhood browser, there's a couple of things you have to do. First, add the line:

disable netbios = yes to the global section of smb.conf. This didn't work for me so I also figured out the next step:

Second, edit the rc.samba script and remove the references to starting or restarting nmbd.

In this line: if [ -x /usr/sbin/smbd -a -x /usr/sbin/nmbd -a -r /etc/samba/smb.conf ]; then

Remove the reference to nmbd (underlined above) so it looks like this:

if [ -x /usr/sbin/smbd -a -r /etc/samba/smb.conf ]; then

Then comment out with a # this part: #echo " /usr/sbin/nmbd -D" # /usr/sbin/nmbd -D

and add a comment # mark here (right before nmbd)

samba_stop() {
killall smbd # nmbd

underlined above, then restart samba or reboot. The first step may not be necessary if you make the changes to rc.samba but I did both and that took care of it.

View 8 Replies View Related

Security :: Loging In Ssh With User Nmot Present In /etc/passwd

Jan 26, 2011

Is it possible to log in secure shell (openssh ) using a username and password which is not present in "/etc/passwd" .The shell created after authentication should be owned by the logged in user . Is it possible to store the user infromation like uid , gid , home dir , shell in some remote machine instead of /etc/passwd and then retrive the these these information when a session is created for the logged in user .

View 2 Replies View Related

Programming :: Fantastic Script For Loging - X User Login To Server ?

Nov 4, 2010

I need;
1- X user login to server
2- X user used command du,mkdir,cat .. etc.
3- 1-2 actions and included command print send specified emails.

View 2 Replies View Related

Ubuntu :: Cancel All Pending Print Jobs Automatically When Loging Out Of A Session

Dec 14, 2010

Sometimes I want to keep something in PDF files, so I print to the PDF "printer". However, if I inadvertetnly forget to check the PDF creation and rather take the real printer (which is usually only powered up, when I really want to print something), printing goes to the real printers queue and nothing happens ... until, possibly some sessions later, I want to print something (on paper rather than PDF) and power up the printer.

Then all inadvertent garbage comes first and chances are big, that the printer gets junk during power up or reconnecting the cable to the computer and then the whole thing is wasting even more paper, since escape-sequences sent to the printer get chopped and misunderstood by the printer.

In order to stop this alltogether, I am looking for a mehtod, to automatically flush the whole printing queue every time when I log out of my ubuntu session.

I know, there is a command lpq to tell which print jobs are pending, I also know the command cancel -Umyname -a, but this requests for my password. I want to kill all those incomplete or pending print jobs automatically.

And how do I hook such a command script into the logoff or shutdown sequence?

View 1 Replies View Related

Fedora :: FC11 Cannot Mount Windows Shares Using Netbios Names

Nov 30, 2009

I've had my FC11 x86_64 installation up and running for 6 months. Until a week ago, I was able to mount windows shares through Nautilis using their netbios names. About a week ago, this all broke with no tinkering on my part. Now, I can mount the shares using the IP address, but not using the netbios name.

When I make he attempt either from scratch or by using a previously working bookmark, I get "cannot display location "smb:\..." When I browse the network using Nautilis I can see the workgroup, but when I try to open it, I get "unable to mount location. Failed to retrieve share list from server." When I use nmblookup with the netbios name, the correct ip adress is returned.

The problem seemed to correspond to a software update that occurred on 2009-11-21 that included updates to selinux-policy and selinux-policy-targeted. SE Linux has the System Default Enforcing Mode set to disabled. The system default policy type is set to targeted with no other options available.nsswitch.conf file appears to have been changed on the same date, but reverting back to the backup version of the file failed to solve the problem. Samba is up and running. My linux shares are accessible from my windows boxes. The firewall is open to smb and smbclient.

View 1 Replies View Related

General :: Remort Loging - Check For A File Existince And Display A Message - If Condition

May 31, 2010

I want to ssh and check for a file, I hve came up with following, and its not working,

Is this possible or do I have to do this in a another way.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved