I have a variable in my script that displays the user:

```
OWNER=$(grep 1000:1000: /etc/passwd|cut -f1 -d':')

```

Output will be something like:

```
joe

```

This is fine on a normal server where the os was installed & user was setup during the install. I run into problems on a vps where there is no initial user. I would like to add to the variable IF blank then the output should be "root" but I don't know where to start..

Thankyou