修改用户名导致的问题
mac修改用户名后应用程序提示找不到钥匙串怎么办
MacBook Air (M2, 2022)
mac修改用户名后应用程序提示找不到钥匙串怎么办
MacBook Air (M2, 2022)
难道只是钥匙串出了问题,没有其他问题,比如桌面变了等?
还记得,都改变了哪几个位置的数值吗?
最好截图标记下,按说不会仅仅是用户全名
如果能说出,原值,也可以帮助找回原来的数据。
再把下面的命令运行后,把它在当前用户的桌面上生成info.txt文件内容贴上来,看看。
clear; { echo "= Local User List:"; dscl . -list /Users UniqueID | sort -k2 -n; printf "~~~%.0s$s" {1..10}; printf "\n=== Users Folder:\n"; ls -la /Users/; printf "~~~%.0s$s" {1..10}; printf "\n=== Current User=[$(id -un)] Directory Configurations:\n"; dscl . read /Users/$(id -un) NFSHomeDirectory PrimaryGroupID RealName RecordName RecordType UniqueID UserShell GeneratedUID AuthenticationAuthority AltSecurityIdentities; printf "~~~%.0s$s" {1..10}; printf "\n=== All User Local HomeDirectory Setting:\n"; dscl . -list /Users UniqueID | sort -k2 -n | awk '$2>500' | awk '{print $1}' | while read user; do dscl . read /Users/$user NFSHomeDirectory | awk '{print $2}'; done; printf "~~~%.0s$s" {1..10}; printf "\n===Secure Token:\n"; dscl . -list /Users UniqueID | sort -k2 -n | awk '$2>500' | awk '{print $1}' | while read user; do sysadminctl -secureTokenStatus $user; done; printf "~~~%.0s$s" {1..10}; printf "\n===File System Status:\n"; sysadminctl -filesystem status; printf "\n===macOS Version:\n"; sw_vers; printf "\n===Hardware Basic Info:\n"; system_profiler SPHardwareDataType | grep -v "Serial Number\|Hardware UUID"; printf "~~~%.0s$s" {1..10}; dscl . -list /Users UniqueID | sort -k2 -n | awk '$2>500' | awk '{print $1}' | while read user; do printf "\n=== User=$user:\n"; dscl . read /Users/$user NFSHomeDirectory NFSHomeDirectory PrimaryGroupID RealName RecordName RecordType UniqueID UserShell GeneratedUID AuthenticationAuthority AltSecurityIdentities; done; printf "~~~%.0s$s" {1..10}; printf "\n===Users home folder:\n"; dscl . -list /Users UniqueID | sort -k2 -n | awk '$2>500' | awk '{print $1}' | while read user; do printf "\n------------User=$user-----------:\n"; ls -hale@ $(dscl . read /Users/$user NFSHomeDirectory | awk '{print $2}'); done; } 2>&1 | tee ~/Desktop/info.txt
使用终端命令提示:
“我可能会从我的建议或链接得到财务,或者其它形式的补偿 [经过版主编辑]”
难道只是钥匙串出了问题,没有其他问题,比如桌面变了等?
还记得,都改变了哪几个位置的数值吗?
最好截图标记下,按说不会仅仅是用户全名
如果能说出,原值,也可以帮助找回原来的数据。
再把下面的命令运行后,把它在当前用户的桌面上生成info.txt文件内容贴上来,看看。
clear; { echo "= Local User List:"; dscl . -list /Users UniqueID | sort -k2 -n; printf "~~~%.0s$s" {1..10}; printf "\n=== Users Folder:\n"; ls -la /Users/; printf "~~~%.0s$s" {1..10}; printf "\n=== Current User=[$(id -un)] Directory Configurations:\n"; dscl . read /Users/$(id -un) NFSHomeDirectory PrimaryGroupID RealName RecordName RecordType UniqueID UserShell GeneratedUID AuthenticationAuthority AltSecurityIdentities; printf "~~~%.0s$s" {1..10}; printf "\n=== All User Local HomeDirectory Setting:\n"; dscl . -list /Users UniqueID | sort -k2 -n | awk '$2>500' | awk '{print $1}' | while read user; do dscl . read /Users/$user NFSHomeDirectory | awk '{print $2}'; done; printf "~~~%.0s$s" {1..10}; printf "\n===Secure Token:\n"; dscl . -list /Users UniqueID | sort -k2 -n | awk '$2>500' | awk '{print $1}' | while read user; do sysadminctl -secureTokenStatus $user; done; printf "~~~%.0s$s" {1..10}; printf "\n===File System Status:\n"; sysadminctl -filesystem status; printf "\n===macOS Version:\n"; sw_vers; printf "\n===Hardware Basic Info:\n"; system_profiler SPHardwareDataType | grep -v "Serial Number\|Hardware UUID"; printf "~~~%.0s$s" {1..10}; dscl . -list /Users UniqueID | sort -k2 -n | awk '$2>500' | awk '{print $1}' | while read user; do printf "\n=== User=$user:\n"; dscl . read /Users/$user NFSHomeDirectory NFSHomeDirectory PrimaryGroupID RealName RecordName RecordType UniqueID UserShell GeneratedUID AuthenticationAuthority AltSecurityIdentities; done; printf "~~~%.0s$s" {1..10}; printf "\n===Users home folder:\n"; dscl . -list /Users UniqueID | sort -k2 -n | awk '$2>500' | awk '{print $1}' | while read user; do printf "\n------------User=$user-----------:\n"; ls -hale@ $(dscl . read /Users/$user NFSHomeDirectory | awk '{print $2}'); done; } 2>&1 | tee ~/Desktop/info.txt
使用终端命令提示:
“我可能会从我的建议或链接得到财务,或者其它形式的补偿 [经过版主编辑]”
修改用户名导致的问题