Berkeley CSUA MOTD:Entry 16924
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/25 [General] UID:1000 Activity:popular
5/25    

1999/11/19-22 [Computer/Networking, Computer/SW/Unix] UID:16924 Activity:nil
11/18   I'm trying to test out smbclient with a friend of mine but I keep
        getting this error message:
        $ echo hello | smbclient -M my.friends.ip
        Added interface ip=192.168.8.5 bcast=192.168.8.255 nmask=255.255.255.0
        session request failed
        Does the other computer have to be in the same subnet for samba
        to work?
        \_ I've never got -M to work.  Try -L to list his shares.  No it will
           cross subnets, routers, switches, hubs, gateways, etc, no problem.
           Check the samba docs for the 'official' way to test a connection.
           \_ naw, it did the same thing.  But it did at least give out
              an IP address this time.
                \_ Firewalls?  Can you ping?  Is he exporting any shares?
                   Does he have the "Server" service running on the 'd0ze side?
                   \_ no, no firewalls.  he and his roomate have a multiple
                      ip dsl line and they both can see each other's windoze
                      services.  i can't for some reason.  i'm behind a
                      linux firewall though.
                        \_ Turn off firewall and try again.
        \_ http://us1.samba.org/samba/ftp/docs/textdocs/DIAGNOSIS.txt
           is real useful whenever I'm trying to find out what I've done wrong
                \_ That's the thing I was refering to earlier but was too lazy
                   to find.  "the official way to test a connection".  Anyway,
                   since we haven't heard back, he either gave up or it was the
                   firewall.
                   \_ Well, I tried it from the gateway itself (no natd or
                      IP masq) and turned off all the firewall rules and
                      I got the same error messages.  So yes, I did give up.
                        \_ smbclient -L HIS.IP.ADDRESS doesn't give a password
                           prompt after saying session failed?  It sounds like
                           there's something really simple going on.  Minor
                           config error.
ERROR, url_link recursive (eces.Colorado.EDU/secure/mindterm2) 2025/05/25 [General] UID:1000 Activity:popular
5/25    

You may also be interested in these entries...
2009/11/4-17 [Computer/SW/P2P, Computer/Networking, Computer/SW/Security] UID:53495 Activity:nil
11/4    Holy cow, I got a warning from my ISP that they were notified
        by BSA/baytsp.com that I was copying music/video/software.
        Do they do port scan or something? That's a first for me.
        \_ They hang out on P2P networks and track IP addresses.  -tom
           \_ I believe they are paid by content providers to perform this
              monitoring service, so you should only run this risk with content
	...
2008/11/7-13 [Computer/Networking] UID:51876 Activity:low
11/7    Need help on http proxy. After I VPN to work, I'd like to tunnel
        all the traffic to my machine. How do I setup my machine (Linux)
        as a proxy server so that my home computers can route through it?
        I'm asking because the site we're testing on requires that we
        come from the same IP. If I use VPN, the server will reject me
        based on the fact that it's a different IP than my work Linux.
	...
2008/8/5-10 [Computer/Networking] UID:50788 Activity:nil
8/5     It looks like my company has started blocking HTTPS tunneling.
        I used to do this by tunneling SSH through the HTTP/HTTPS proxy
        server, but this seems to have stopped working. Does anyone know
        how the implementation of tunneling detection works, and whether
        there are widely available implementations? We run a bunch of MS
        stuff, so I imagine we're running an MS proxy server or something.
	...
2007/6/28-7/2 [Computer/SW/SpamAssassin] UID:47111 Activity:nil
6/28    Q: What are folks using these days for anti-spam measures?  I'm
        looking for something that integrates with my MTA (postfix) or my
        delivery agent (sieve).  Currently I'm using a crufty version of
        spamassassin wired into postfix via amavisd-new.  It's decent, but I
        don't want to be bothered with manually upgrading spamassassin or
        updating rulesets on a regular basis.  Anyone have any experience
	...
