Open nkakouros opened 6 years ago
What we could do is:
/usr/bin/occ
symlink to the occ script /etc/profile.d/occ.sh
script that contains the lines that setup autocompletion from the nextcloud docsThen, if the user wants to work with the occ
tool, they can do:
sudo su www-data -l -s /bin/bash
And they will have autocompletion. We could mention this in the README.
sudo su www-data -l -s /bin/bash
<- that's exactly the problem - www-data
is a user without profile, so we cannot su
into it because it can never open a terminal session:
# sudo su www-data
This account is currently not available.
If you supply -s /bin/bash
then it will use a shell for the www-data
user to use.
This is something I can't even get to work manually. I guess the culprit is that www-data needs to have a profile, as noted in the docs:
https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html#enabling-autocompletion
I'd be very hesitant to change that user account...