Skip to main content

Questions tagged [uid]

Filter by
Sorted by
Tagged with
4 votes
1 answer
425 views

today to my surprise I have noticed that I may delete a file that was created by a user with UID 100024 while being logged to my normal user (UID 1000) shell. The UID 100024 is a subuid, it is how the ...
Václav's user avatar
  • 153
3 votes
0 answers
195 views

Why does global root (root in the initial user namespace) not have the ability to read all files regardless of permission when ID-mapped mounts (see "ID-mapped mounts" under man 2 ...
Joseph Sible-Reinstate Monica's user avatar
1 vote
2 answers
509 views

I have a friend who works at a business where the IT guy has passed away and I am trying to help them until they can hire someone else. It is a workgroup networked with a Linux server. They recently ...
Michael Welch's user avatar
1 vote
0 answers
580 views

I expected uid=0(root) gid=0(root) groups=0(root) to be the output of both $ rootlesskit id $ unshare -U bash -c 'newuidmap $$ 0 '"$(id -u)"' 1; id' however the somewhat more verbose -x ...
humanityANDpeace's user avatar
0 votes
1 answer
567 views

After reading https://unix.stackexchange.com/a/222376/246754 How rpm ensure that no uid/gid clash with each other ? What I am looking is similar to https://github.com/NixOS/nixpkgs/blob/...
Et7f3XIV's user avatar
  • 103
0 votes
2 answers
154 views

I am struggling with a loop over users id, i want to list all the users in /etc/passwd whose id are greater than 999, it doesn't recognize my if .. fi sentence and it is important to say that I am ...
Sebastian Rojas's user avatar
11 votes
2 answers
4k views

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 ...
StoneThrow's user avatar
  • 1,957
0 votes
0 answers
1k views

At some point where I wanted to do sudo usermod -v 1000-1000 USER sudo usermod -w 1000-1000 USER I accidentally applied both these commands to root. According to the documentation I can undo these ...
alle_meije's user avatar
0 votes
1 answer
1k views

If group and user's settings are group name: group1 gid: 2000 user name: user1 uid: 2000 Some directory's permission is Directory: /application Owner: user1 Group: group1 When change the gid and ...
Miantian's user avatar
  • 103
1 vote
2 answers
1k views

I know that root has full admin rights thanks to something in the kernel that gives to uid 0 those rights. I think that also the name "root" is defined in the kernel, right? And the location ...
Scorpion's user avatar
  • 825
1 vote
1 answer
2k views

So here is the situation. I have a hypothetical system with 2 users - 'user1' and 'root'. The user 'user1' is just a normal non-sudoer user with uid=1000, and the root, is just a normal root user with ...
Bl4ckC4t's user avatar
4 votes
1 answer
4k views

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 ...
Diego's user avatar
  • 141
0 votes
1 answer
2k views

I need to allow ssh access to all users, but if the UID is between 6000 and 6500 I need to check if the IP where the ssh is coming from is in the file /etc/remote-hosts. /etc/remote-hosts 1.2.3.4 5.6....
Rafael Moreira's user avatar
0 votes
2 answers
373 views

If I have a script that uses buildah mount. I use the same way the docs specify, mnt=$(buildah mount $ctr) If I invoke my script sh ./build.sh, I get cannot mount using driver overlay in rootless ...
Evan Carroll's user avatar
  • 35.2k
2 votes
2 answers
1k views

I would like to redirect (switch) one execution to other user instead root while using sudo. Example: sudo startup.sh will execute the startup.sh as root, but what is needed is for it to be executed ...
maddy's user avatar
  • 21
2 votes
0 answers
2k views

Our Linux HPC server (RHEL 7) only accepts logins to interactive sessions from users with UID >= 1000. However, some of our users have UID lower than that because their usernames were created on a ...
Waldir Leoncio's user avatar
0 votes
0 answers
20 views

I was playing around with setuid perl for command execution (insecure). I learned from another question, that env - /usr/bin/perl -e 'system("...")' doesn't reset the EUID to RUID, like it's the ...
Shuzheng's user avatar
  • 5,009
1 vote
1 answer
368 views

In bash you can do if [ $(echo $UID) != 0 ] then echo "Run as root" exit fi This returns an error message when I run the script with dash or other POSIX-compliant shells. How do you do this ...
opfez's user avatar
  • 13
2 votes
1 answer
401 views

What's the point of UID and GID in processes' parameters? There is EUID, RUID, SUID (and for Linux FSUID) that determine process privileges. I can't think what's the use of UID/GID in such scenario. ...
SantaXL's user avatar
  • 375
6 votes
2 answers
4k views

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 ...
Chris's user avatar
  • 185
3 votes
1 answer
13k views

I am trying to get usernames from /etc/passwd if UID equal/greater than 1000 using a for loop. The below simple bash script works but prints the username twice for some reason. #!/bin/bash for ...
Kumar's user avatar
  • 33
0 votes
1 answer
101 views

Adding users is specified in portage ebuild files using the enewuser function. Some ebuilds call this function with a specific UID (second argument), others either don't provide the argument or ...
S F's user avatar
  • 193
2 votes
1 answer
389 views

I'm learning UNIX file permissions / ID inheritance and would like to clarify something: I have this list of permissions, users, groups and files: -rwxr-xr-x userA A foo -rw-rwsr-x userB B bar ...
hashsaltpepper's user avatar
0 votes
0 answers
223 views

Suppose a multiboot computer on which two GNU/Linux distributions are installed, each with its own user(s). Say those users don't share the same UID over the two systems. Now one needs to access the ...
Skippy le Grand Gourou's user avatar
1 vote
1 answer
2k views

Say I have a user named user with UID 1001 on one system and the same user (named user) with another UID, let's say 1002. If I unplug the disk drive from the second system and plug it into the first, ...
Petr Skocik's user avatar
  • 29.7k