Questions tagged [uid]

23 questions
5
votes
3 answers

Why on some systems max uid/gid is 65534 an not 65535?

I know that there is not a shared maximum value for uid (or gid): some systems use 99 (Slackware, ...), others 65534 (Debian, ...). I ask if there is a specific motivation to use 65534 and not 65535 (0xFFFF). Thank you.
5
votes
3 answers

How to change user ID on a QNAP NAS?

I've got a QNAP TS-110 which I access via NFS from my Ubuntu system. I guess that NFS on a typical home network does not use any user authentication. I've read in various places and I found that it is important that the user on the Linux machine and…
seb
  • 361
2
votes
2 answers

gksu is a front end to su?

gksu manual page says that it is a front-end to su, however su doesn't need a command to be executed, while gksu does. Also, gksu doesn't seem to change the user ID of my shell, while su does. Is it possible to make gksu work exactly like su, just…
KevinRGT
  • 123
2
votes
2 answers

UID is root but whoami says nobody

I'm participating in a capture-the-flag contest where I must implement some form of privilege escalation to read the flag.txt file. I've noticed that when I run whoami I get the following result: myHostHere:/$ whoami nobody But when I run id my UID…
user1150470
1
vote
1 answer

How do I change UID of 0 from non-root user?

I have set the UID of user01 to be 0 when I created it. Now I am trying to delete the user and it complains "user01 is currently logged in". I check the process list, and that doesn't seem to be true. However, root (which also has UID of 0) has…
1
vote
1 answer

No user list in the login screen after changing the user ID

Edit: Problem 1 has been resolved. I followed this link and changed my user id to 1000 (same as Linux user id), so that I can share files freely between Mac and Linux. Now I have these two problems: I am not able to empty trash. I have checked file…
Baha
  • 677
1
vote
1 answer

Mount of device not owned by requested user

Using Ubuntu 18.04. When logging into a tty terminal of a PC, the dmesg lines [ 83.966238] Mount of device (uid: 0) not owned by requested user (uid: 1000) [ 83.966795] Reading sb failed; rc = [-1] seem to explain this outcome mount: Operation…
1
vote
1 answer

uid of process not in /etc/passwd

I'm building a toy system monitor for which I parse multiple files from /proc. Among other values I parse the uid for every process from /proc/$pid/status. Later I map the process' uid to the username which I parsed from /etc/passwd. But in some…
Picard
  • 123
1
vote
1 answer

Migrate Windows UID to another installation

In Linux when I want to share user data and credentials, I only need to ensure that the same user shares the same POSIX UID and GID (typically starting from 1000) across two Linux installations on the same machine. Now I would like to do this in…
iBug
  • 11,645
1
vote
1 answer

Why can I access my home directory when booting from an external drive?

I run fedora 30 on my computer. As user foo, my home directory rights look like this: [foo@localhost]$ ls -l /home/ drwx------. 41 foo foo 4.0K Jul 12 11:23 foo drwx------. 2 root root 16K Jul 18 2018 lost+found When I boot from a usb drive…
neerby
  • 13
0
votes
0 answers

how do I get the PID list and USERNAME of each of those PIDs in LINUX using python?

I am trying to get the PID's and their respective usernames for displaying something similar to the top command in linux. I managed to get the list of PIDs but I am unable to fetch any username for the same. PID from /proc and username is in the…
Dee
  • 1
0
votes
1 answer

root user uid got changed

I am using ubuntu server. My root account uid got changed to 0 to 1, i am not sure when and how. Becausse of this i cant execute any sudo commands on this server. This is what rroot account looks like in…
raj
  • 1
0
votes
1 answer

Mac OS X: Change UID or permissions?

I keep the /Users directory on a separate hard drive, /Volumes/Media. I recently upgraded my main drive via a fresh install from Mavericks to Yosemite. I have two users (not including root): seamus (admin) and alex (standard). Seamus is my account.…
user410252
0
votes
0 answers

How do I keep the same UID among many servers?

I have many servers with LDAP which mantain the users UID the same among the servers, but how can I change and keep the same UID for local users ? For example, the user tomcat, when someone create an script that do install a tomcat, apache or…
Valter Silva
  • 1,381
0
votes
2 answers

How to find Mac OSX UID from Ubuntu

How do you view Mac OSX user id without having to boot into OSX? I can mount the drive, but I can't find the UID for my user, which would hopefully enable me to access files without being root.
weberc2
  • 428
  • 3
  • 11
1
2