PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : ssh Zugriff nicht möglich da /var/run/sshd flascher benutzer/gruppe



blauerpeti
19.01.08, 20:26
habe folgendes problem:
kann nicht per putty und ssh auf den server zugreifen. bei einem Neustart das ssh-dienstes kommt folgende fehlermeldung:
"/var/run/sshd must be owned by root and not group or world-writable"

ordne ich per chown user und gruppe wieder zum root, klappt alles wieder. nur nach einem neustart des rechners werden die rechte wieder zurückgestellt.
Im konkreten Fall ist das alles nach der installation von Asterisk passiert und die rechte auf das genannte verzeichnis sind auf asterisk.asterisk gesetzt.

kann auf den zugriff mit putty nicht verzichten, da im normalfall keine Tastatur und monitor am rechner angschlossen sind.
Debian 4.0

temir
19.01.08, 23:28
Wenn Debian es hier ähnlich wie Suse macht, hilfts vielleicht auf die Sprünge:


# /etc/permissions
#
# Copyright (c) 2001 SuSE GmbH Nuernberg, Germany. All rights reserved.
#
# Author: Roman Drahtmueller <draht@suse.de>, 2001
#
# This file is used by SuSEconfig and chkstat to check or set the modes
# and ownerships of files and directories in the installation.
#
# There is a set of files with similar meaning in a SuSE installation:
# /etc/permissions (This file)
# /etc/permissions.easy
# /etc/permissions.secure
# /etc/permissions.paranoid
# /etc/permissions.local
# Please see the respective files for their meaning.
#
#
# Format:
# <file> <owner>:<group> <permission>
#
# How it works:
# Change the entries as you like, then call
# `chkstat -set /etc/permissions or /etc/permissions.{easy,secure,paranoid}
# respectively, or call `SuSEconfig as yast do after they think
# that files have been modified in the system.
#
# SuSEconfig will use the files /etc/permissions and the ones ending
# in what the variable PERMISSION_SECURITY from
# /etc/sysconfig/security contains. By default, these are the files
# /etc/permissions, /etc/permissions.easy and /etc/permissions.local
# for local changes by the admin. In addition, the directory
# /etc/permissions.d/ can contain permission files that belong to
# the packages they modify file modes for. These permission files
# are to switch between conflicting file modes of the same file
# paths in different packages (popular example: sendmail and
# postfix, path /usr/sbin/sendmail).
#
# SuSEconfig's usage of the chkstat program can be turned off completely
# by setting CHECK_PERMISSIONS to "warn" in /etc/sysconfig/security.
#
# /etc/permissions is kept to the bare minimum. File modes that differ
# from the settings in this file should be considered broken.
#
# Please see the headers of the files
# /etc/permissions.easy
# /etc/permissions.secure
# /etc/permissions.paranoid
# as well as
# /etc/permissions.local
# for more information about their particular meaning and their setup.

#
# root directories:
#

...
...
...