Unable to access frontview

Please post questions and issues pertaining to share access and file permission here.

Unable to access frontview

Postby Dashu » Wed Jun 06, 2012 5:26 am

Hello!

I've fiddling around to get my wordpress running and I may have broken access to frontview in the process, that or the latest upgrade broke it.
apache-ssl runs under www-data user and group.

I was first presented with:
(13)Permission denied: /frontview/ui/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
which i solved by chmod 755 then
(13)Permission denied: /frontview/ui/resource/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
which i solved by chmod 755 then

etc

The errors i'm getting now is the following
user root: authentication failure for "/admin": Password Mismatch
authentication failure for "/shares": Password Mismatch

I'm out of ideas and hope someone can shine some light on this issue.
My blog is working perfectly running wordpress, the frontview doesn't work.

Thanks in advance
Johan Nilsson
Dashu
ReadyNAS Newbie
 
Posts: 35
Joined: Sun Aug 14, 2011 3:24 am
ReadyNAS: Ultra

Re: Unable to access frontview

Postby mdgm » Wed Jun 06, 2012 5:28 am

You might want to post the SSH commands you've used.

To check what you've done:
Code: Select all
# cd
# cat .bash_commands
Useful links: My ReadyNAS Gear|FAQ|Hardware Compatibility List|Docs: Setup Guide, Manual|Downloads|Unofficial Tips|GPL|MDGM on Twitter|MDGM's Unofficial Guides
NB: A ReadyNas is not an excuse not to have a backup. Fire, theft, multiple disk failures, other hardware failure, floods, user negligence etc. can all result in loss of data.
How we users can contact NETGEAR Technical Support | Australia: 1300 361 254 / Other Numbers|Online Submission
Unofficial Guide for Moving from Sparc ReadyNAS to x86 ReadyNAS|Using Gmail with the ReadyNAS|XRAID Volume Size Calculator
User avatar
mdgm
ReadyNAS Enthusiast
 
Posts: 28611
Joined: Tue Feb 17, 2009 9:34 pm
Location: Down Under
ReadyNAS: RN312

Re: Unable to access frontview

Postby Dashu » Wed Jun 06, 2012 5:45 am

Thanks for teaching me the .bash_commands func, didn't know about it : )
It did unfortunately not show anything of interest, besides maybe a restart of apache-ssl as another user.

I got the wordpress blog running some weeks ago, it was not until today I realized frontview wasn't working

Thanks in advance for any further hints!
Really appreciate it!
Dashu
ReadyNAS Newbie
 
Posts: 35
Joined: Sun Aug 14, 2011 3:24 am
ReadyNAS: Ultra

Re: Unable to access frontview

Postby mdgm » Wed Jun 06, 2012 6:21 am

What's useful depends on opinion.

What command did you use to restart apache?

apache should be restarted with a command such as:
Code: Select all
# /usr/sbin/apache-ssl -f /etc/frontview/apache/httpd.conf -t && /usr/sbin/apache-ssl -f /etc/frontview/apache/httpd.conf -k graceful
Useful links: My ReadyNAS Gear|FAQ|Hardware Compatibility List|Docs: Setup Guide, Manual|Downloads|Unofficial Tips|GPL|MDGM on Twitter|MDGM's Unofficial Guides
NB: A ReadyNas is not an excuse not to have a backup. Fire, theft, multiple disk failures, other hardware failure, floods, user negligence etc. can all result in loss of data.
How we users can contact NETGEAR Technical Support | Australia: 1300 361 254 / Other Numbers|Online Submission
Unofficial Guide for Moving from Sparc ReadyNAS to x86 ReadyNAS|Using Gmail with the ReadyNAS|XRAID Volume Size Calculator
User avatar
mdgm
ReadyNAS Enthusiast
 
Posts: 28611
Joined: Tue Feb 17, 2009 9:34 pm
Location: Down Under
ReadyNAS: RN312

Re: Unable to access frontview

Postby Dashu » Wed Jun 06, 2012 2:08 pm

Did a killall and restarted apache the way you instructed.
Still suffering the same symptoms, any other ideas?
Is there anything else I can provide to further figure out the matter?

Thanks
Dashu
ReadyNAS Newbie
 
Posts: 35
Joined: Sun Aug 14, 2011 3:24 am
ReadyNAS: Ultra

Re: Unable to access frontview

Postby mdgm » Wed Jun 06, 2012 4:46 pm

