Whenever I try to rename system user I get this error message:
Failed to save user : Failed to replace /etc/passwd with /etc/passwd.webmintmp.13014 : Operation not permitted
After getting this error message the affected user disappered!!!
Which specific user did you try to rename?
admin
Is admin user equivalent to root?
Yes
Ok, I wouldn't expect this to work then - because during the rename, you are temporarily deleting the user Webmin runs as!
OMG, I'm unable to create any system user!
Failed to save user : Failed to replace /etc/passwd with /etc/passwd.webmintmp.16547 : Operation not permitted
Are you sure you're running Webmin as the root user?
Sure
Are you sure /etc/passwd doesn't have some Linux filesystem attributes set that prevent it from being modified?
I'm unable to edit it using webmin althouhg I loggin to webmin using root user!
I've same problem with groups too :(
Failed to save group : Failed to replace /etc/group with /etc/group.webmintmp.21011 : Operation not permitted
All the configs may you need (if you want I can send the text one :))
If you go to the Command Shell module (under the Others category) and run id -a , what does it output?
id -a
> id -a uid=0(root) gid=0(root) groups=0(root)
Ok, so you are definitely running as root.
What output do you get from the command lsattr /etc/passwd
lsattr /etc/passwd
----i----------- /etc/passwd
Ok, there's your problem - it has the immutable bit set. You can remove this by running chattr -i /etc/passwd
chattr -i /etc/passwd
Thanks, problem solved.
May you please explain to me why this happen?! I didn't touch /etc/passwd permission at all (my server still fresh)
I have no idea how that permission was set - only that Webmin doesn't do it.
Hi, I am getting the same problem. here is the out put
lsattr /etc/passwd -------------e- /etc/passwd id -a uid=0(root) gid=0(root) groups=0(root)
But i use this following command. Nothing Happen.
Log in to post a comment.
After getting this error message the affected user disappered!!!
Which specific user did you try to rename?
admin
Is
adminuser equivalent to root?Yes
Ok, I wouldn't expect this to work then - because during the rename, you are temporarily deleting the user Webmin runs as!
OMG, I'm unable to create any system user!
Last edit: mbnoimi 2016-05-13
Are you sure you're running Webmin as the root user?
Sure
Are you sure /etc/passwd doesn't have some Linux filesystem attributes set that prevent it from being modified?
I'm unable to edit it using webmin althouhg I loggin to webmin using root user!
I've same problem with groups too :(
All the configs may you need (if you want I can send the text one :))
If you go to the Command Shell module (under the Others category) and run
id -a, what does it output?Ok, so you are definitely running as root.
What output do you get from the command
lsattr /etc/passwdOk, there's your problem - it has the immutable bit set. You can remove this by running
chattr -i /etc/passwdThanks, problem solved.
May you please explain to me why this happen?! I didn't touch /etc/passwd permission at all (my server still fresh)
I have no idea how that permission was set - only that Webmin doesn't do it.
Hi, I am getting the same problem. here is the out put
But i use this following command. Nothing Happen.
chattr -i /etc/passwd
Last edit: Md. Tanvir Rahman 2018-10-23