How do you do this? This thing is a binary file. And I see no command lines for it. ex; I have an username named Miranda and I want to change to Liara.
guido at lorenzutti.com.ar
2010-Feb-20 02:21 UTC
[Samba] Change samba username with tdbsam backend
smbpasswd ?> How do you do this? This thing is a binary file. And I see no command > lines for it. > > ex; I have an username named Miranda and I want to change to Liara. > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
Nope. man smbpasswd and you will see. 2010/2/20 <guido at lorenzutti.com.ar>:> smbpasswd ? > >> How do you do this? This thing is a binary file. And I see no command >> lines for it. >> >> ex; I have an username named Miranda and I want to change to Liara. >> -- >> To unsubscribe from this list go to the following URL and read the >> instructions: ?https://lists.samba.org/mailman/options/samba >> > > >-- Eden Caldas Consultor de TI eden at linuxfacil.org (81) 9653 7220 LINUX F?CIL ? Consultoria e Servi?os em TI
guido at lorenzutti.com.ar
2010-Feb-20 02:26 UTC
[Samba] Change samba username with tdbsam backend
oh.. sorry, didn't finish reading. I guess you could dump the tdb to plain text, edit it and restore it. And you should rename the user in /etc/passwd /etc/shadow also. You should also check the home page and the profile of the user.> How do you do this? This thing is a binary file. And I see no command > lines for it. > > ex; I have an username named Miranda and I want to change to Liara. > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
On 02/19/2010 06:52 PM, Eden Caldas wrote:> How do you do this? This thing is a binary file. And I see no command > lines for it. > > ex; I have an username named Miranda and I want to change to Liara.OK, this is a question that has been asked many times on this list. A complete solution depends on the Samba password backend being used, and on how far you want to go in terms of consistency of change. For example: 1) If the "passdb backend = smbpasswd", it is necessary to change: a) The user login name in the smbpasswd file b) The user login name and GECOS information in /etc/passwd and in /etc/shadow, and all group membership information in /etc/groups c) The name of the user's home directory d) The name of the user's desktop profile directory on all MS Windows machine the user makes use of. 2) If the "passdb backend = tdbsam", it is necessary to change: a) The users' name in the passdb.tdb file b) The users' login name and GECOS information in /etc/passwd and in /etc/shadow, and all group membership information in /etc/groups c) The name of the user's home directory d) The name of the user's desktop profile directory on all MS Windows machine the user makes use of. 3) If the "passdb backend = ldapsam", it is necessary to change: a) The users' identity information in a consistent manner in his/her account record and in all group memberships b) The name of the user's home directory c) The name of the user's desktop profile directory on all MS Windows machine the user makes use of. The problem is that if the account information is deleted (can be done) it must be restored with the same UID and GID, and with full preservation of the users' fully qualified SID. If this does not happen, his/her profile will not longer work correctly and user applications will be broken in the MS Windows environment. There exists no simple, portable tool that can affect the type of change you are seeking. At the best of times, this is a a complex administrative task that requires knowledge of the consequences of each step taken. A failure to apprehend such consequences will lead ot interesting observations and results. - John T.