UID is the abbreviation for "User IDentification number". It identifies each user on a local system and is used for all kinds of authentication, e.g. file system permissions. The range is from 0 (root user) to 65535. Normal users get UIDs starting from 1000. The UIDs below are used by hidden and system users.
Questions tagged [uid]
24 questions
32
votes
2 answers
How to get the list of all users who can access a server via ssh?
How can I get the list of all the users who can ssh to a server via ssh username@server.domain ?
Please note that I'm aware of this question and that is not doing what I want!
If it helps the server has so many users in so many different groups and…
yukashima huksay
- 1,047
14
votes
1 answer
Why is my GID environment variable empty?
I try echo $GID but get nothing. However, I can get 1000 by using id -g, what's the differences between them ?
id -u => 1000
id -g => 1000
echo $UID => 1000
echo $GID =>
The output of id:
uid=1000(user) gid=1000(user)…
Corey
- 297
6
votes
1 answer
cannot access crontab after changing uid
I recently changed the uid of my linux account (the reason for this change lies in the need to have a precise uid to access files on a mounted drive). Since then, I cannot access my crontab. After typing:
crontab -e
I get the error…
Alain
- 163
- 1
- 6
5
votes
1 answer
what do the parameters uid and gid with /etc/fstab do?
I'm mounting directories. I wrote the needed lines to /etc/fstab.I'm using cifs protocoll.
I wonder what the parameters uid and gid do, since they're similar for any user. (So this can't be any user id.)
Asqiir
- 427
4
votes
3 answers
AccountService and UID < 1000
currently I'm using Ubuntu 16.04 and have set my User UID to 501 (interop with Mac).
However even after setting login.defs:
UID_MIN 500
UID_MAX 60000
# System accounts
#SYS_UID_MIN 100
SYS_UID_MAX …
4
votes
1 answer
Install Ubuntu With Specific UID
I have run into more problems than I can bother to count by changing my UID. I'm so frustrated that I'm just going to format and start all over again. This time, I want my installation to make the first user use, let's say UID 1200. I don't want to…
john smith
- 3,161
3
votes
1 answer
When I create two users with the same UID and GUID but different home directories, my 17.10 Ubuntu fails to boot, why?
I want to be able to log in with different settings but still be the same "user". So, I added a 2nd user with the same UID/GUID but different home directory and now when booting Ubuntu the system just hangs. If I remove the 2nd user from the passwd…
intel_chris
- 295
3
votes
1 answer
SUID not working?
On Ubuntu 16.04.1:
test.sh script:
#!/bin/bash
IAM=$(whoami)
ID=$(id -u $IAM)
echo "${IAM}"
echo "${ID}"
Andromeda $ ls -al | grep test.sh
-rwsrwxrwx 1 pkaramol pkaramol 71 Δεκ 8 07:52 test.sh
As pkaramol (uid=1000)
Andromeda $…
pkaramol
- 2,291
2
votes
1 answer
Why is `gitlab user` listed in the list of users at login?
Recently I got the ownership of a computer which has Ubuntu 18.04.3 LTS installed and runs an ssh server on it. On the local machine, I see that the login screen has a gitlab user apart from my username in the list of users who would like to login.…
Nanashi No Gombe
- 107
1
vote
1 answer
Accidentally created another root user. How to delete or change permissions?
I need a non-root user to do certain (safe) things. I didn't pay attention, and used useradd -ou 0 -g 0 new_user_name, which gave root permissions to the user. It also has the same UID of 0.
Before I do something stupid, can anyone help me on how…
DevOpsSauce
- 223
1
vote
1 answer
Set or determine the UID range for guest accounts
For a special purpose it seems like I need to know the UID (user ID) of my guest accounts.
As guest accounts are created and (usually) removed automatically whenever one is needed, the UIDs are not fixed but assigned dynamically. If I observed it…
Byte Commander
- 110,243
1
vote
0 answers
Postfix on Ubuntu: Issues with UID and GID for Newly Created Users
I am currently managing a Postfix mail server on an Ubuntu system and I am encountering issues with UID and GID assignments for newly created users. Here are the details:
System Configuration
OS: Ubuntu 22.04,
Mail Server: Postfix,
User Management:…
parthi2211
- 11
1
vote
1 answer
usermod error: usermod: user '1000' does not exist
I want to allow a user to access the USB port.
I am following these instructions:
https://emanual.robotis.com/docs/en/software/dynamixel/dynamixel_wizard2/
After the installation of the software, I have to add the account id to the dialout group in…
user1584421
- 143
1
vote
1 answer
Ubuntu 18.04 Freezing on boot
I have a Lenovo T60 and everytime I try to boot 18.04 it gets to "Starting user manager for UID 121" on the boot screen it freezes then the mouse arrow comes up. This is massive bug exclusive to 18.04. On 17.10 and 16.04 everything is fine Ive…
crj_1985
- 11
0
votes
3 answers
Sudo ownership changed, can't use sudo to fix it
I am using Ubuntu 17.04.
By mistake, I have changed the ownership of sudo. So now I can't make any changes as the chown command I could use to fix it needs sudo.
If I use sudo I get
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid…