问题如下:
# ecryptfs-migrate-home -u <user>
INFO: Checking disk space, this may take a few moments. Please be patient.
INFO: Checking for open files in /home/<user>
Enter your login passphrase [<user>]:
************************************************************************
YOU SHOULD RECORD YOUR MOUNT PASSPHRASE AND STORE IT IN A SAFE LOCATION.
ecryptfs-unwrap-passphrase ~/.ecryptfs/wrapped-passphrase
THIS WILL BE REQUIRED IF YOU NEED TO RECOVER YOUR DATA AT A LATER TIME.
************************************************************************
Done configuring.
chown: cannot access ‘/dev/shm/.ecryptfs-<user>’: No such file or directory
mount: mount(2) failed: No such file or directory
ERROR: Could not mount
这是通过 SSH 会话完成的。
答案1
无法通过 SSH 完成。根据经验,必须从终端(即 Alt+F1)以 suid root 身份完成。
答案2
可以通过 ssh 执行此操作,但可以直接执行。如果您以 root 身份登录,则可行。如果您尝试通过 sudo su - 问题仍然存在。