I've got a user on a Lenny box ("goshen") who wanted her username changed from bolinp to pab05b (so her username would be the same as her other accounts in her job world).
I used adduser to create the new pab05b and copied all the files over from bolinp, and then used deluser to delete the old pab05b account (leaving the home directory, just in case). All was well, until she tried to map a drive from her Windows box to her home share. I had forgotten to deal with the separate Samba database. So I used "smbpasswd -x bolinp" to delete the old user, and then "smbpasswd -a pab05b" to create the new user and assign the password. Her Windows box still insists on connecting as bolinp (when mapping to //goshen/pab05b). When I went to look at /etc/samba/smbpasswd, I still see bolinp in there. wes...@]goshen.acu.edu]:/home/westk:> sudo smbpasswd -x bolinp Failed to modify password entry for user bolinp wes...@]goshen.acu.edu]:/home/westk:> cat /etc/passwd | grep bolinp wes...@]goshen.acu.edu]:/home/westk:> cat /etc/passwd | grep pab05b pab05b:x:1024:1025:P. B.,FS235,xxx-yyy-zzzz,:/home/pab05b:/bin/bash wes...@]goshen.acu.edu]:/home/westk:> sudo cat /etc/samba/smbpasswd | grep bolinp bolinp:425:0182BD0BD4444BF836077A718CCDF409:259745CB123A52AA2E693AAACCA2DB52:[U ]:LCT-42F91B74: wes...@]goshen.acu.edu]:/home/westk:> sudo cat /etc/samba/smbpasswd | grep pab05b I've tried manually deleting the bolinp line using nano, and moving the /etc/samba/smbpasswd out of that directory and restarting samba (/etc/init.d/samba restart), and her machine still wants to connect as bolinp. In my searching for an answer, I discovered the pbdedit tool. I have not been able to discover if this is soon to be a replacement for smbpasswd, or if it just does some of the same things. If it just does some of the same things, which tool do I want to use? And, it seems that the pbdedit tool modifies some other database than /etc/samba/smbpasswd: wes...@]goshen.acu.edu]:/home/westk:> sudo pdbedit -L -w params.c:pm_process() - Processing configuration file "/etc/samba/dhcp.conf" pab05b:1024:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:C0A68B671E1DA4B275EF1884BB26E2FF:[U ]:LCT-49E5FFED: So the pdbedit has the pab05b username but not the bolinp username, whereas /etc/samba/smbpasswd is just the opposite. It seems the two tools do not synchronize with each other. Can anyone give me a third-grader's explanation of where to go from here? Which tool to use; which tool does what; are the tools supposed to both modify both databases or not; how to get my user so she can map a drive as her preferred username? Thanks! -- Kent West <*)))>< http://kentwest.blogspot.com -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org