- Login to shell with root access and issue this command:
# id jack
it will show something like that:
# uid=10002(jack) gid=2524(psacln) groups=2524(psacln)
-
remember the uid of jack which is 10002, we will need it later.
-
create user via the command below and use jack’s uid like this (this will let jill access subfolder):
# /usr/sbin/useradd -u 10002 -o -d /var/www/vhosts/example.com/custom_folder -g psacln -s /bin/false jill
- create password for jill:
# /etc/passwd jill (enter the new password and confirm it, does not have to be the same as jack’s)
