owncloud 9.1.2, not able to su to www account for running occ

Status
Not open for further replies.

onur

Dabbler
Joined
Feb 16, 2016
Messages
14
Hi,

I am running FreeNAS-9.10.2 with owncloud 9.1.2.

I login to owncloud jail as root by running
Code:
 jexec 1 /bin/tcsh


I need to run occ to perform some commands
Code:
cd /usr/pbi/owncloud-amd64/www/owncloud/

Code:
/usr/pbi/owncloud-amd64/bin/php occ encryption:decrypt-all [username-masked]

but I am getting

Console has to be executed with the user that owns the file config/config.php
Current user: root
Owner of config.php: www
Try adding 'sudo -u www ' to the beginning of the command (without the single quotes)


so I use
Code:
chsh -s /bin/sh www
su www
I get the following error:
su: pam_start: system error

what should I do?

Thank you very much.
 
Last edited:

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
The command you want to enter the jail is jexec (jail number or hostname) tcsh . Not sure where you got the /bin from. Once you've entered the jail then try running your commands.
 

onur

Dabbler
Joined
Feb 16, 2016
Messages
14
The command you want to enter the jail is jexec (jail number or hostname) tcsh . Not sure where you got the /bin from. Once you've entered the jail then try running your commands.
thanks for the reply.
I used the command as you suggested.
Still having the same pam_start error.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
i usually see the pam errors when someone changes permissions for their jail datasets. Can you should the output of "ls -l /" in the jail
 

onur

Dabbler
Joined
Feb 16, 2016
Messages
14
i usually see the pam errors when someone changes permissions for their jail datasets. Can you should the output of "ls -l /" in the jail
Here is the output Joshua:
Code:
root@owncloud_1:/ # ls -l /
total 122
-rwxrwxrwx   2 root  wheel   965 Jul 11  2014 .cshrc
drwxrwxrwx   2 root  wheel	12 Dec 24 18:27 .plugins
-rwxrwxrwx   2 root  wheel   253 Jul 11  2014 .profile
-rw-------   1 root  wheel  1024 Dec 24 18:31 .rnd
-rwxrwxrwx   1 root  wheel  6197 Jul 11  2014 COPYRIGHT
drwxrwxrwx   2 root  wheel	46 Jul 11  2014 bin
drwxrwxrwx   7 root  wheel	40 Jul 11  2014 boot
dr-xr-xr-x  14 root  wheel   512 Dec 25 13:28 dev
drwxrwxrwx  22 root  wheel   105 Dec 29 18:05 etc
drwxrwxrwx   3 root  wheel	49 Jul 11  2014 lib
drwxrwxrwx   3 root  wheel	 5 Apr  3  2015 libexec
drwxrwx---  11 www   www	  20 Dec 30 08:01 media
drwxrwxrwx   2 root  wheel	 2 Jul 11  2014 mnt
dr-xr-xr-x   1 root  wheel	 0 Dec 30 08:01 proc
drwxrwxrwx   2 root  wheel   144 Jul 11  2014 rescue
drwxrwxrwx   2 root  wheel	 8 Mar 17  2016 root
drwxrwxrwx   2 root  wheel   132 Jul 11  2014 sbin
lrwxrwxrwx   1 root  wheel	11 Jul 11  2014 sys -> usr/src/sys
drwxrwxrwx   8 root  wheel	17 Dec 30 07:52 tmp
drwxrwxrwx  15 root  wheel	15 Mar 17  2016 usr
drwxrwxrwx  25 root  wheel	25 Dec 25 13:28 var

 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Here is the output Joshua:
Code:
root@owncloud_1:/ # ls -l /
total 122
-rwxrwxrwx   2 root  wheel   965 Jul 11  2014 .cshrc
drwxrwxrwx   2 root  wheel	12 Dec 24 18:27 .plugins
-rwxrwxrwx   2 root  wheel   253 Jul 11  2014 .profile
-rw-------   1 root  wheel  1024 Dec 24 18:31 .rnd
-rwxrwxrwx   1 root  wheel  6197 Jul 11  2014 COPYRIGHT
drwxrwxrwx   2 root  wheel	46 Jul 11  2014 bin
drwxrwxrwx   7 root  wheel	40 Jul 11  2014 boot
dr-xr-xr-x  14 root  wheel   512 Dec 25 13:28 dev
drwxrwxrwx  22 root  wheel   105 Dec 29 18:05 etc
drwxrwxrwx   3 root  wheel	49 Jul 11  2014 lib
drwxrwxrwx   3 root  wheel	 5 Apr  3  2015 libexec
drwxrwx---  11 www   www	  20 Dec 30 08:01 media
drwxrwxrwx   2 root  wheel	 2 Jul 11  2014 mnt
dr-xr-xr-x   1 root  wheel	 0 Dec 30 08:01 proc
drwxrwxrwx   2 root  wheel   144 Jul 11  2014 rescue
drwxrwxrwx   2 root  wheel	 8 Mar 17  2016 root
drwxrwxrwx   2 root  wheel   132 Jul 11  2014 sbin
lrwxrwxrwx   1 root  wheel	11 Jul 11  2014 sys -> usr/src/sys
drwxrwxrwx   8 root  wheel	17 Dec 30 07:52 tmp
drwxrwxrwx  15 root  wheel	15 Mar 17  2016 usr
drwxrwxrwx  25 root  wheel	25 Dec 25 13:28 var

You are getting the pam error because you changed the permissions of your jail dataset to 777. I suggest you reinstall the plugin. If you want to save your old data save you can backup and restore /media and /usr/pbi/owncloud-amd64/www/config/config.php
 

onur

Dabbler
Joined
Feb 16, 2016
Messages
14
You are getting the pam error because you changed the permissions of your jail dataset to 777. I suggest you reinstall the plugin. If you want to save your old data save you can backup and restore /media and /usr/pbi/owncloud-amd64/www/config/config.php
Thank you Joshua, I will try it. But no idea why permissions changed. Meanwhile I am also testing the new nextcloud plugin.
 
Status
Not open for further replies.
Top