Under Sharing>File Sharing it lists the old user's public folder as a folder that can be shared, though it no longer exists.
It seems the following items get affected by sharing folders with System Prefs->Sharing, and may retain traces of former users (and/or items they've shared):
/var/db/samba/smb.shares
/var/db/dslocal/indices/Default/index
/var/db/dslocal/nodes/Default/config/SharePoints/*.plist
/var/db/dslocal/nodes/Default/groups/com.apple.sharepoint.*.plist
The asterisk is a wildcard which will match whatever filename(s) happen(s) to fit... when used on the command line anyway.
A more exact list (as far as your specific Sharing query goes) could also be obtained by running this command:
sudo grep -lr yourshortname /var/db/dslocal /var/db/samba
Notes:
- if run in single-user mode or a root shell, skip the sudo part.
- replace yourshortname with the actual name of course (or the name of some folder you shared)
As to what exactly one should
do to purge one's name from such files goes, i'll not be posting a thorough 'how-to' or anything. The only easy cases are ones where the
file itself is specifically named for the user. E.g.,:
yourshortname.plist
or
Your Full Name's Public Folder.plist
...as those files could be deleted entirely. Other items (such as admin.plist and staff.plist) could theoretically be
edited —
not deleted! —using extreme caution, to surgically remove the relevant entries. [note that
dscl isn't normally available in SU mode, but a basic editor like
nano could be used instead... unless one cared to load all the services needed (which i'm not familiar with) to support running
dscl in SU mode.]
The tricky file (IMO) is /var/db/dslocal/indices/Default/index, because that appears to be the only one not comprised of "plain" text... and i have
no idea what the effect of erasing it would be. Maybe there's some tool which could be used to properly edit that SQLite database. Or maybe it doesn't matter much (?). Perhaps teh google knows.
[p.s.; looks like you might wanna consider changing the thread's title, if still possible.]