2006/2/18-23 [Computer/Networking] UID:41923 Activity:low
2/18    My DSL modem's ip address is 192.168.0.1, my internal network
        behind my router is 10.0.0.x. Is there a way I can configure
        the router so I can access the DSL modem from my 10.0.0.x
        network directly without re-wiring? Static routes? I tried it
        but no much luck. I also tried changing my internal network to
        192.168.0.x, but still does not work. Thanks.
	...
2006/1/28-31 [Computer/Networking] UID:41585 Activity:low
1/28    Just switched to Comcast from SBC and generally happy with it.  But
        can someone please explain to me why they are constantly pumping
        ARP traffic through the network?  It seems harmless, but I'm curious
        as I didn't see it with DSL.  It's a little disconcerting to see
        constant traffic on your router, even if ARPs are harmless from
        a bandwidth perspective, and it makes the WAN send/receive light
	...
2006/1/22-24 [Computer/Networking] UID:41477 Activity:nil
1/21    I am trying to setup a small network for my girlfriend's
        mom's company.  They just bought an accounting package
        which requires windows 2003 server.  And they want internet
        access from each computer.  How should the network be setuped?
        Would it be dumb to use static IP for each computer and a
        computer as internet gateway?
	...
2005/8/29-30 [Computer/Networking] UID:39329 Activity:moderate 54%like:37400
8/29    What's the difference between a hub, a switch and a router?  Thx.
        \_ AFAIK, probably be corrected by someone:
           hub: Allows communication on a LAN with bandwith shared amongs all
                the nodes on the hub and maxing out at the max line speed.
           switch: Allows communication on a LAN with bandwith greater than
                the max line speed (point to point)
	...
2005/6/2-3 [Computer/Networking] UID:37941 Activity:moderate
6/2     I've been to many places and almost every place I go to have
        802.11b/g. However, almost all of them have protected access,
        which I presume they use because they don't want people stealing
        their bandwidth. So here is one idea I think will really
        revolutionize 802.11X... an option in the router that allows you to
        specify the percentage of unprotected bandwidth you are willing to
	...
2005/5/23-25 [Computer/Networking] UID:37799 Activity:nil
5/23    Has anyone played with carp/pfsync on OpenBSD? I have a simple
        two firewall setup, one fw running 3.6, the other running 3.7.
        Right now the 3.6 system is the "master" and everything seems
        to work properly except that I can't ping the virtual ip from
        the master system. Any ideas?
        \_ I've seen this with a lot of virtual IP/failover/load balancers.
	...
2005/1/10-11 [Computer/SW/OS/VM] UID:35635 Activity:kinda low
1/10    VMware question for VMware gurus only. I've installed a WinXPsp1
        on top of WinXPsp2. How do you do the followings:
        1) transfer data between the two machines? I've tried mounting
           raw partition from WinXPsp1 but when I disable write, it
           doesn't boot up anymore (WinXP insists on writing)
        2) communicate between the two machines? I can ping WinXPsp1
	...
2004/11/9 [Computer/Companies/Google, Computer/SW/OS/VM] UID:34777 Activity:high
11/9    I have two versions of MSIE 6.0.2800.1106. One is running inside a
        VMWare virtual machine, the other running native on an athlon PC.
        When I run a google query: http://www.google.com/search?q=canada.ca
        They get slightly different results. What's the best way to figure
        out why this would be?  Perhaps a way to capture the request?
        \_ Maybe you're just hitting different google mirrors, and their
	...
2012/8/26-11/7 [Computer/SW/Security] UID:54465 Activity:nil
8/26    Poll: how many of you pub/priv key users: 1) use private keys that
        are not password protected 2) password protect your private keys
        but don't use ssh-agent 3) use ssh-agent:
        1) .
        2) ..
        3) ...
	...
2012/8/29-11/7 [Computer/SW/Security] UID:54467 Activity:nil
8/29    There was once a CSUA web page which runs an SSH client for logging
        on to soda.  Does that page still exist?  Can someone remind me of the
        URL please?  Thx.
        \_ what do you mean? instruction on how to ssh into soda?
           \_ No I think he means the ssh applet, which, iirc, was an applet
              that implemented an ssh v1 client.  I think this page went away
	...
