- Share the same Mail und News directories in two differnt Linux...
- Posted by Josef Oswald on November 28th, 2003
Hi :-)
This is the situation, I have two different versions of Linux
installed ( Debian 3.0 r2 and Mandrake 9.2) As I use for my mail and
news reading mainly Gnus in XEmacs, I would like to be able to use the
Mail and News directory in both.
I tried to this so far: put Mail and News on a different partition
(where I have other stuff) mount that partition during boot and for
each distro I made a symlink. ( Well that was the Idea) but for some
reasons this was not working.
Has this something to do with the User ID and if so how and to _what_
(most likely _same_? value can I set it so that it would work?
Thanks :-)
--
Josef Oswald linux.os@chello.at
registered-linux-user # 134.818 at http://counter.li.org
- Posted by Yvan@office on December 1st, 2003
Nedavno Josef Oswald pise:
| This is the situation, I have two different versions of Linux
| installed ( Debian 3.0 r2 and Mandrake 9.2) As I use for my mail and
| news reading mainly Gnus in XEmacs, I would like to be able to use the
| Mail and News directory in both.
|
| I tried to this so far: put Mail and News on a different partition
| (where I have other stuff) mount that partition during boot and for
| each distro I made a symlink. ( Well that was the Idea) but for some
| reasons this was not working.
|
| Has this something to do with the User ID and if so how and to _what_
| (most likely _same_? value can I set it so that it would work?
Check mount option --bind:
"mount --bind olddir newdir
After this call the same contents is accessible in two places."
--
___ ____
/__/ / \ ** Registrovani korisnik Linuksa #291606 **
/ / \/ /\ \ ** http://counter.li.org/ **
/__/\____/--\__\ ** Reply at: ivica - at - ptt - dot - yu **
- Posted by Dave Brown on December 1st, 2003
In article <20031201084215.3c4eb001.nevazeca-invalid@address-a.com>,
Yvan @ office wrote:
I have /home on a separate partition, as well as /var/spool/mail on
another. When I created username on both, I made sure that the UID and
GID are the same for both Linux setups. I leave the mail in the system
mailbox (although you could probably do that either way), and I leave the
news on the ISP newserver. So whichever Linux I boot into, my home
directory will contain the newsgroup reader files (I use slrn) and the
mail client files (I use pine and procmail), as well as my system mailbox.
(I suppose the root mailbox is probably a little confused, as it may be
getting cron mailings from different Linuxes, but that doesn't bother me.
The OPs suggestion to use the "mount --bind" option would enable /home and
/var/spool/mail to share the same physical partition, although different
partitions don't bother me, as I use LVM.
--
Dave Brown Austin, TX
- Posted by Josef Oswald on December 2nd, 2003
First off:
Thanks for taking the time to reply.
Dave Brown <dhbrown@hobbes.dhbrown.net> writes:
The problems seems that Debian 3.0r1 and Mandrake 9.2 can't share
the same /home/oswald, so most likely I will go as you suggest with:
and use this
Now a novice question, how do I change both if them?
well man UID and Man GID bot give me no entry for them.
anyway a search on goolge is in most cases helpful...
--
Josef Oswald linux.os@chello.at
registered-linux-user # 134.818 at http://counter.li.org
- Posted by Dave Brown on December 2nd, 2003
In article <sweet.nirwana_ism2r7zn5ycj.fsf@home_at>, Josef Oswald wrote:
You probably have some ownership changing to do:
In /etc/passwd, you'll find a line for your user:
....
dhbrown:x:501:501: <etc>
....
Field 3 is the UID, field 4 is the GID. These numbers have to tbe the
same on both installations.
Then, I'd change the ownership (logged in as root) on /home/dhbrown and
/var/spool/mail/dhbrown thusly:
chown dhbrown:dhbrown /home/dhbrown /var/spool/mail/dhbrown
I'm assuming that Debian creates a private GID for each UID; RedHat does,
SuSE does not. On SuSE, you'd have to create the group 'dhbrown' in the
/etc/group file.
--
Dave Brown Austin, TX
- Posted by Josef Oswald on December 2nd, 2003
Dave Brown <dhbrown@hobbes.dhbrown.net> writes:
now I can get this working....
Thanks a lot :-) .
--
Josef Oswald linux.os@chello.at
registered-linux-user # 134.818 at http://counter.li.org
- Posted by Josef Oswald on December 2nd, 2003
ebenONE@tampabay.ARE-ARE.com.unmunge (Hactar) writes:
Thank you very much for your answer :-)
--
Josef Oswald linux.os@chello.at
registered-linux-user # 134.818 at http://counter.li.org