I am running Ubuntu 18.04. When I run:
ls -la /var
I get the following:
drwxr-xr-x 10 root root 4096 Jan 2 15:46 .
drwxr-xr-x 27 root root 4096 Jan 15 06:25 ..
drwxr-xr-x 10 root root 4096 Jan 6 06:15 cache
drwxrwxrwt 2 root root 4096 Jan 12 06:41 crash
drwxr-xr-x 25 root root 4096 Jan 4 11:06 Lib
lrwxrwxrwx 1 root root 11 Dec 27 07:22 lock -> ../run/lock
drwxrwxr-x 8 root syslog 4096 Jan 10 06:06 log
drwx------ 6 root root 4096 Jan 15 06:03 run
drwxr-xr-x 4 root root 4096 Jan 3 14:54 snap
drwxr-xr-x 4 root root 4096 Dec 27 07:22 spool
drwxr-xr-x 6 root root 4096 Jan 15 06:03 tmp
AFAIK /var/run should be symlink to /run. I have some problems in my system as described in 'who' command has blank output when using SSH, so is it because /var/run is not a symlink?
Can I safely remove it and replace it with a symlink?