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
2
votes
3 answers

Backup Agent signature mismatch during restore

[Edit] From all the information I've added it seems likely that this is caused by my app registering itself as a new app under the same UID despite being the same build in the same apk. Any ideas where to start fixing that would be greatly…
Zulaxia
  • 2,702
  • 2
  • 22
  • 23
2
votes
2 answers

How to modify block 0 / UID of a Mifare 1K tag (using a proxmark)

I bricked a Mifare 1k tag during an attempt to write to block n°0 (to change the UID), I would like to understand what I did wrong. Just for reminder, the datasheet of the Mifare 1k => 1 I used : a Proxmark Easy ; a tag with a writable block 0…
user14052764
  • 51
  • 1
  • 1
  • 4
2
votes
2 answers

How to generate random 20 digit uid(Unique Id) in python

How to generate random 20 digit UID(Unique Id) in python. I want to generate UID for each row in my data frame. It should be exactly 20 digits and should be unique. I am using uuid4() but it generates 32 digits UID, would it be okay to slice it…
Sanchit
  • 131
  • 3
  • 10
2
votes
1 answer

Create unique identifier for files using Python

I am looking for a robust solution to define a unique identifier for measurement data files. I collect the data from different sources, mainly from network storage. The data files might be renamed and copied more than once to different locations.…
Lama
  • 83
  • 7
2
votes
1 answer

Get userid in ms windows for uid and gid mapping

I have the following Dockerfile: FROM php:7-cli-alpine3.9 ARG USERID=1000 ARG GROUPID=1000 RUN apk add --no-cache --update bash bash-completion bash-doc &&\ addgroup -g ${GROUPID} developer &&\ mkdir -p /home/developer/code &&\ adduser…
Dimitrios Desyllas
  • 9,082
  • 15
  • 74
  • 164
2
votes
4 answers

UID/GID change notification

My application creates a rudimentary ACL and communicates this to a Kernel Module. The ACL contains a list of UID/GID. The checks on these IDs are custom and on top of what the system already provides. Now if the root/user changes UID/GID the ACL…
ghostkadost
  • 502
  • 4
  • 14
2
votes
0 answers

Difference between memory usage of getMessages and getMessagesByUID in javamail IMAP

I fetch messages from an IMAP folder using java mail api. We have a folder with 1000 messages. Suppose, the first message has UID 2000 and the last message has UID 8000. When we perform get for all messages: //call 1 // use indices, get the range…
benchpresser
  • 2,171
  • 2
  • 23
  • 41
2
votes
2 answers

Why is effective UID still not 0?

So I got this code below from here. However when I follow the commands: sudo chown root:root a.out sudo chmod u+s a.out It still won't run with effective uid to 0. This is the code: #define _POSIX_C_SOURCE 200112L // Needed with glibc (e.g.,…
user7487817
2
votes
1 answer

Facebook UID from response doesn't match with user's uid stored in database

I have a problem on production with Facebook login which happened today. I'm using Rails omniouth-facebook gem for authentication users via Fb. So, after some debugging I figure out that uid which I got in response from Facebook isn't the same as…
zauzaj
  • 1,206
  • 12
  • 20
2
votes
1 answer

Opentsdb uid grep output understanding

i have run run 'tsdb uid grep metrics' command and getting below output. win.service.wait_hint: [0, 19, -108] metrics win.system.context_switches: [0, 19, -119] metrics win.system.cpu_queue: [0, 19, -117] metrics…
2
votes
3 answers

How do I extract the biggest UID value from /etc/passwd?

I want to predict the next UID before creating a new user. Since the new one will take the biggest ID value yet and adds 1 to it, I thought of the following script: biggestID=0 cat /etc/passwd | while read line do if test [$(echo $line | cut -d:…
engineering student
  • 233
  • 1
  • 3
  • 14
2
votes
1 answer

Is there a way in java to find the real UID rather than the effective UID in linux?

If I run a java class file as sudo user, the effective userid changes to the sudo user. I can get the effective userid with System.getProperty("user.name"). However, is there any way I can get the real userID from within the java program? The…
scott
  • 1,557
  • 3
  • 15
  • 31
2
votes
1 answer

Getting user name and group name using SFTP

I am using C# and Renci.SshNet to open an SFTP connection. I can get the attributes of files just fine, including the owner and group of the file. They are integers however, and figuring out what the user can do requires knowing their user id and…
Brent
  • 4,153
  • 4
  • 30
  • 63
2
votes
1 answer

Create a folder in Plone and set uid

I have a Plone project which I need to fork; sadly, the UID of the temp folder (for Archetypes objects) is used in the code (as a module level variable, at least, not as strings all over the source tree). When starting with a fresh ZODB - can I…
Tobias
  • 2,481
  • 3
  • 26
  • 38
2
votes
0 answers

Get package calling to ContentProvider before API 19

My goal is to get the name of package calling to I've tried to leveraget calling PID and UID, but I've yet to find the way that doesn't include parsing terminal response for active processes. There is a method in PackageManager to get package name…