2012/3/29-6/4 [Computer/HW/Memory, Computer/HW/CPU, Computer/HW/Drives] UID:54351 Activity:nil
3/29    A friend wants a PC (no mac). She doesn't want Dell. Is there a
        good place that can custom build for you (SSD, large RAM, cheap video
        card--no game)?
        \_ As a side note: back in my Cal days more than two decades ago when
           having a 387SX made me the only person with floating-point hardware,
           most machines were custom built.
	...
2012/5/8-6/4 [Computer/SW/Unix] UID:54383 Activity:nil
5/8     Hello everyone!  This is Josh Hawn, CSUA Tech VP for Spring 2012.
        About 2 weeks ago, someone brought to my attention that our script
        to periodically merge /etc/motd.public into /etc/motd wasn't
        running.  When I looked into it, the cron daemon was running, but
        there hadn't been any root activity in the log since April 7th.  I
        looked into it for a while, but got lost in other things I was
	...
2012/1/27-3/26 [Computer/SW/Unix] UID:54299 Activity:nil
1/27    Interesting list of useful unix tools. Shout out to
        cowsay even!
        http://www.stumbleupon.com/su/3428AB/kkovacs.eu/cool-but-obscure-unix-tools
        \_ This is nice.  Thanks.
	...
2011/10/26-12/6 [Computer/SW/Unix] UID:54202 Activity:nil
10/24  What's an easy way to see if say column 3 of a file matches a list of
       expressions in a file? Basically I want to combine "grep -f <file>"
       to store the patterns and awk's $3 ~ /(AAA|BBB|CCC)/ ... I realize
       I can do this with "egrep -f " and use regexp instead of strings, but
       was wondering if there was some magic way to do this.
       \_ UNIX has no magic. Make a shell script to produce the ask or egrep
	...
2011/4/27-7/30 [Computer/SW/Security, Computer/SW/Unix] UID:54096 Activity:nil
4/28    Will wall be fixed?   - jsl
        \_ What's wall?
           \_ An anachronism from a bygone era, when computers were hard to
              comeby, the dorms didn't have net, there was no airbears, and
              when phones didn't come standard with twitter or sms.
           \_ A non useful implementation of twitter.
	...
2010/3/10-30 [Computer/SW/Mail] UID:53751 Activity:nil
3/10    What email program do people in Cal CS use nowadays?  In my school days
        people used /usr/bin/mail, then RMail in emacs, then VMail in emacs.
        After my days people used Elm, Pine, Mutt (I forgot which order).  In
        my first two jobs we could tell the seniority of fellow engineers based
        on which email program they use at work, because everyone used what
        they used to use in their school years.  In my last two jobs though,
	...
