I have a problem about linux user, I use a command to add user like:
useradd -u 532 -d /data/test01 -g test test01
but when I login as
test01 and run
it becomes like:
nobody test x
Why user becomes
How do I fix it ?
migrated from stackoverflow.com Mar 13 '13 at 8:21
This question came from our site for professional and enthusiast programmers.
Another possible explanation is that you run this stuff on a filesystem which is fixed to one user.
Cases for this could be
You can use the usermod command to modify various user parametes like the username and the UID.
A possible explanation is that you already had a user called nobody with the UID (User ID) 532. The result is you have created a "user alias".
You either can try to specify another UID for your user (or let the system pick-up one). Or you can leave it like that. The only security risk is that if a service or other user can access
NFS User ID Mapping
For users to have the feeling they are accessing their own files, the UID on the NFS server should match the UID on the NFS clients. Although, you want to avoid that for
By default, NFS exportfs will choose UID/GID of 65534 which corresponds to your user
For the first case, remove the
For the second case, keep the
Note: the changes should be done in the file