Renaud OLGIATI wrote:
> I would like to have the same configuration and access the same data
> folders whether I'm logged in as root, or as my user id.
> 
> I thought of having the two sharing /root as home dir; would this
> create a security weak-spot ? Or any other problems ?
> 
> Any advice will be gratefully received.

My advice would be don't do this.  If for no other reason then to discouage
the use of root.  If there is data that *must* be shared between them,
remember that root is not subject to the same restrictions regarding file /
directory ownership that a regular user is subject to.  Therefore you could
go ahead and put the shared stuff into the regular user's home directory. 
Or even a completely seperate directory.

Now then, having said that, if you *must* have the same directory for both
root and a regular user I suppose one way to do this would be make both
/root and ~$USER links to a third directory, where the third directory is
where the data would actually go.  I've never tried anything quite like
that, but I don't see why it wouldn't work.  It might get a bit awkward for
some package's configs, but I don't know that for sure.

If it's the differences in shell config and such that's the main point, I'd
say make a subdirectory somewhere - /usr/local/configs seems likely, as
anything under /usr/local is guaranteed not to be touched by automatic
system actions - and put copies of the config files there.  Then make links
to them from both the user's directory and from /root
-- 
Mike Werner  KA8YSD           |  "Where do you want to go today?"
                              |  "As far from Redmond as possible!"
'91 GS500E                    |
Morgantown WV                 |  Only dead fish go with the flow.

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to