Cache (6909 bytes)
us1.samba.org/samba/ftp/docs/textdocs/DIAGNOSIS.txt
It also tells you what the likely cause of the problem is if it fails any one of these steps. If it passes all these tests then it is probably working fine. I have tried to carefully choose them so later tests only use capabilities verified in the earlier tests. If you send me an email saying "it doesn't work" and you have not followed this test procedure then you should not be surprised if I ignore your email. ASSUMPTIONS ----------- In all of the tests I assume you have a Samba server called BIGSERVER and a PC called ACLIENT both in workgroup TESTGROUP. I also assume the PC is running windows for workgroups with a recent copy of the microsoft tcp/ip stack. Alternatively, your PC may be running Windows 95 or Windows NT (Workstation or Server). SOME COMMANDS SHOWN DID NOT EXIST IN EARLIER VERSIONS Please pay attention to the error messages you receive. If any error message reports that your server is being unfriendly you should first check that you IP name resolution is correctly set up. If you don't get a valid response then your TCP/IP software is not correctly installed. Note that you will need to start a "dos prompt" window on the PC to run ping. If you get a message saying "host not found" or similar then your DNS software or /etc/hosts file is not correctly setup. It is possible to run samba without DNS entries for the server and client, but I assume you do have correct entries for the remainder of these tests. Another reason why ping might fail is if your host is running firewall software. Check what your guest account is using "testparm" and temporarily remove any "hosts allow", "hosts deny", "valid users" or "invalid users" lines. If you get a "connection refused" response then the smbd server may not be running. If you installed it as a daemon then check that it is running, and check that the netbios-ssn port is in a LISTEN state using "netstat -a". If you get a "session request failed" then the server refused the connection. If it says "Your server software is being unfriendly" then its probably because you have invalid command line parameters to smbd, or a similar fatal problem with the initial startup of smbd. There are a number of reasons for which smbd may refuse or decline a session request. Do NOT use the "bind interfaces only" parameter where you may wish to use the samba password change facility, or where smbclient may need to access local service for name resolution or for local resource connections. Another common cause of these two errors is having something already running on port 139, such as Samba (ie: smbd is running from inetd already) or something like Digital's Pathworks. And yet another possible cause for failure of TEST 3 is when the subnet mask and / or broadcast address settings are incorrect. TEST 4: ------- Run the command "nmblookup -B BIGSERVER __SAMBA__". You should get the IP address of your Samba server back. One common problem is that many inetd implementations can't take many parameters on the command line. If this is the case then create a one-line script that contains the right parameters and run that from inetd. TEST 5: ------- run the command "nmblookup -B ACLIENT '*'" You should get the PCs IP address back. If you don't then the client software on the PC isn't installed correctly, or isn't started, or you got the name of the PC wrong. If ACLIENT doesn't resolve via DNS then use the IP address of the client in the above test. TEST 6: ------- Run the command "nmblookup -d 2 '*'" This time we are trying the same as the previous test but are trying it via a broadcast to the default broadcast address. A number of Netbios/TCPIP hosts on the network should respond, although Samba may not catch all of the responses in the short time it listens. You should see "got a positive name query response" messages from several hosts. If this doesn't give a similar result to the previous test then nmblookup isn't correctly getting your broadcast address through its automatic mechanism. If your PC and server aren't on the same subnet then you will need to use the -B option to set the broadcast address to the that of the PCs subnet. This test will probably fail if your subnet mask and broadcast address are not correct. TEST 7: ------- Run the command "smbclient //BIGSERVER/TMP". You should use the password of the account you are logged into the unix box with. If you want to test with another account then add the -U <accountname> option to the end of the command line. Check it with testparm - you enabled password encryption but didn't create the SMB encrypted password file Once connected you should be able to use the commands "dir" "get" "put" etc. You should especially check that the amount of free disk space shown is correct when you type "dir". TEST 8: ------- On the PC type the command "net view \\BIGSERVER". You will need to do this from within a "dos prompt" window. You should get back a list of available shares on the server. If you get a "network name not found" or similar error then netbios name resolution is not working. To overcome it you could do one of the following (you only need to choose one of them): - fixup the nmbd installation - add the IP address of BIGSERVER to the "wins server" box in the advanced tcp/ip setup on the PC. If you get a "invalid network name" or "bad password error" then the same fixes apply as they did for the "smbclient -L" test above. In particular, make sure your "hosts allow" line is correct (see the man pages) Also, do not overlook that fact that when the workstation requests the connection to the samba server it will attempt to connect using the name with which you logged onto your Windows machine. You need to make sure that an account exists on your Samba server with that exact same name and password. If you get "specified computer is not receiving requests" or similar it probably means that the host is not contactable via tcp services. You should be prompted for a password then you should get a "command completed successfully" message. It's also possible that the server can't work out what user name to connect you as. If you find this fixes things you may need the username mapping option. TEST 10: -------- Run the command "nmblookup -M TESTGROUP" where TESTGROUP is the name of the workgroup that your Samba server and Windows PCs belong to. You should get back the IP address of the master browser for that workgroup. Wait a minute to see if it is just being slow then try again. Make sure you have "preferred master = yes" to ensure that an election is held at startup. TEST 11: -------- From file manager try to browse the server. You should be able to double click on the name of the server and get a list of shares. If you get a "invalid password" error when you do then you are probably running WinNT and it is refusing to browse a server that has no encrypted password capability and is in user level security mode.