[juneau-lug] Re: SMB Client
- From: "James Zuelow" <jamesz@xxxxxxxxxxxxxxxx>
- To: <juneau-lug@xxxxxxxxxxxxx>
- Date: Thu, 16 Aug 2001 12:11:38 -0800
----- Original Message ----- > If you *do* supply these variables, you can
use the mount command in a
> script (or even fstab, but that's a bad idea since the password will be in
> cleartext). A script readable only by root is handy as you just su to
root
> and run the script, which can mount one or a hundred Windows shares. Sudo
> is very handy here. Note that if you issue the `su` command as a user,
your
> username is unchanged, so you can use su to mount the share without
> supplying a user name. If you `su -` as a user, your username will become
> root. (man su)
Just as an example of how this can be useful:
I have a tape drive on one of my Linux machines. I set up a crontab entry
for root to run a backup script every night. This script mounts various
directories on my Win98 box, then backs them up to tape using afio (or you
could use tar, dump, cpio, what-have-you). After verifying the backup with
afio, it unmounts the shares. It's a poor-man's network backup system. I
need to supply the username and password with the -o option because root
isn't mapped to any Windows98 user, and I don't want to get up every night
to enter them at the prompts.
Cheers,
James
------------------------------------
This is the Juneau-LUG mailing list.
To unsubscribe, send an e-mail to juneau-lug-request@xxxxxxxxxxxxx with the
word unsubscribe in the subject header.
- References:
- [juneau-lug] Re: SMB Client
- From: James Zuelow
Other related posts:
- » [juneau-lug] Re: SMB Client
- » [juneau-lug] Re: SMB Client
- » [juneau-lug] Re: SMB Client
- » [juneau-lug] Re: SMB Client
- [juneau-lug] Re: SMB Client
- From: James Zuelow