Hello everyone,
I try to change the uid of a user to 2009 instead of 1009, in this way:
But as a result I get:
I read the pw() but can't figure out what's wrong.
What am I doing wrong? Can anything prevent from changing users' uids?
PS here's the
I try to change the uid of a user to 2009 instead of 1009, in this way:
Code:
# pw usermod test_user -uid 2009
Code:
# cat /etc/passwd | grep test_user
test_user:*:1009:1009:User &:/home/test_user:/usr/sbin/nologin
#
pw usermod does not produce an error, but does not do anything at all.What am I doing wrong? Can anything prevent from changing users' uids?
PS here's the
adduser that created my test_user:
Code:
Username: test_user
Full name:
Uid [1009]:
Login group [test_user]:
Login group is test_user. Invite test_user into other groups? []:
Login class [default]:
Shell (sh csh tcsh bash rbash nologin nologin) [sh]: nologin
Home directory [/home/test_user]:
Home directory permissions (Leave empty for default):
Use password-based authentication? [no]: no
Lock out the account after creation? [no]: no
Username : test_user
Password : <disabled>
Full Name :
Uid : 1009
Class :
Groups : test_user
Home : /home/test_user
Home Mode :
Shell : /usr/sbin/nologin
Locked : no
OK? (yes/no): yes
adduser: INFO: Successfully added (test_user) to the user database.
Add another user? (yes/no): no
Goodbye!