Questions tagged [uid]

uid refers to a string used for record keeping which is not guaranteed to be unique, but should be in the large majority of use cases.

uid stands for one of the following:

  • user identifier
  • unique identifier

References

368 questions
7
votes
1 answer

Using useradd in a Dockerfile

What happens when a RUN useradd ... command is found in a Dockerfile? Where is that user created? Where does it live? Is it added to the UID pool managed by the kernel? What happens to it when the build context container exits?
A. Sallai
  • 871
  • 3
  • 11
  • 20
7
votes
0 answers

How to run a windows docker container with current host user? - Docker Windows

When I'm running a windows docker container, I want that this container use the same host current user. I want that when I do whoami or echo %username% in the container, I get the same user then in the host. I'm try to do like this: docker run -it…
Amlys
  • 125
  • 1
  • 7
7
votes
5 answers

What is a serial version UID used for?

I'm creating a Java application, and when creating an interface to use with an ADT, it finds the need to initialize a random number as an ID number. public class StackFullException extends RuntimeException { private static final long…
Archibald
  • 456
  • 1
  • 7
  • 20
7
votes
7 answers

How do I create a unique identifier that does not contain numbers?

I'm looking to use some sort of unique identifier within a .resx file but it does not allow the key to begin with a number. Rather than cycling through GUIDs until I get one that starts with a letter, I'm wondering if there's an alternative UID type…
Sinaesthetic
  • 11,426
  • 28
  • 107
  • 176
6
votes
3 answers

Unique persistent control identifier

What we have We have some complex winforms control. To store its state we use some custom serialized class. Lets say we've serialized it to xml. Now we could save this xml as a file in User directory or to include it in some another file.... But... …
MajesticRa
  • 13,770
  • 12
  • 63
  • 77
6
votes
3 answers

Node.js: Mongoose schema default rand-tokens are not random

I have a UserSchema like this and I cannot seem to generate unique random activation_token's. I am using rand-token for the generation. Found here. var UserSchema = new Schema({ activation_token: { type: String, …
Trevor Hutto
  • 2,112
  • 4
  • 21
  • 29
5
votes
3 answers

How to generate/autoincrement guid on insert without triggers and manual inserts in mysql?

Im revisiting my database and noticed I had some primary keys that were of type INT. This wasn't unique enough so I thought I would have a guid. I come from a microsoft sql background and in the ssms you can choose type to "uniqeidentifier" and…
CodingLittle
  • 1,761
  • 2
  • 17
  • 44
5
votes
1 answer

find effective id euid for process with pid=

How to find euid of a process if I know its pid I tried I get process id using : ps -f -u user1 then I tried ps aux , ps -ef with grep pid but can not see euid I always try to get info from man pages but man ps seems too confusing for a newbie…
Ameyj
  • 597
  • 1
  • 7
  • 16
5
votes
1 answer

Is there a difference between Facebook profile id and uid?

I have an app and I'm getting Facebook uid of app users with this snippet: FB.login(function(response) { if (response.authResponse) { FB.getLoginStatus(function(response) { if (response.status === 'connected')…
user3692012
  • 53
  • 1
  • 3
4
votes
2 answers

Unique Id creation of a fixed length

Well, I have been looking at ways to generate UIDs in java code (most of them coming to stackoverflow too). The best is to use java's UUID to create unique ids since it uses the timestamp. But my problem is that it is 128-bit long and I need a…
Rishi P
  • 249
  • 2
  • 9
  • 20
4
votes
2 answers

Outlook fails to recognize custom UID in .ics file, creates new event (and new id)

What I am trying to do: I have a need to send my clients .ics files that will populate their Outlook calendars as soon as they download and double click (and choose to populate their Outlook calendar). When I am testing locally, the iCalendar code…
camelBack
  • 748
  • 2
  • 11
  • 30
4
votes
1 answer

How reliable are IMAP UIDs?

I'm writing an IMAP crawler, which is part of an Open Source app, and for incremental crawling I'd like to use the message UIDs to find out whether I've already seen a particular message or not. Now I found a post from 2007 that says IMAP UIDs…
python dude
  • 7,980
  • 11
  • 40
  • 53
4
votes
1 answer

Where does Linux keep 'ruid' and 'euid'?

I wonder where Linux kernel keeps 'ruid' and 'euid'. Below is what I know about them. When an user runs a file and the file turns to a process, the process gets to have ruid and euid. If the file had been set to use setuid, euid of the process would…
Joon
  • 53
  • 1
  • 9
4
votes
0 answers

How to set `uidNumber` Unique and Auto Increment for Posix Account Creation in OpenLDAP via PHP?

According to this, I know that : A user ID (UID) is a unique positive integer assigned by a Unix-like operating system to each user. Each user is identified to the system by its UID. When we create a Posix Account user via PHP, we need to set up…
Casper
  • 4,435
  • 10
  • 41
  • 72
4
votes
1 answer

Android M: How to get all processes UID's?

I have an application that uses the traffic stats API to see which running processes are using the network. I used to do it by getting the uid obtained through the getRunningAppProcesses() method. Apparently this has been changed in Android M to…
Dave
  • 3,178
  • 5
  • 28
  • 44
1 2
3
24 25