-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recreate samba user after backup restore #871
Comments
I've been looking at this for a few days. https://github.com/ericpaulbishop/gargoyle/blob/master/package/gargoyle/files/usr/lib/gargoyle/restore.sh#L238 This is not a very nice solution. I don't know if i should implement, or leave this open for further comment/ideas. |
I don't understand. Backup already has passwd/shadow file with valid user and password. My question: why after restore backup, system trying recreating valid user? Why is it destroying the username? |
The way it currently works, it doesn't use them. It has a flag to not do this, but it is currently never used. We could fix this with my suggestion above. Either an option to restore passwords, or always do it. The risk is that if someone restores a backup with a password they don't know, they will need to failsafe. |
OK, but now it's just broken functionality (user without name in passwd file). |
Yes we can fix that. This combined with option above is probably the full solution. |
This missing_lines function might be interesting here |
user test with password test. After backup restore and/or /etc/init.d/share_users start I have
No user in passwd file. Because https://github.com/ericpaulbishop/gargoyle/blob/master/package/share-users/files/share_users.init#L43 and https://github.com/ericpaulbishop/gargoyle/blob/master/package/share-users/files/share_users.init#L70 - passwd is not stored in config?
BTW, gargoyle 1.13
The text was updated successfully, but these errors were encountered: