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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: kubla
  • Order by date
  1. kubla

    Problem with simple string comparison if statement

    Your if statement should read: if [ $arp == $chkArp ] ; then (no quotes, double =) Ian www.robertgraves.org
  2. kubla

    iptables DNAT question

    OK, I've got it! Thanks to advice from Oliver from OxLug, I've tried this: iptables -t nat -I PREROUTING X -s Y -j ACCEPT X == prerouting list number (in my case 1) Y == ip address of authenticated user So if "joe" using 192.168.1.120 authenticates, I launce: iptables -t nat -I PREROUTING...
  3. kubla

    Accidentally deleted smbd and proftpd services

    Careful negation, RhythmAce is assuming you have your binaries installed in the same place s/he does. I think you're better off reinstalling your rpms while first, perhaps, backing up your conf files. Ian ps. if you do follow RhythmAce's advice, make sure your chmod +x the files you create or...
  4. kubla

    Seeing a fat32 partition in Linux

    fdisk -l www.robertgraves.org
  5. kubla

    Accidentally deleted smbd and proftpd services

    You probably know by now that you should have issued an: /etc/init.d/smbd stop Right? I'm not a rpm user but I imagine there's a way to reinstall from and rpm without overwriting your configuration files. Grab the samba-server and proftpd rpms and reinstall the apps. Ian www.robertgraves.org
  6. kubla

    iptables DNAT question

    ...The DNAT rule does that; however, after authentication, users can get out using all protocols permitted by the firewall *except* http which continues to be routed to 192.168.1.1 What I'm puzzling over is whether or not I can, on a per-ip basis, override this rule. I'm beginning to think that...
  7. kubla

    determine which XFree86 version

    for debian: dpkg -l xfree86* which returns: Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version...
  8. kubla

    URGENT -- DISK SPACE GETTING LOW

    erm. Which partition is it that's running out of space? The one to which you're writing your backups? If so, what's in it? Do you have a cron job that deletes old backups running? If it's the partition with the database and email on it... well, that should be getting smaller on a daily basis...
  9. kubla

    iptables DNAT question

    Dear All, I'm trying to do the following with my firewall: 1) redirect all web traffic to my gateway until a user is authenticated. 2) after authentication, add their ip to those allowed to surf. I've achieved point 1 with the following iptables rule: iptables -t nat -A PREROUTING -s...
  10. kubla

    Send keystrokes in console mode

    A lot of programmes have options to launch in non-interactive mode. What in particular are you trying to do? www.robertgraves.org
  11. kubla

    Virus Scanning LINUX Systems

    To add to the open source antivirus list, I've been running messagewall on my servers. It listens on the SMTP port and rejects infected mail before it hits my MDA... helpful given that most of my lusers are running windows. It can be a bit tricky to install, but the end results are worth it...
  12. kubla

    Port Forwarding

    Assuming you're running iptables, you'll want to append a rule like this to your firewall: iptables -A PREROUTING -t nat -p tcp -d <IP ADDRESS OF YOUR EXTERNAL INTERFACE> --dport <EXTERNAL PORT> -j DNAT --to <IP ADDRESS OF MACHINE ON LAN>:<DESTINATION PORT> www.robertgraves.org
  13. kubla

    changing file permissions with samba-client

    Dear All, I'm running version 2.2.3a-12.3 of samba, samba-client and samba-common on a Debian 3.0 server that's tracking stable (woody). Interestingly, while I can connect and change file permissions on a samba share with a windows client, I cannot do so from a linux box using samba-client. I...
  14. kubla

    Accessing a directory on RedHat 7.1

    Sorry, just to answer your other question, that's what samba users are for. When you connect to the share from windows, you will be prompted for your username and password. www.robertgraves.org
  15. kubla

    Accessing a directory on RedHat 7.1

    <i>What does the -a switch do?</i> It &quot;adds&quot; a user. Do a man smbpasswd to get a grip on all the options. www.robertgraves.org
  16. kubla

    iptables-restore

    Why don't you write a script to add the rules you need? That way, when you want to reload it after flushing the iptables rules, you just launch the script? There are thousands of examples on the web if you google for it. www.robertgraves.org
  17. kubla

    LOCKING OUT ACCOUNTS

    From: /etc/pam.d/passwd All the configuration options are fairly clearly described here. # # The PAM configuration file for the Shadow `passwd' service # # The standard Unix authentication modules, used with NIS (man nsswitch) as # well as normal /etc/passwd and /etc/shadow entries. For the...
  18. kubla

    Accessing a directory on RedHat 7.1

    Have you added the users to samba? smbpasswd -a <username> <passwd> They should be users on the system, in which case, you could make them members of the same group and then chmod the directory you've got shared to 770 (owner, group, rwx permissions). Ian www.robertgraves.org
  19. kubla

    Dynamic variable assignment

    sleipnir214 are you sure your answer will work if register_globals is set to &quot;off&quot;? A better approach may be to use variable-variables and pass them between pages using sessions. http://www.phpbuilder.com/columns/robert20000928.php3 www.robertgraves.org
  20. kubla

    Hostname attached to domain name

    That's particular to your mail client. Are you sending using pine or mutt? In which case, that's a configurable option. www.robertgraves.org

Part and Inventory Search

Back
Top