This is not a real problem. I just noticed this CLI admin dilemma.
I have a script that adds 4 predefined users to a target FreeBSD installation dir. It runs as root. All users of the target system have file aaa in their home directory. They also require a symlink to this file named bbb
As root, how do I create symlink ~/bbb to ~/aaa for a different user? Problem is that ~/ gets translated to /root because root runs it. All users get a /home/root/bbb symlink but it should point to each user's own home directory. I can't find a solution for this except a post-installation action to fix the symlink names for all non-root users.
As root, how do I create symlink ~/bbb to ~/aaa for a different user's home directory? I have the feeling I'm missing something simple...
I have a script that adds 4 predefined users to a target FreeBSD installation dir. It runs as root. All users of the target system have file aaa in their home directory. They also require a symlink to this file named bbb
As root, how do I create symlink ~/bbb to ~/aaa for a different user? Problem is that ~/ gets translated to /root because root runs it. All users get a /home/root/bbb symlink but it should point to each user's own home directory. I can't find a solution for this except a post-installation action to fix the symlink names for all non-root users.
As root, how do I create symlink ~/bbb to ~/aaa for a different user's home directory? I have the feeling I'm missing something simple...