Re: Share the same Mail und News directories in two differnt Linux...

From: Dave Brown (dhbrown_at_hobbes.dhbrown.net)
Date: 12/02/03


Date: Tue, 02 Dec 2003 17:04:41 GMT

In article <sweet.nirwana_ism2r7zn5ycj.fsf@home_at>, Josef Oswald wrote:
>>> 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.
> ...
>
> 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:
>
>> 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
>
> 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...

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


Relevant Pages

  • [SLE] Problem mount samba share in SuSE 9.1
    ... using suse 8.2. ... seems like using the same UID and GID from the system) not the same with UID ... home directory in file-server, cause it's not belong to me... ...
    (SuSE)
  • [SLE] Problem mount samba share in SuSE 9.1
    ... using suse 8.2. ... seems like using the same UID and GID from the system) not the same with UID ... home directory in file-server, cause it's not belong to me... ...
    (SuSE)
  • Re: Accessing SuSE 9.0 files from 9.1
    ... the mount command has a very long man page you ... >> The other issue I can think of concerns UID and GID numbers. ... Every user you create is allocated a UID number. ... the second matter was that you said you needed to chown the files ...
    (alt.os.linux.suse)
  • UID/GID override on CIFS mounts to Samba and proposed new mount parameter to disable Unix Extensions
    ... When CIFS Unix Extensions are negotiated we get the Unix uid and gid ... I also would like suggestions on what we should call a proposed mount ...
    (Linux-Kernel)
  • Re: ID Numbering in Group and Passwd
    ... Raises a problem tho that what UID will the 39,501th user have? ... Change the useradd / luseradd code to find the lowest unique uid / gid ... complete and scalable solution because you can change the UID, GID MIN, MAX ... the same thing would be using the same underlying code / library to achieve ...
    (Fedora)