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