Well you haven't posted the SSH commands or explained whether you've installed Wordpress and PHP via add-ons or some other way.
Useful links: My ReadyNAS Gear|FAQ|Hardware Compatibility List|Docs: Setup Guide, Manual|Downloads|Unofficial Tips|GPL|MDGM on Twitter|MDGM's Unofficial Guides
NB: A ReadyNas is not an excuse not to have a backup. Fire, theft, multiple disk failures, other hardware failure, floods, user negligence etc. can all result in loss of data.
How we users can contact NETGEAR Technical Support | Australia: 1300 361 254 / Other Numbers|Online Submission
Unofficial Guide for Moving from Sparc ReadyNAS to x86 ReadyNAS|Using Gmail with the ReadyNAS|XRAID Volume Size Calculator
User avatar
mdgm
ReadyNAS Enthusiast
 
Posts: 28611
Joined: Tue Feb 17, 2009 9:34 pm
Location: Down Under
ReadyNAS: RN312

Re: Unable to access frontview

Postby Dashu » Thu Jun 07, 2012 3:21 am

I manually installed wordpress but installed php via an addon (can't remember which, but i remember paying for it)
Do you want me to paste the whole ssh commands for current user and root?

I was realizing the status code of 255 that I am getting.
*If you see a negative error code (or a number like 255 or 254) reported in the Apache error log, then that is an error code from mod_authnz_external and means that it was unable to run pwauth at all*

My Auth.Conf
<IfModule authnz_external_module>
AuthType Basic
AuthBasicProvider external
AuthExternal pwauth
</IfModule>
<IfModule !authnz_external_module>
LoadModule authnz_external_module /usr/lib/apache2/modules/mod_authnz_external.so
LoadModule auth_sys_group_module /usr/lib/apache2/modules/mod_auth_sys_group.so
AddExternalAuth pwauth /usr/bin/pwauth
SetExternalAuthMethod pwauth environment
</IfModule>
Dashu
ReadyNAS Newbie
 
Posts: 35
Joined: Sun Aug 14, 2011 3:24 am
ReadyNAS: Ultra

Re: Unable to access frontview

Postby Dashu » Thu Jun 07, 2012 3:44 am

Could it have something to do with permissions on pwauth?
-rwsr-x--- 1 root admin 4948 2010-07-28 23:28 pwauth

It requires root or admin but apache-ssl runs as www-data
NAS:/usr/bin# ps aux | grep apache-ssl
root 16525 0.0 4.2 104520 42960 ? Ss 06:25 0:01 /usr/sbin/apache-ssl -f /etc/frontview/apache/httpd.conf
www-data 16536 0.0 7.1 122048 72496 ? S 06:25 0:02 /usr/sbin/apache-ssl -f /etc/frontview/apache/httpd.conf
www-data 22430 0.0 3.7 106156 38256 ? S 11:45 0:00 /usr/sbin/apache-ssl -f /etc/frontview/apache/httpd.conf
Dashu
ReadyNAS Newbie
 
Posts: 35
Joined: Sun Aug 14, 2011 3:24 am
ReadyNAS: Ultra

Re: Unable to access frontview

Postby Dashu » Fri Jun 08, 2012 1:48 pm

I chmod pwauth to 777 and received a new error:

AuthExtern pwauth [/usr/bin/pwauth]: Failed (50) for user root

Where:
50 STATUS_INT_USER pwauth was invoked by a uid not on the SERVER_UIDS list. If you get this error code, you probably have SERVER_UIDS set incorrectly in pwauth's config.h file.

Anybody have any knowledge about where i may find pwauthäs config file?

Thanks
Dashu
ReadyNAS Newbie
 
Posts: 35
Joined: Sun Aug 14, 2011 3:24 am
ReadyNAS: Ultra

Re: Unable to access frontview

Postby Dashu » Mon Jun 11, 2012 10:38 am

Bump
Dashu
ReadyNAS Newbie
 
Posts: 35
Joined: Sun Aug 14, 2011 3:24 am
ReadyNAS: Ultra

Re: Unable to access frontview

Postby Dashu » Wed Jun 13, 2012 11:50 am

Have been digging around some more and realized I don't have a the following file

/etc/pam.d/pwauth

Is this file supposed to exist?
Or where do pwauth get its authentication rules?

Thanks in advance
Dashu
ReadyNAS Newbie
 
Posts: 35
Joined: Sun Aug 14, 2011 3:24 am
ReadyNAS: Ultra

Re: Unable to access frontview

Postby mdgm » Thu Jun 14, 2012 4:29 am

No there's no /etc/pam.d/pwauth file on my system.

Not sure what you've done to cause the problem from the information you've provided.

Have you tried an OS Re-install?:
Code: Select all
touch /.os_update

Then either use the reboot command or shutdown safely pressing power button twice. Then power on again.
Useful links: My ReadyNAS Gear|FAQ|Hardware Compatibility List|Docs: Setup Guide, Manual|Downloads|Unofficial Tips|GPL|MDGM on Twitter|MDGM's Unofficial Guides
NB: A ReadyNas is not an excuse not to have a backup. Fire, theft, multiple disk failures, other hardware failure, floods, user negligence etc. can all result in loss of data.
How we users can contact NETGEAR Technical Support | Australia: 1300 361 254 / Other Numbers|Online Submission
Unofficial Guide for Moving from Sparc ReadyNAS to x86 ReadyNAS|Using Gmail with the ReadyNAS|XRAID Volume Size Calculator
User avatar
mdgm
ReadyNAS Enthusiast
 
Posts: 28611
Joined: Tue Feb 17, 2009 9:34 pm
Location: Down Under
ReadyNAS: RN312

Re: Unable to access frontview

Postby Dashu » Thu Jun 14, 2012 5:48 am

Thanks for you input!
Wouldn't an os reinstall break my wordpress install among other things?
As it is now, everything is working peachy except frontview.

The last thing I remember doing was to upgrade the firmware to 4.2.20.
Before that I installed some custom packages php etc to get wordpress going
Dashu
ReadyNAS Newbie
 
Posts: 35
Joined: Sun Aug 14, 2011 3:24 am
ReadyNAS: Ultra

Re: Unable to access frontview

Postby mdgm » Thu Jun 14, 2012 5:58 am

Dashu wrote:Thanks for you input!
Wouldn't an os reinstall break my wordpress install among other things?

Quite possibly.
Dashu wrote:The last thing I remember doing was to upgrade the firmware to 4.2.20.
Before that I installed some custom packages php etc to get wordpress going

Still would be of help to have a list of the commands you entered.
Useful links: My ReadyNAS Gear|FAQ|Hardware Compatibility List|Docs: Setup Guide, Manual|Downloads|Unofficial Tips|GPL|MDGM on Twitter|MDGM's Unofficial Guides
NB: A ReadyNas is not an excuse not to have a backup. Fire, theft, multiple disk failures, other hardware failure, floods, user negligence etc. can all result in loss of data.
How we users can contact NETGEAR Technical Support | Australia: 1300 361 254 / Other Numbers|Online Submission
Unofficial Guide for Moving from Sparc ReadyNAS to x86 ReadyNAS|Using Gmail with the ReadyNAS|XRAID Volume Size Calculator
User avatar
mdgm
ReadyNAS Enthusiast
 
Posts: 28611
Joined: Tue Feb 17, 2009 9:34 pm
Location: Down Under
ReadyNAS: RN312

Re: Unable to access frontview

Postby Dashu » Thu Jun 14, 2012 6:11 am

Bash history for user
sudo /etc/init.d/ddclient status
sudo vi /etc/ddclient.conf
sudo /etc/init.d/ddclient restart
get dns.loopia.se/checkip/checkip.php
cat dns.loopia.se/checkip/checkip.php
syslog
cd /var/log/
ls
tail syslog
sudo /etc/init.d/ddclient start
sudo /etc/init.d/ddclient start
tail syslog
ls
sudo vi /etc/ddclient.conf
tail /var/log
ls
sudo /etc/init.d/ddclient start
ls
tail syslog
tail syslog
ls
tail syslog
sudo vi /etc/ddclient.conf
tail syslog
sudo /etc/init.d/ddclient status
which ddclient
ddclient
ls
tail daemon.log
tail syslog
tail syslog
tail syslog
tail syslog
tail syslog
tail syslog
tail daemon.log
tail daemon.log
tail syslog
tail syslog
sudo /etc/init.d/ddclient
sudo /etc/init.d/ddclient force-reload
tail syslog
exit
cd /
ls
cd var/log/
ls
cat proftpd.log
sudo cat proftpd.log
sudo tail proftpd.log
cd /etc/
ls
cat proftpd.conf
cd var/log/
cd /var/log
tail proftpd.log
sudo tail proftpd.log
sudo tail proftpd.log
sudo tail proftpd.log
sudo apt-get update
sudo apt-get update
sudo apt-key update
sudo apt-get update
sudo apt-get check
sudo apt-get update
tail /var/log/syslog
tail /var/log/daemon.log
cd /var/log
ls
tail debug
ls
exit
apt-cache show ddclient
ls /tmp/
ping google.com
exit
cd /etc
ls
sudo vi proftpd.conf
sudo /etc/init.d/proftpd restart
exit
apt
apt
package
pkg
pkg-ad
pkg-add
apt
apt-get
apt-get update
su
exit
su
exit
su
exit
su
su
exit
sudo vi /c/blog/.htaccess
su
exit
su
exit
cd /home
ls
cd ..
cd ..
ls
cd homes
ls
ls
su
exit
ls
cd ..
cd ..
cd ..
ls
ls
exit
cd /media
exit
cd /blog
ls
cd wp-content
ls
ls
cd ..
ls
ls -al
cd wp-includes
ls
cd ..
ls
ls -al
cd wp-admmin
cd wp-admin
ls
cd /var/log/frontview/
ls
tail error.log
cd /frontview/ui/re
cd /frontview/ui
cd /frontview
ls
cd ui
su
exit
su
exit
su
exit
su
su
exit
cd /var/log/apache
ls
cd /var/log
ls
cd frontview
ls
cat access.log
tail access.log
clear
tail access.log
ls
tail error.log
cd c
cd /c/blog
ls
cd ,,'
cd ..

cd..
cd ..
ls
cd blog
ls
ls -al
cat .htaccess
cd /etc/cd /etc
ls
cd /etc
ls
help find
man -k find
find
find -n conf.d
find -name conf.d
cd php5
cat conf.d
ls
cd conf.d/
ls
cd ..
ls
cd apache2/
ls
ct conf.d
ct conf.d
cat conf.d
cd conf.d
ls
cd /c/blog/
ls
pico .htaccess
apt-get
apt-get pico
apt-get install pico
sudo
sudo apt-get install pico
sudo apt-get install nano
ls
nano .htaccess
cat .htaccess
cd /etc/frontview/
ls
cd apache/
ls
cat /var/log/frontview/error.log
ls
nano httpd.conf
sudo nano httpd.conf
tail /var/log/frontview/error.log
apachectl restart
which apachectl
find -name apachectl
find / -name apachectl
locate apachectl
/sbin/service httpd reload
locate apache
which apache
apachectl
/etc/init.d/apache2 reload
/etc/init.d/apache2 reload -f /etc/frontview/apache/
/etc/init.d/apache2 reload -f /etc/frontview/apache/httpd.conf
sudo /etc/init.d/apache2 reload -f /etc/frontview/apache/httpd.conf
which apache2
locate apache2
which apache
which
locate
locate apache
locate apache2
locate locate
find / -name apache2.conf
sudo find / -name apache2.conf
sudo find / -name apache.conf
sudo find / -name httpd.conf
sudo /etc/init.d/apache2 reload -f /etc/frontview/apache/httpd.conf
sudo /etc/init.d/apache2 reload -file /etc/frontview/apache/httpd.conf
cd /etc/init.d
ls
apache2 reload
cd apache2
ls
./apache2 reload
./apache2
./apache2 reload
./apache2 reload -
./apache2 reloadps
ps
sudo ps
ps -al
ps
man ps
httpd reload
./apache2 reload
apt-get install apachectl
sudo apt-get install apachectl
apache2
apache
cd /etc/frontview/apache/
ls
cat Virtual.conf
sudo cat Virtual
su
exit
ls
cd /c/blog
ls
cd wp-content
ks
ls
cd plugins/
ls
cd sociable
ks
ls
ls -al
chown www-data
chown www-data www-data
chown www-data *
sudo chown www-data *
cd ..
ls
ls -al
chown www-data sociable/
sudo chown www-data sociable/
ls -al
sudo chgroup www-data sociable/
sudo chgrp www-data sociable/
ls -al
ls -al
rm -rf sociable/'
rm -rf sociable/
sudo rm -rf sociable/
ls -al
cd /c/blog
ls
cd wp-content
ls
cd plugins/
ls
rm -rf akismet
ls
exit
ls
cd /etc/log
cd /etc
ls
cd /var/log
ls
tail user.log
tail syslog
tail debug
tail dmsg
tail dmesg
cd frontview/
ls
tail access.log
clear
tail error.log
cd /frontview/ui/
ls
su
sudo killall apache-ssl
/usr/sbin/apache-ssl -f /etc/frontview/apache/httpd.conf -t && /usr/sbin/apache-ssl -f /etc/frontview/apache/httpd.conf -k graceful
sudo /usr/sbin/apache-ssl -f /etc/frontview/apache/httpd.conf -t && /usr/sbin/apache-ssl -f /etc/frontview/apache/httpd.conf -k graceful
su
Dashu
ReadyNAS Newbie
 
Posts: 35
Joined: Sun Aug 14, 2011 3:24 am
ReadyNAS: Ultra

Next

Return to Share Access and File Permission



Who is online

Users browsing this forum: solid74 and 4 guests