Questions tagged [uid]

77 questions
34
votes
3 answers

Rearrange UIDs in GPG

In gpg, is it possible to move a UID up or down in the list of UIDs in a PGP key? I realize it is a purely cosmetic thing, but I may want to use this to show priority among my addresses, which one should be used first if possible. pub …
IQAndreas
  • 10,145
  • 21
  • 59
  • 79
27
votes
1 answer

What is the /etc/subuid file?

Following docker instructions, I've run a docker with dockerd --userns-remap=default which added this line to the /etc/subuid file: dockremap:165536:65536 I don't understand what it means, please explain.
Gilgamesz
  • 470
  • 1
  • 4
  • 7
11
votes
2 answers

Is there a file besides /etc/passwd that contains/defines my UID?

Trying to learn about UIDs and GIDs. Various online reading led me to believe that my UID is saved in /etc/passwd, but this doesn't appear to be the case on a server where I work: $ whoami user1 $ cat /etc/passwd | grep user1 $ Is there a(nother)…
StoneThrow
  • 1,575
  • 5
  • 19
  • 41
10
votes
3 answers

Proper syntax for "id -r" command

I'm trying to see if id -r will print out the UID or username of the user who logged into the system despite any su's or sudo's. I'm interested in doing this so I can keep people a little more accountable and to tailor script functioning accordingly…
Bratchley
  • 16,684
  • 13
  • 64
  • 103
10
votes
2 answers

How could one determine UID/GID of running process

Is there any way to retrieve UID/GID of running process? Currently, I know only way of looking it up in htop. But I don't want to depend on third-party tool, prefer to use builtin unix commands. Could you suggest a few useful oneliners? This didn't…
Bulat M.
  • 397
  • 2
  • 5
  • 14
6
votes
1 answer

First process in a new Linux user namespace needs to call setuid()?

I'm learning about Linux user namespaces and I'm observing a strange behavior which isn't completely clear to me. I've created a range of UIDs in initial user namespaces to which I can map UIDs in child user namespace via newuidmap command. These…
woky
  • 422
  • 3
  • 11
5
votes
2 answers

an executable emits “pax archive volume change required”

I'm trying to run a ./configure executable for a software (I'm doing it through a remote Linux machine using PuTTY) and at some point it says: ATTENTION! pax archive volume change required. Ready for archive volume: 1 Input archive name or "." to…
user422335
  • 51
  • 1
5
votes
2 answers

Questions about the saved user ID

As far as I understood the different user IDs are as follows (from the perspective of a process): real user ID: the user ID that owns the process effective user ID: the user ID which determines what is currently allowed to do and not allowed to…
Chris
  • 175
  • 1
  • 6
5
votes
1 answer

Assignment of UID and GID from Active Directory

My CentOS 7 machine has successfully joined a domain FOOBAR (as verified by realm list) and here's the information about an user coming from the AD (non-local): [root@centos7 ~]# id [email protected] uid=5631533([email protected])…
dr_
  • 28,763
  • 21
  • 89
  • 133
4
votes
2 answers

systemd DynamicUser= services v.s. journald splits

systemd-journald has the default config SplitMode=uid, to create individual journal (log) files for each user, which they are allowed to read. When running services with DynamicUser=, does this mean the service may be able to read the logs of random…
sourcejedi
  • 48,311
  • 17
  • 143
  • 296
4
votes
1 answer

Fix Nvidia drivers in Ubuntu 16.04 when getting the "Stopping User Manager for UID 121" error

OS: Ubuntu (Gnome) 16.04 NOTE: This does only seem to affect (as far as I know) Nvidia GPU users. Issue: When booting you see your screen for no more than a few seconds and then it seems to "restart" and repeat itself. The message on the screen for…
r00t hkr
  • 66
  • 1
  • 1
  • 7
4
votes
1 answer

How to change Squid service UID in FreeBSD?

Strangely enough, it appears that Squid cannot start if the squid user is not affected to the UID 100. When trying to use another PID, the service systematically fails to start with the following error: 2016/03/10 10:53:13| storeDirWriteCleanLogs:…
WhiteWinterWolf
  • 2,851
  • 2
  • 21
  • 37
3
votes
1 answer

Trying to change uid to user, but says it already exists

I'm trying to change the UID of user ec2-user to 500, when I try the following command getting the error UID already exists. sudo usermod -u 500 ec2-user usermod: UID '500' already exists I'm doing a grep of /etc/passwd and can't find UID 500, so…
Diego
  • 131
  • 1
  • 5
3
votes
1 answer

How essential are usernames ( compared to uids )?

Background: I recently read about a freedesktop.org-bug which allowed executing any systemctl command for uid > INT_MAX. Thus I ran: root@host$> useradd -u 4000000000 largeuiduser root@host$> su largeuiduser largeuiduser@host$> systemctl…
humanityANDpeace
  • 13,722
  • 13
  • 61
  • 107
3
votes
1 answer

Reserving a range of anonymous UIDs; /etc/subuid

I need a range of uids (say a few thousand) for a setuid-root tool to use. Is there a protocol to registering such a range or do I just pick a range and hope no other program will use those uids? (I'd rather not create not clutter /etc/passwd with…
Petr Skocik
  • 28,176
  • 14
  • 81
  • 141
1
2 3 4 5 6