2020-04-07, 10:09
Hi,
I'm trying to follow the guide at:
https://www.smarthomebeginner.com/ubuntu...u-systems/
Part of the guide tells me that I need to create a user kodi. The following block of code to run in a terminal is
given (I have copied the code exactly as it is shown on the aforementioned website):
useradd kodi -u 420 -g kodi -G audio,video,network,optical \
-d /var/lib/kodi -s /usr/bin/nologin kodi
passwd -l kodi > /dev/null
mkdir /var/lib/kodi/.kodi
chown -R kodi:kodi /var/lib/kodi/.kodi
I assume this should be multiple commands. But what are they? I'm getting stuck on the first one! I thought the commands were:
$ useradd kodi -u 420 -g kodi -G audio,video,network,optical \ -d /var/lib/kodi -s /usr/bin/nologin kodi
$ passwd -l kodi > /dev/null
$ mkdir /var/lib/kodi/.kodi
$ chown -R kodi:kodi /var/lib/kodi/.kodi
But the first one gives an error. So what should it be?
I'm trying to follow the guide at:
https://www.smarthomebeginner.com/ubuntu...u-systems/
Part of the guide tells me that I need to create a user kodi. The following block of code to run in a terminal is
given (I have copied the code exactly as it is shown on the aforementioned website):
useradd kodi -u 420 -g kodi -G audio,video,network,optical \
-d /var/lib/kodi -s /usr/bin/nologin kodi
passwd -l kodi > /dev/null
mkdir /var/lib/kodi/.kodi
chown -R kodi:kodi /var/lib/kodi/.kodi
I assume this should be multiple commands. But what are they? I'm getting stuck on the first one! I thought the commands were:
$ useradd kodi -u 420 -g kodi -G audio,video,network,optical \ -d /var/lib/kodi -s /usr/bin/nologin kodi
$ passwd -l kodi > /dev/null
$ mkdir /var/lib/kodi/.kodi
$ chown -R kodi:kodi /var/lib/kodi/.kodi
But the first one gives an error. So what should it be?