On Mon, Apr 29, 2002, Iftach Hyams wrote about "RE: a 'mount' question":
> 
> >> The solution I suggested to Muli was
> >>    mv /home/baduser /root/.ssh/
> 
> This might get ugly if (reasonably) /root and /home are in different
> file systems.
> Mounting a null F.S. or chmod are better.

Some people didn't seem to understand: Muli said this was a *riddle* - it is
not some real-life system administration problem he was facing. The "do it
in one command" was the riddle's *rule*, and is not a constraint you'll
normally see in real life. So saying "yes, but if I just added a second
command it will be better..." is just plain cheating.
As such, the chmod solution is not enough, and adding another chown,
"ed '....' /etc/passwd" or anything like that would break the one-command
rule.
And what's a "null filesystem"? I don't recall Linux having this. Possible
alternatives are mounting procfs on the user's home directory (this would
be weird :)) or some small tmpfs. This is indeed a good solution.

Of course my solution fails if /root and /home are on different partitions
*AND* the /root partition doesn't have room for the baduser's home directory.
But if other people were allowed to prepare in advance a filesystem filled
with random stuff, I can ask to be prepared with a directory /home/.hide
which is owned by root and has no permissions to others - then I'll move
/home/baduser there, instead of /root/.ssh.


-- 
Nadav Har'El                        |       Monday, Apr 29 2002, 17 Iyyar 5762
[EMAIL PROTECTED]             |-----------------------------------------
Phone: +972-53-245868, ICQ 13349191 |Red meat is not bad for you: fuzzy green
http://nadav.harel.org.il           |meat is bad for you.

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to