[SGVLUG] devices, remote backups, and permissions question

Tom Emerson osnut at pacbell.net
Wed Oct 19 22:21:04 PDT 2005


OK, I've *nearly* got it [well, actually a backup IS running 
right-this-second, but it's not /necessarily/ optimal...] with only one snag 
that needs un-snagging.

my workstation [where I'm typing] is "beast"
the system with the DLT drive is "franky"

through the pages -just- mentioned, I finally figured out some "tidbits" I 
needed to configure on FRANKY:

 * in /etc/passwd, I needed to create a user:
   dlt:x:900:100:DLT drive on Franky:/home/dlt:/sbin/rmt

or broken up for clarity:
   user "dlt", uid 900, gid 100 [users], logs in to /home/dlt and 
uses /sbin/rmt as it's "shell" [note the docs reference /usr/sbin/rmt, 
however that isn't where SuSE installs the program "rmt" which essentially 
allows access to the drive itself...]

 * in /etc/default/rmt, add the following [this is where it's getting 
tricky...]

   USER=dlt
   ACCESS=dlt	beast	/dev/rmt/*

that access line I'm not as certain about -- it's based on the internal 
example already in place [rtape sparky /dev/rmt/*] but no matter what I tried 
in the next step, I kept getting "permission denied, cannot open remote...", 
so now I have these two lines in place:

   USER=root
   ACCESS=*	*	*

[don't nobody hose my system while I'm writing this, ok...]

In order to actually backup files FROM beast TO franky, the procedure is:

    env RSH=/usr/bin/ssh star -cM fs=128m bs=63k f=root at franky:/dev/st0 .

which then prompts [via ssh] for the root password.  The preferred method, of 
course, would be to use "f=dlt at franky:/dev/st0", but as I said, that kept 
returning "permission errors", hence this post :)

The tape "device" itself appears as:

   franky:~ # l /dev/st0
   crw-rw----  1 root disk 9, 0 2005-10-17 15:57 /dev/st0

which, if I'm reading this right, is "owned" by root, and is in the "disk" 
group -- does the user "dlt" need to be a member of "disk", or (since this is 
a "special" file) is this supposed to be automagic?  (note: of course, I've 
already tried this without success, so unless I've mistyped something, this 
doesn't seem to be the answer...)

So, what have I overlooked?

Tom

p.s. -- per "du", my home directory contains 29GB of data -- that's passing 
through a 100mbit network, encrypted via ssh2, to a machine not more than 5 
feet away -- per "top" on the receiving machine, I've got "bandwidth" -- ssh 
is taking up 30% of the cpu, while rmt takes <2% -- even still, it's gonna be 
a while...

-- 
Top o' the Blog: Too hot to handle
http://osnut.homelinux.net/mtblog/ya_index.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
Url : http://www.sgvlug.net/pipermail/sgvlug/attachments/20051019/c3f70bae/attachment.bin


More information about the SGVLUG mailing list