I cloned a VM and changed its hostname and the sole account name as part of changing it from the source it was cloned from. However, the modified account behaves differently to the original.
It seems like its privileges are different?
When I ssh
into the original system and the clone the terminals are different:
And using nano
shows a warning message on the cloned version of the OS:
Unable to create directory /home/modelnode1/.nano: Permission denied
It is required for saving/loading search history or cursor positions.
Press Enter to continue
Requiring sudo nano
to get rid of this.
Running ls -lsa /home/modelnode1
returns:
total 8
4 dr-x------ 2 modelnode1 masternode 4096 Feb 28 15:06 .
4 drwxr-xr-x 5 root root 4096 Feb 28 22:38 ..
0 lrwxrwxrwx 1 modelnode1 masternode 56 Feb 28 15:06 Access-Your-Private-Data.desktop -> /usr/share/ecryptfs-utils/ecryptfs-mount-private.desktop
0 lrwxrwxrwx 1 modelnode1 masternode 36 Feb 28 15:06 .ecryptfs -> /home/.ecryptfs/masternode/.ecryptfs
0 lrwxrwxrwx 1 modelnode1 masternode 35 Feb 28 15:06 .Private -> /home/.ecryptfs/masternode/.Private
0 lrwxrwxrwx 1 modelnode1 masternode 52 Feb 28 15:06 README.txt -> /usr/share/ecryptfs-utils/ecryptfs-mount-private.txt
Have I missed something when setting up this account?
Any help is much appreciated!
From the info you provided:
Unable to create directory /home/modelnode1/.nano: Permission denied
I suspect that the source of the problem, is in-complete change of user-name
Can you please confirm that the folder
/home/modelnode1/
exists
Is owned by the new user-name
modelnode1
Has read/write permissions to the owner of the directory
You can check it using the following command, which will show the directory owner and permissions:
The following commands might solve your problem:
mkdir -p
command - will create the directory if it isn't exists yetchown -R
command will change the owner of/home/modelnode1
to bemodelnode1
(which currently doesn't have write permissions to this folder)chmod -R
command will provide full permission to the owner of the folder