Re: [arch-general] Arch pkg user and group IDs?

2016-11-28 Thread Leonid Isaev
On Mon, Nov 28, 2016 at 11:04:53AM +0100, Hauke Fath wrote: > On Sun, 27 Nov 2016 19:16:56 -0700, Leonid Isaev wrote: > > But out of curiosity, why is it difficult to change user IDs on all files? I > > assume that you control the storage? Isn't it just a chown -R away? For > > example, for our NIS

Re: [arch-general] Arch pkg user and group IDs?

2016-11-28 Thread Hauke Fath
On Mon, 28 Nov 2016 12:28:23 +0100, Martin Kühne via arch-general wrote: > Hmm, you could do the move per-server, though, at least for the > network services that publicly can report a different UID/GID pair > than is advertised on the file system, which is at least true for NFS. NFSv4, that is. W

Re: [arch-general] Arch pkg user and group IDs?

2016-11-28 Thread Martin Kühne via arch-general
Hmm, you could do the move per-server, though, at least for the network services that publicly can report a different UID/GID pair than is advertised on the file system, which is at least true for NFS. Did you look into that, already? cheers! mar77i

Re: [arch-general] Arch pkg user and group IDs?

2016-11-28 Thread Hauke Fath
On Sun, 27 Nov 2016 19:16:56 -0700, Leonid Isaev wrote: > But out of curiosity, why is it difficult to change user IDs on all files? I > assume that you control the storage? Isn't it just a chown -R away? For > example, for our NIS passwd/shadow map we use 6-digit IDs... Because... users have file

Re: [arch-general] Arch pkg user and group IDs?

2016-11-27 Thread Leonid Isaev
On Sun, Nov 27, 2016 at 10:32:38PM -0500, Eli Schwartz via arch-general wrote: > On 11/27/2016 10:03 PM, Leonid Isaev wrote: > >> Well, packages can have files that need to have a specific system > >> user ownership. That is why the UID/GID database exists, right? > >> Because the UID baked into th

Re: [arch-general] Arch pkg user and group IDs?

2016-11-27 Thread Eli Schwartz via arch-general
On 11/27/2016 10:03 PM, Leonid Isaev wrote: >> Well, packages can have files that need to have a specific system >> user ownership. That is why the UID/GID database exists, right? >> Because the UID baked into the *.pkg.tar.xz has to match >> /etc/passwd, and systemd-sysusers can't inherently do an

Re: [arch-general] Arch pkg user and group IDs?

2016-11-27 Thread Leonid Isaev
On Sun, Nov 27, 2016 at 09:50:22PM -0500, Eli Schwartz via arch-general wrote: > On 11/27/2016 09:16 PM, Leonid Isaev wrote: > > There is no such think as "arch expects". It is a default setting in > > /etc/login.defs that is being used by systemd because it is likely that a > > devs > > don't cha

Re: [arch-general] Arch pkg user and group IDs?

2016-11-27 Thread Eli Schwartz via arch-general
On 11/27/2016 09:16 PM, Leonid Isaev wrote: > There is no such think as "arch expects". It is a default setting in > /etc/login.defs that is being used by systemd because it is likely that a devs > don't change login.defs before building systemd... Well, packages can have files that need to have a

Re: [arch-general] Arch pkg user and group IDs?

2016-11-27 Thread Leonid Isaev
On Sun, Nov 27, 2016 at 06:31:01PM +0100, Hauke Fath wrote: > On Sun, 27 Nov 2016 08:55:48 -0500, Eli Schwartz via arch-general wrote: > > By convention, Arch expects user UIDs to be greater than 1000. > > I understand that. There is no such think as "arch expects". It is a default setting in /et

Re: [arch-general] Arch pkg user and group IDs?

2016-11-27 Thread Eli Schwartz via arch-general
On 11/27/2016 04:04 PM, Eli Schwartz wrote: > On 11/27/2016 08:52 AM, Martin Kühne via arch-general wrote: >> Yes, arch system users are numbered automatically, but the groups >> and users you listed are a bit of special snowflakes for systemd. >> I'm not sure whether remapping them would be possib

Re: [arch-general] Arch pkg user and group IDs?

2016-11-27 Thread Hauke Fath
On Sun, 27 Nov 2016 15:49:33 -0500, Eli Schwartz via arch-general wrote: >> [login.defs] might actually help, depending on how well it is >> enforced. Thanks! > > "enforced"? It is the configuration file for useradd. Anything not > explicitly hardcoded in the UID/GID database (or hardcoded but no

Re: [arch-general] Arch pkg user and group IDs?

2016-11-27 Thread Eli Schwartz via arch-general
On 11/27/2016 08:52 AM, Martin Kühne via arch-general wrote: > Yes, arch system users are numbered automatically, but the groups and > users you listed are a bit of special snowflakes for systemd. I'm not > sure whether remapping them would be possible. AFAIK those systemd users/groups are generat

Re: [arch-general] Arch pkg user and group IDs?

2016-11-27 Thread Eli Schwartz via arch-general
On 11/27/2016 12:27 PM, Hauke Fath wrote: >> And, just to mention it for completness, there is >> /etc/login.defs where you can theoretically adjust those numbers. > > This > > > # Min/max values for automatic uid selection in useradd > # > UID_MIN 1000 > UID_MAX

Re: [arch-general] Arch pkg user and group IDs?

2016-11-27 Thread Hauke Fath
On Sun, 27 Nov 2016 08:55:48 -0500, Eli Schwartz via arch-general wrote: > By convention, Arch expects user UIDs to be greater than 1000. I understand that. > There is a list of explicitly reserved system UIDs by repo packages > here: https://wiki.archlinux.org/index.php/DeveloperWiki:UID_/_GID_D

Re: [arch-general] Arch pkg user and group IDs?

2016-11-27 Thread Hauke Fath
On Sun, 27 Nov 2016 14:52:25 +0100, Martin Kühne via arch-general wrote: > What I would recommend to you is to use another range further beyond > 1000 for your network users and groups because with regard to what we > established in the first paragraph, those don't seem to qualify as > system users

Re: [arch-general] Arch pkg user and group IDs?

2016-11-27 Thread Eli Schwartz via arch-general
On 11/27/2016 07:58 AM, Hauke Fath wrote: > Hi, > > what are Arch's conventions for the numeric ranges of system (package) > user and grop IDs? And can the range be limited? > > I am working up to switching a few dozen Debian clients to Arch. They > have user homes on NFS, and authenticate thro

Re: [arch-general] Arch pkg user and group IDs?

2016-11-27 Thread Martin Kühne via arch-general
First of all, any UID less than 1000 is generally considered a system user/group, I would suspect this tradition or a variation thereof comes from elder days. Yes, arch system users are numbered automatically, but the groups and users you listed are a bit of special snowflakes for systemd. I'm not

[arch-general] Arch pkg user and group IDs?

2016-11-27 Thread Hauke Fath
Hi, what are Arch's conventions for the numeric ranges of system (package) user and grop IDs? And can the range be limited? I am working up to switching a few dozen Debian clients to Arch. They have user homes on NFS, and authenticate through NIS. So far, nis distributes user and group IDs > 5