Author Topic: "Open: Permission denied" error  (Read 3995 times)

neofax

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
"Open: Permission denied" error
« on: June 15, 2008, 02:30:37 am »
I installed ebox on an Ubuntu Hardy Heron system and am getting "open: permission denied" when the postinst scripts are running.  It also happens on boot and shutdown.  How do I fix this?  Thanks!

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: "Open: Permission denied" error
« Reply #1 on: June 18, 2008, 07:47:09 am »
I am afraid that we need more information to try to troubleshoot this:

- Have you installed via apt-get or with the CD-installer?
- Can you be more specific about the 'failed to open' message? which other messages are reported before and after this one?
- Can you give a look to syslog (/var/log/syslog) and ebox logs (/var/log/ebox/ebox.log) to search for any clue?
« Last Edit: June 18, 2008, 09:41:59 am by sixstone »

neofax

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: "Open: Permission denied" error
« Reply #2 on: June 19, 2008, 12:59:20 am »
1. I installed via the apt repo for hardy heron
2.  It only shows the normal boot info, such as Starting Samba       [OK]; open: Permission denied; Starting NTP     [OK]
3.  Here is the only line that has an error in the ebox log:

2008/06/05 20:43:49 ERROR> Sudo.pm:185 EBox::Sudo::_rootError - root command /sbin/ip route del default table default failed.
Error output: RTNETLINK answers: No such process

Command output: .
Exit value: 2

So, this leads me to believe what I expected all along.  The line in /etc/sudoers is jacked.  Here is my /etc/sudoers file:

# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#

Defaults   env_reset

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root   ALL=(ALL) ALL

# Uncomment to allow members of group sudo to not need a password
# (Note that later entries override this, so you might need to move
# it further down)
%sudo ALL=NOPASSWD: ALL


# Entries for Smb4K users.
# Generated by Smb4K. Please do not modify!
User_Alias   SMB4KUSERS = terry
Defaults:SMB4KUSERS   env_keep += "PASSWD USER"
SMB4KUSERS   CENTAURI = NOPASSWD: /usr/bin/smb4k_kill
SMB4KUSERS   CENTAURI = NOPASSWD: /usr/bin/smb4k_umount
SMB4KUSERS   CENTAURI = NOPASSWD: /usr/bin/smb4k_mount
# End of Smb4K user entries.
#<ebox>
# DO NOT MODIFY ANYTHING BETWEEN THESE MARKS.
# EBOX WILL OVERWRITE IT.

# sudoers file for ebox


# Allow httpd user to execute all commands
ebox  ALL = NOPASSWD:ALL
#</ebox>


I do not see anything that could be causing the problem, but smb4k does not work correctly with sudo as well.

neofax

  • Zen Apprentice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: "Open: Permission denied" error
« Reply #3 on: June 24, 2008, 01:29:28 am »
bump  :P