Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am a relative n00b when it comes to Linux, so I hope that I give you the right information.
I have built a backup server using Fedora Core 4, and have it backing up a Linux Fedora Core 2 machine, and my Windows XP machine.
For the FC2 machine, I have set up NSF and am able to mount the drives using mount.
For the XP machine, I used mount.cifs and am able to mount the drives.
I wrote a backup script which mounted the XP directories, three in total, using mount.cifs. It then uses a perl script to backup the three directories onto the backup server. It then umounts the three directories, and mails me the log from the perl script.
When I tested the script, I logged in as root, ran the script with the command:
/bin/sh < backup_sys.cron
When I do this, the script runs fine and all the backups are completed.
I then put it into Crontab to run nightly at 2:30am. I used the exact same command above, in the Crontab entry.
When Cron runs the script it is unable to mount the XP drives. The email message from Cron, says that mount.cifs command not found. The message says it is logged in as root, but it cannot find the mount.cifs command.
I have checked the script and all directory names are full, there are no relative paths and such for any of the backup or destination directories, so the script should work if run from any directory.
The mount.cifs command I am using is:
mount.cifs //Machine Name/ share name mount-point -o password=
(there is no password for the XP directories)
So what is causing mount.cifs not to work, when cron runs the script compared to when I log in as root and run it?