[TriLUG] private key permission/ownership on removable USB device
Ken Mink
ken.mink at gmail.com
Mon Feb 28 13:56:41 EST 2005
You need fat to use the uid/gid options. However, I just did some
testing and it seems that ssh simply requires that it can read your
ssh key file. So you can not worry about using fat and use ext2/3.
On Mon, 28 Feb 2005 12:48:01 -0500, Mack.Joseph at epamail.epa.gov
<Mack.Joseph at epamail.epa.gov> wrote:
> Joseph Mack PhD, High Performance Computing & Scientific Visualisation
> LMIT, Supporting the EPA Research Triangle Park, NC 919-541-0007
> Federal Contact - John B. Smith 919-541-1087 - smith.john at epa.gov
>
> trilug-bounces at trilug.org wrote on 02/28/2005 12:06:07 PM:
>
> > Here's the way I did that for my machines:
> >
> > 1) Leave the key drive a fat file system.
>
> I hoped not to have to do this :-( Why can't you use ext3?
>
> Do you need fat so you can use the uid/gid below (your "2")
>
> > 2) Use autofs to mount the drive when needed with the following fat
> > mount options;
> > uid=<your uid>,gid=<your gid>,umask=0177
> > you set the uid and gid to your ids on each machine. The mask
> > makes the file perms 600, which ssh wants.
> >
> > 3) create a sym link in you .ssh directoy to the appropiate file in
> > the automounted filesystem.
> >
> > I used mine this way for quite a while. I was eventually able to make
> > all my uids the same. Then I switched to ext2 filesystem on the key
> > drive.
>
> how do you do it with ext2?
>
> Thanks Joe
>
> --
> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
> TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc
>
--
---------------------------------------------
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."--Benjamin Franklin
" 'Necessity' is the plea for every infringement of human liberty; it
is the argument of tyrants; it is the creed of slaves."--William Pitt
More information about the TriLUG
mailing list