Do not hesitate to ask me for further clarification or suggestions. If there are a lot of users on your server, I can make a small script that generates the sudoers files for you. To change their own passwords, your clients will just need to type changepasswd. Your /etc/sudoers file should look something like:Īssuming that bob is the username and /usr/bin/passwd is the location of the changepasswd binary you made earlier. Please make sure that you give it executable permissions with chmod and place it in your $PATH. The following file will allow users to change their own passwords, lets call it changepasswd: #!/bin/bash To get all the users on your system: cat /etc/passwd | cut -f1 -d:įind where the binary of passwd is located: which passwd Overall, this tasks follows this concept: Place all your users in the /etc/sudoers file to use a script that allows them to change their own usernames and not others. You can allow all the users in your system to use this file by just running a simple command. For example, you can restrict users to only use the passwd command on their own usernames by allowing them to run a script that changes their password as root. This is bad, but there is something that you can do about it. The only drawback is that they will be able to change other users' password. You can try to allow every user on the system to use the passwd command on the server. I haven't used any myself or heard of others using them, so can't give a recommendation. Roundcube might do that also.Įdit: you could also look at these add-on configuration software options. You could try a webmail package like SquirrelMail which supports changing passwords. Roundcube might do that also.Įdit: you could also look at these ~~()~~(). Description You could try a webmail package like ~~()~~() which supports changing passwords.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |