TheOgre 77 Posting Whiz

Also another thing, how do i make the clock be on time

As root, try this:

To set your system time to 10am: date -s 10:00
To set system time to 4pm: date -s 16:00

To get the time/date, just type date

Also check the date/time after a reboot to see if the bios clock is off. You can also run ntpd (Network Time Protocol Daemon) to keep your system clock in synch with a time server. read the manpage for ntpd for more info on how to configure it.

TheOgre 77 Posting Whiz

I'll be there tomorrow and Friday. Would've been there today, but I had a client who had "issues."

TheOgre 77 Posting Whiz

I use Handy Backup, which has the option for the Outlook/ICQ/Registry plugin. You can backup to CD-R/DVD-R, FTP, or network (or to another directory/partition/drive), and you can encrypt your backups for added security. It has a built-in scheduler, and lots of other features.

Price is $30
URL: http://www.handybackup.com

TheOgre 77 Posting Whiz

If you're installing Linux, the filesystem choices are either ext2, ext3, or ReiserFS. FAT32 is WINDOWS ONLY.

The only partitions you *should* need to create are / and /swap. The other directories are normally created by the install, unless you're installing one of the BSD's or some other flavor of UNIX, which mounts them on slices (partitions in Linux.)

If you are looking to access files on your Linux partition while using Windows, you'll need a third-party utility to do this. You can, however, read and write files to your Windows partitions while in Linux if your Windows filesystem is FAT32. If you use NTFS, then you'll have READ-ONLY access to your Windows files (well, OK, you technically _can_ write to NTFS from Linux, but it's not advised, as you can hose your Windows install.)

As far as the layout you want for your Linux partitions, your /swap partition should be roughly 1 1/2 times the amount of your physical RAM. That being said, if you're installing RedHat, I believe it will automatically suggest the sizes for the needed partitions. I could be wrong on this, since I've never installed RedHat. I know that Slackware, Debian, and FreeBSD offer suggestions on the partition sizes.

In summation, the only partitions you should have to create would be / and /swap, and it is recommended that you do this from within the RedHat installation, as opposed to using Partition Magic to do this. If you do it yourself, …

TheOgre 77 Posting Whiz

Or you could download the disk images for Partition Magic 8.0 here:

http://www.geekis-kahn.net/PM.rar

Extract that file, and you'll have 2 new files, which are the self-extracting disk images.

TheOgre 77 Posting Whiz

Right-click on the tweakui.inf file to install it.

TheOgre 77 Posting Whiz

You need to start a new thread for your questions, as they have nothing to do with the ps command, as originally asked by walker.

Drive repartitioning and file permissions have nothing to do with ps...

TheOgre 77 Posting Whiz

After you unzip the 4 files, right-click on the .inf and choose "Install."

Halfway through the install, a box will pop up that will tell you to access TweakUI from the Control Panel. Close the box, and the install will finish.

Once the install is done, it's safe to delete the 4 files you unzipped from the original .zip file.

Open the Control Panel, and you'll see a new icon labeled "TweakUI."

Double-click to open, and all the options there should be simple to figure out.

TheOgre 77 Posting Whiz

...or install TweakUI, and change the option to clear computer history at login/logoff. You can also clear the "Run.." history, and a ton of other stuff with it. Best of all, it's FREE :)

TheOgre 77 Posting Whiz

You can download this floppy image that, when written to a flopy and used as a boot disk, will reset you admin password.

READ THE INSTRUCTIONS!!!

http://home.eunet.no/~pnordahl/ntpasswd/bootdisk.html

I've used this on WINNT4/2000/XP and it hasn't failed yet.

TheOgre 77 Posting Whiz

If you want to change permissions on a file, the command to use would be chmod. To change ownership of a file/directory, you'd use the chown command.

Try "man chown" and "man chmod" for the manpage entries for both commands. You can also do a search using apropos to search the manpages that contain information on these (or any other) commands ($ apropos chmod)

I found a pretty good tutorial that explains this in greater detail, as well as covers other things such as umnask, sticky bits, etc. here:

http://www.linuxpowered.com/html/editorials/file.html

Hope this helps! (Sorry if I misunderstood the original question)

TheOgre 77 Posting Whiz

OptOnline BLOCKS port 80 from outside your node. I run an FTP server which doesn't get hit very much, and sofar haven't had any problems with them. They also block 25 and 110, but if you have someone nmap your IP, it shows *everything* under the sun open and waiting. I think it's their filters, but I'm not sure.

Anyway, you can sign up for a free DynDNS service and run your httpd on any port you want, and have it redirected from the DynDNS service so it appears as though your server isn't being run from the back of your car so to speak.

I've also setup DNS to resolve one of my domains using their DNS servers to my local web/FTP servers, and sofar it doesn't work. *sigh*

TheOgre 77 Posting Whiz

*points to previous suggestion and adds "4.9-RELEASE"*

TheOgre 77 Posting Whiz

Check to ensure the username you use on the XP box has an account on the samba server, or else use an account that exists on the samba box to authenticate.

For example, if I have a user account on samba.mynet called "user1" and login to my XP box with the username of "user2" and don't have "user2" on the samba box, you'll experience the exact problem you're having.

I'm going to create an updated "SAMBA HOW-TO" that will cover all the problems I've seen in this forum and elsewhere, including username maps, samba as a PDC/login server, etc., and let cscgal know when it's done so she can post it.

TheOgre 77 Posting Whiz

If you want your Linux box to access your Wintel PDC for user authentication, you have to add a line in your smb.conf file pointing to the usermap file:

username map = /etc/samba/smbusers.conf

Also, set security=domain and specify the password server:

security = domain
password server = [Wintel PDC hostname]

To configure the usermap file, simply create a file that lists the Linux usernames and Windows usernames. Example:

# smbusers.conf for mysambamachine.mydomain
# Format is:
# Linux username = Windows username

root = administrator
linuxuser1 = windowsuser1
linuxuser2 = windowsuser2

TheOgre 77 Posting Whiz

Check out the manpage(s) for iptables, nat, and routing.

And yes, get nmap, or have a friend run a scan on your IP and let you know which services/daemons are visible from the outside. Locking them up should be your first priority before opening up any more holes...

Also, don't be afraid to buy books. The granddaddy of them all is "Building Internet Firewalls (Second Edition)" by O'Reilly.

TheOgre 77 Posting Whiz

Read the:
manpage for ps ("man ps")
info page for ps ("info ps")

TheOgre 77 Posting Whiz

You need to add a samba user to the samba server. Normally, whatever you use as a login on your WinXP box shold be added to your *nix box by doing:

smbpasswd -a username

If you use a password on your WinXP box, make it the same password in samba so you won't have to login to access the samba shares.

For example, if I use "TheOgre" on my Windows machine with a password of "password" and I want to access network shares on my *nix machine, I would add a normal user account to my samba server called "TheOgre" and set a password called "password." Next, I'd create a samba user called "TheOgre" and set the password to "password" (matching my Windows login.)

Create a user account on your *nix box (different distro's use different methods, so i'll skip it here, assuming you know how to do that already.)

To create a samba user, follow this example:

smbpasswd -a TheOgre # The -a switch is for "add"
Set a password for the new samba user when prompted, then you're done.

Next time you want to access a network share, and you're logged in to your Windows box with that username, you won't be prompted to enter a username/password.

If all else fails, check the manpage for smbpasswd (man smbpasswd)

Hope this helps!

TheOgre 77 Posting Whiz

Don't forget to create the cron job to:

1. Check to see if MySQL is running, and if not, to start it.
2. Run the script that performs the backup job.

This is a sample crontab entry for FreeBSD (which is what your server is running) that checks to see if MySQL is running (if it's not, it starts it) and does the backup:

*/15 * * * * your_userid /path/to/mysql startup_options
* 23 * * * your_userid /path/to/backup/script

The first line checks every 15 minutes to see if MySQL is running, and starts it if it's not

The second line runs the backup script every night at 11:00 PM.

The syntax for cron is:
minute hour day month wday user command

Also, the line that identified this system as FreeBSD is this:

FreeBSD 4.4-RELEASE (SERVER) #0

You can check the FreeBSD handbook for more info on using cron:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-cron.html

Hope this helps.

TheOgre 77 Posting Whiz

You can map a drive to a share on the host O/S as long as you have a directory shared on the host. You'd map a drive the same way as you normally would in any O/S.

(I just verified this using a Win98SE client using VM4 on a host running Win2kPro)

TheOgre 77 Posting Whiz

The name of the firewall script is usually called rc.firewall, and located in /etc or /etc/rc.d/

IPTABLES is the current program (IPCHAINS I think was last in RH 6.3, but I could be wrong, since I don't use RH)

There are some good examples of a firewall script for IPTABLES that can be found on google.com (use keyword "rc.firewall")

TheOgre 77 Posting Whiz

Don't forget to add your Windows users to Samba:

# smbpasswd -a username

Then set a password for that user:

# smbpasswd username newpassword

Finally, if your usernames under Windows are different from the usernames you've created on your Samba server, you'll need a usermap that maps *nix users to Win32 and add that to smb.conf If the usernames are the same, I suggest synching the passwords on both platforms.

If you want to make the Samba server a PDC that runs login scripts, you'll also need to add the following to smb.conf, if you haven't already:

# Global parameters
[global]
    workgroup = domain name here
    server string = PDC description here
    encrypt passwords = Yes
    log file = /var/log/log.%m
    max log size = 50
    time server = Yes  # If you want this option, otherwise remove this line
    load printers = No
    show add printer wizard = No
    logon script = %U.bat
    domain logons = Yes
    os level = 34
    lm announce = True
    preferred master = True
    domain master = True

You can also install and use SWAT to config your Samba server; most people find that easier...

Hope this helps.

TheOgre 77 Posting Whiz

I agree. FreeBSD r0x! I have 7 fileservers on my home network, and I typically recommend/install FreeBSD servers for my clients. The only thing you need to install (besides the networking stuff) is Samba.

I also have a few Slack servers running around somewhere, but they're mainly DHCP/DNS servers that are in desperate need for upgrades (one I think is still running Slack 3.6).

FreeBSD is very easy once you get past the install, which shouldn't take too long to figure out.

When you're asked if you want to install the "ports" collection (during install) answer YES. Then, to install a package, you cd /usr/ports, cd into the directory that contains the package you want to install, then simply "make install". FreeBSD also checks your dependancies before actually installing the package, so if there's something it needs that you don't already have, it fetches the files, compiles it, installs it, then continues on with the original package (much like Debian's apt-get, but no more guessing the names of the packages you have to get, because they have their own directories.)

If you get stuck, you can check out the online FreeBSD handbook, located at http://www.freebsd.org/handbook

TheOgre 77 Posting Whiz

...and in case any of you are wondering, I use Slackware, Debian, FreeBSD, and sometimes Solaris. I still have the original USENET post by Linus announcing Linux, and I've been following it ever since.

Also, I'm NOT a programmer. I can't help with questions relating to Perl, C++, Java, or any other programming language. I usually hack/slash my way through things when I need to regarding shell scripts (I don't consider that programming) but nothing using the abovementioned languages.

For everything else, though, I'd be glad to help :)

TheOgre 77 Posting Whiz

...doesn't anyone use Slackware anymore? I pride myself in never having owned/built/used/installed RedHat.

I'd love to be able to help everyone with Linux, but everyone and their brother seems to be stuck on RH for some reason.

TheOgre 77 Posting Whiz

Name: Kevin
Nickname: TheOgre, Bull
Height: 5'11"
Weight: 210
Age: 35
Hair: Blondish (what there is left of it!)
Eyes: They change between green, blue, grey, and hazel
Location: Northern New Jersey
Military: USMC, ARNG, US Army
Relationship Status: Single
Hobbies: Weightlifting, computers, reading, movies, music, mountainbiking, hunting, fishing, camping, and hiking

Education: Working on a BS in Telecommunications Management, as well as numerous security-related IT certifications.

Work: I own my own computer consulting firm.

Favorite Foods: Pizza, Italian subs, seafood, steak, pasta; pretty much everything :P

Favorite Musical Artists: David Arkenstone, Jeff Victor, Danny Elfman, Robyn Miller, assorted other Celtic/Gaelic musicians, with some Metallica and TSO thrown in for good measure.

Favorite Games: Neverwinter Nights (+ SOU), Unreal Tourney (+ 2003), Dungeon Seige, Thief (I and II), Half-Life (+mods), and Legend Of the Red Dragon (yes, I run a BBS, and my LORD is registered :P)

Favorite Movies: Too many to list.

Favorite Authors: Terry Pratchett (DiscWorld), David Eddings (the Belgariad and Mallorian series), Douglas Adams (Hitchhiker's Guide), and Robert Jordan (Wheel of Time series)

Things that really piss me off: People who think that everyone needs to be "Politically Correct," rude/obnoxious behavior, flag burners, the VA, idiot drivers, people with a closed mind to anything not the "norm," Microsoft (I use it for playing games on), and people who start arguments about things they don't know a thing about, or who are too lazy to look up the facts prior …