All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Eve Atley" <eatley@wowcorp.com>
To: 'Ray Olszewski' <ray@comarre.com>, linux-newbie@vger.kernel.org
Subject: RE: Thought I was mounting drive correctly, but backup failed
Date: Fri, 11 Mar 2005 17:35:28 -0500	[thread overview]
Message-ID: <00b501c5268a$a0771bf0$4f0aa8c0@lanadmin> (raw)
In-Reply-To: <5.1.0.14.1.20050311131458.02051e80@celine>


Hi Ray, thanks for your usual excellent tips. Here's what I've done...

1. mount -t smbfs -o username=linuxadmin,password=password,workgroup=wowcorp
//backup/e /mnt/backup
Result: no errors

2. df shows:
/dev/hda2             37334192   5252668  30185052  15% /
/dev/hda1               101089     29129     66741  31% /boot
/dev/hdb1             57669728  42343604  12396676  78% /home
none                    256800         0    256800   0% /dev/shm
//backup/e           120623104     69632 120553472   1% /mnt/backup

So, it appears to be mounting...with correct partition size.

3. cp mount_test.txt /mnt/backup
Result: mount_test.txt resides on /mnt/backup

>If yes, can you do so as whatever userid the script runs from? If 
>no, can you do so as root?

Well, I logged in via ssh as root, mounted the drive, and copied the file.

>If cp'ing by hand works, then you need to examine your script with a bit 
>more skepticism. (BTW, does the script detect and log cp'ing failures? Or 
>are its STDOUT and STDERR routed to /dev/null or someplace equally
useless?)

Well, I say it's not the script's fault because it all worked previously. :)
Linuxadmin is set up as an administrator, so should have full read/write
capabilities. At this point, the backup script shows:

mount -t smbfs -o username=linuxadmin,password=password,workgroup=wowcorp
//backup/e /mnt/backup &>/root/backup_scripts/logs/`date
+"MOUNT-%y-%m-%d.log"`
if [ -f /mnt/backup/connected ]; then
        rm -rf /mnt/backup/`date +"%A/"`
        mkdir /mnt/backup/`date +"%A/"`
        cp -r /home/shared/* /mnt/backup/`date +"%A/"`
1>/mnt/backup/logs/`date
+"DAILY-%y-%m-%d.log"` 2>/mnt/backup/logs/`date +"DAILY-%y-%m-%d.err"`
        umount /mnt/backup  &>/root/backup_scripts/logs/`date
+"MOUNT-%y-%m-%d.log"`
fi


----------------

The generated log appears completely empty, whereas the day before it
indicated:
SMB connection failed
15538: session setup failed: ERRDOS - ERRnoaccess (Access denied.)
...since I had nothing set up at that time.


- Eve


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

  reply	other threads:[~2005-03-11 22:35 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-01  5:50 Sype wont't open Peter H.
2005-03-01  6:21 ` Ray Olszewski
2005-03-01  7:10   ` Richard Adams
2005-03-01  7:13   ` Skype " Peter
2005-03-01 16:22   ` Some users locked out of ssh and sftp? Eve Emshoff
2005-03-01 16:59     ` Ray Olszewski
2005-03-02  1:26       ` Eric Bambach
2005-03-11 19:20         ` Thought I was mounting drive correctly, but backup failed Eve Atley
2005-03-11 21:37           ` Ray Olszewski
2005-03-11 22:35             ` Eve Atley [this message]
2005-03-11 22:54               ` Ray Olszewski
2005-03-11 23:49                 ` Eve Atley
2005-03-11 22:56         ` Some users locked out of ssh and sftp? Eve Atley
2005-03-11 23:27           ` SOTL
2005-03-13 23:44             ` SOTL
2005-03-12  0:15           ` Ray Olszewski
2005-03-14 19:17             ` Eve Atley
2005-03-14 19:45               ` Ray Olszewski
2005-03-14 21:54                 ` Eve Atley
2005-03-15  0:01                   ` SOLVED: " Eve Atley
2005-03-15  0:06                     ` Ray Olszewski
2005-03-15 16:16                       ` Eve Atley
2005-03-14 19:20             ` Eve Atley
2005-03-12  1:06     ` Marcus Furlong
2005-03-01  6:58 ` Sype wont't open Richard Adams
2005-03-01  8:17   ` Skype " Peter
2005-03-02  2:07   ` Peter
2005-03-02  3:00     ` Ray Olszewski
2005-03-02  5:53       ` Peter
2005-03-02  6:51     ` Richard Adams
2005-03-02  7:33       ` Peter
2005-03-03  6:34         ` Richard Adams
2005-03-03  9:56           ` Peter
2005-03-03 11:25             ` chuck gelm
2005-03-03 16:37             ` Richard Adams
2005-03-01  9:46 ` Sype " chuck gelm
2005-03-01 14:18   ` Richard Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='00b501c5268a$a0771bf0$4f0aa8c0@lanadmin' \
    --to=eatley@wowcorp.com \
    --cc=linux-newbie@vger.kernel.org \
    --cc=ray@comarre.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.