Anzeige:
Ergebnis 1 bis 14 von 14

Thema: Anmeldung nur als root möglich

  1. #1
    Registrierter Benutzer
    Registriert seit
    Feb 2017
    Beiträge
    19

    Anmeldung nur als root möglich

    Hallo,

    ich benutze Debian 7.11 auf einem Banana Pi mit Openmediavault.
    Wenn ich mich über ssh als Benutzer anmelden möchte, werde ich sofort
    mit folgender Meldung rausgeschmissen:

    Code:
    root@Pi:~# login test3
    Passwort:
    Letzte Anmeldung: Freitag, den 03. Februar 2017, 16:29:18 CET auf pts/0
    Linux Pi 3.4.108+ #1 SMP PREEMPT Mon Jan 4 22:29:22 CET 2016 armv7l
    
    ------------------------------------------------------------------------
    Welcome to Bananian Linux!
    For news and updates check: https://www.bananian.org
    Any questions? Read the FAQ first: https://www.bananian.org/faq
    
    Run 'bananian-config' to set up Bananian Linux
    Run 'bananian-update' to check for distribution updates
    ------------------------------------------------------------------------
    /bin/bash konnte nicht ausgeführt werden: Keine Berechtigung
    root@Pi:~#
    Ich habe bereits probiert, Benutzer über das OMV-GUI anzulegen und über
    adduser, aber die Anmeldung funktioniert nicht.

    Hat jemand eine Idee, wie ich mich als einfacher Benutzer
    anmelden kann?

    BTW: Meine Erfahrung mit Linux hält sich in engen Grenzen.

  2. #2
    Newbie and practicing Avatar von Newbie314
    Registriert seit
    Mar 2007
    Beiträge
    7.639
    Du gibst den Login Befehl während du schon als root eingeloggt bist. Das funktioniert dann nicht weil diverse Pfade dann nicht stimmen.

    Ich habe selbst noch nicht mit ssh gearbeitet aber kann es sein dass du beim Verbinden über ssh schon als root einloggst? Wenn ja im ssh Befehl die Daten für root durch die von test3 ersetzen.
    Bei Konsolenausgaben / Fehlermeldungen bitte immer Code Tags verwenden: [code] -Text- [/code]
    "Überzeugungen sind gefährlichere Feinde der Wahrheit als Lügen" (H. Lesch)

  3. #3
    Registrierter Benutzer
    Registriert seit
    Aug 2007
    Ort
    Sauerland
    Beiträge
    1.690
    Viele Distributionen verbieten in der sshd_config per Default die root Anmeldung. Muss man explizit aktivieren.

    Daher ist es besser sich erst als User anzumelden und dann per su - zum root zu werden.

    Code:
    ssh (-p xxxxx) User@Server

  4. #4
    Elefantenversteher Avatar von florian0285
    Registriert seit
    Jun 2016
    Beiträge
    1.054
    Schon mal

    Code:
    su test3
    versucht?

    Was Newbie meint ist

    Code:
    ssh test3@deineBanane.lan
    Matthäus 7:3 Was siehst du aber den Splitter in deines Bruders Auge, und wirst nicht gewahr des Balkens in deinem Auge?

  5. #5
    Registrierter Benutzer
    Registriert seit
    Dec 2003
    Ort
    Dettenhausen
    Beiträge
    22.062
    Interessanter ist eher:
    Code:
    /bin/bash konnte nicht ausgeführt werden: Keine Berechtigung
    was sagt denn als root ein
    Code:
    ls -la /bin/bash
    evtl. hast Du an dem Systme einfach mal ein wenig zu "forsch" an irgendwelchen Dateirechten herumgespielt...
    Ich bin root - ich darf das.

  6. #6
    Registrierter Benutzer
    Registriert seit
    Feb 2017
    Beiträge
    19
    Ich weiß nicht, ob es entscheidend ist, aber ich verbinde mich normalerweise mittels Putty unter XP mit der Linux-Banane.

    Code:
    root@BaPi:~# ls -la /bin/bash
    -rwxr-xr-x 1 root root 633772 Okt 26 20:50 /bin/bash
    root@BaPi:~#
    Ich kann nicht ausschließen, dass ich mittlerweile Dateiberechtigungen verdreht habe, während ich ergoogelte Tipps ausprobiert habe. Allerdings hat der Login als User von Anfang an nicht funktioniert und da hatte ich AFAIR noch nicht an den Berechtigungen gedreht.


    "su test3" geht auch nicht:

    Code:
    Last login: Fri Feb  3 15:34:20 2017 from 192.168.1.1
    root@BaPi:~# su test3
    /bin/bash konnte nicht ausgeführt werden: Keine Berechtigung
    Dabei war ich nicht als root angemeldet, auch nicht über eine andere Konsole.


    Wenn ich ssh in einer Linux-Mint-VM aufrufe, kann ich mich ebenfalls als root, aber nicht als user anmelden:

    Code:
    xfcetester@xfcetester-VBox ~ $ ssh test3@192.168.1.31
    test3@192.168.1.31's password: 
    Permission denied, please try again.
    test3@192.168.1.31's password: 
    [Strg+C für Abbruch gedrückt]
    
    xfcetester@xfcetester-VBox ~ $ ssh root@192.168.1.31
    root@192.168.1.31's password: 
    Linux BaPi 3.4.108+ #1 SMP PREEMPT Mon Jan 4 22:29:22 CET 2016 armv7l
    [Begrüßungstext entfernt]
    Last login: Sat Feb  4 14:05:52 2017 from 192.168.1.1
    root@BaPi:~#
    @Sauerland
    Der Login als root funktioniert. Mein Prob ist, dass ich mich nicht als User anmelden kann.


    In meinem OP kann man sehen, dass die Anmeldung stattfindet, denn Linux zeigt den Begrüßungstext an und meldet beim nächsten Loginversuch, den letzten Versuch als letzten Anmeldezeitpunkt. Erst dann kommt die Fehlermeldung, dass /bin/bash nicht ausgeführt werden kann und ich werde rausgekickt.
    Ich habe testweise auch schon /bin/dash probiert, oder es war sogar ursprünglich so von Openmediavault eingestellt.

  7. #7
    Registrierter Benutzer
    Registriert seit
    Dec 2003
    Ort
    Dettenhausen
    Beiträge
    22.062
    dann würde ich Rechte-Probleme am HomeVerzeichnis des Users test3 vermuten.

    Evtl. kannst Du den Login / su-Versuch mal "mit-stracen"...
    Ich bin root - ich darf das.

  8. #8
    Registrierter Benutzer
    Registriert seit
    Feb 2017
    Beiträge
    19
    Werden dabei auch Passwörter oder andere Sachen mit geschnitten, die man besser nicht öffentlich macht?

    Was strace abspeichert, sagt mir nichts. Ich habe versucht den Mitschnitt von "su test3" und "su root" zu vergleichen, aber das logfile von letzterem scheint abrupt beendet zu werden. Hier sind die letzten paar Zeilen:

    strace -o test3.log su test3

    Code:
    gettimeofday({1486217516, 466091}, NULL) = 0
    send(3, "<86>Feb  4 15:11:56 su[3187]: pa"..., 96, MSG_NOSIGNAL) = 96
    clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb6f81068) = 3188
    rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], NULL, 8) = 0
    rt_sigaction(SIGTERM, {0xaa9d, [], 0x4000000 /* SA_??? */}, NULL, 8) = 0
    rt_sigprocmask(SIG_UNBLOCK, [ALRM TERM], NULL, 8) = 0
    wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 126}], WSTOPPED, NULL) = 3188
    open("/etc/passwd", O_RDONLY|O_CLOEXEC) = 4
    _llseek(4, 0, [0], SEEK_CUR)            = 0
    fstat64(4, {st_mode=S_IFREG|0644, st_size=2102, ...}) = 0
    mmap2(NULL, 2102, PROT_READ, MAP_SHARED, 4, 0) = 0xb6f80000
    _llseek(4, 2102, [2102], SEEK_SET)      = 0
    munmap(0xb6f80000, 2102)                = 0
    close(4)                                = 0
    getuid32()                              = 0
    gettimeofday({1486217516, 473467}, NULL) = 0
    send(3, "<86>Feb  4 15:11:56 su[3187]: pa"..., 81, MSG_NOSIGNAL) = 81
    munmap(0xb6c03000, 36924)               = 0
    munmap(0xb6bdb000, 41104)               = 0
    munmap(0xb6bd0000, 41080)               = 0
    munmap(0xb6bb2000, 119276)              = 0
    munmap(0xb6be6000, 117848)              = 0
    munmap(0xb6b7c000, 217408)              = 0
    munmap(0xb6b72000, 36904)               = 0
    munmap(0xb6b68000, 36912)               = 0
    exit_group(126)                         = ?

    strace -o root.log su root
    Code:
    gettimeofday({1486218131, 770422}, NULL) = 0
    send(3, "<86>Feb  4 15:22:11 su[5298]: pa"..., 95, MSG_NOSIGNAL) = 95
    clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb6eff068) = 5299
    rt_sigprocmask(SIG_BLOCK, ~[RTMIN RT_1], NULL, 8) = 0
    rt_sigaction(SIGTERM, {0xaa9d, [], 0x4000000 /* SA_??? */}, NULL, 8) = 0
    rt_sigprocmask(SIG_UNBLOCK, [ALRM TERM], NULL, 8) = 0
    wait4(-1,
    Dabei war ich als root über ssh angemeldet, denn sonst kann ich strace nicht ausführen, bzw. ich wüsste nicht wie.

  9. #9
    Elefantenversteher Avatar von florian0285
    Registriert seit
    Jun 2016
    Beiträge
    1.054
    Wie sieht das eigentlich mit der konfigurierten Login-Shell aus? Im Zweifelsfall aus /etc/passwd auslesbar
    Matthäus 7:3 Was siehst du aber den Splitter in deines Bruders Auge, und wirst nicht gewahr des Balkens in deinem Auge?

  10. #10
    Registrierter Benutzer
    Registriert seit
    Feb 2017
    Beiträge
    19
    Ich verstehe nicht, was du damit meinst. In der /etc/passwd steht zum Testuser:
    Code:
    test3:x:1004:1000:,,,:/home/test3:/bin/bash

  11. #11
    Elefantenversteher Avatar von florian0285
    Registriert seit
    Jun 2016
    Beiträge
    1.054
    ja das meinte ich [emoji6]
    Sieht aber ok aus.

    Woher hast du OMV? War das ein SD-Image oder wurde das aus den Repos nachinstalliert?

    Ich hab da noch was gefunden:
    http://askubuntu.com/questions/30753...mission-denied

    http://www.tldp.org/LDP/LG/issue52/okopnik.html

    https://bbs.archlinux.org/viewtopic.php?id=175062&p=3

    So wie das aussieht ist das irgendwo bei / beginnend ein Berechtigungsproblem. Daher mach einfach mal ein "ls -l" für / und die 1. Ebene darunter. Dann poste das.
    Geändert von florian0285 (10.02.17 um 07:30 Uhr)
    Matthäus 7:3 Was siehst du aber den Splitter in deines Bruders Auge, und wirst nicht gewahr des Balkens in deinem Auge?

  12. #12
    Registrierter Benutzer
    Registriert seit
    Feb 2017
    Beiträge
    19
    OMV habe ich von SimpleNAS.com als Image geladen. Ich habe also *nicht* zuerst Linux installiert und danach OMV aus einem Paket.


    Die beiden ersten Links kommen mir bekannt vor. Als ich Ende letzten Jahres schon mal einen Versuch gestartet hatte, das Problem zu lösen, meine ich die schon gelesen zu haben. Da das für mich aber größtenteils Böhmische Dörfer sind, habe ich irgendwann aufgegeben.

    Der 3. Link ist neu für mich. Bei der Linuxinstallation mit dem gleichen Problem wie bei mir war ein falscher Eigentümer für / eingetragen, wenn ich das richtig verstehe. Das scheint bei mir nicht der Fall zu sein.
    Es wird dort unter anderem nach /usr/bin/bash gefragt. Das gibt es bei mir nicht.

    Code:
    root@BaPi:/usr/bin# ls -a bash
    ls: Zugriff auf bash nicht möglich: Datei oder Verzeichnis nicht gefunden
    root@BaPi:/usr/bin#


    Soll ich "ls -l" von allen Ordnern der 1. Unterebene machen, oder nur von ausgewählten Verzeichnissen?

    Code:
    root@BaPi:/# dir
    bin   dev  export  lib         media  opt   root  sbin     srv        sys  usr
    boot  etc  home    lost+found  mnt    proc  run   selinux  swapfile1  tmp  var
    root@BaPi:/# ls -l
    insgesamt 524376
    drwxr-xr-x   2 root     root       4096 Feb  3 15:42 bin
    drwxr-xr-x   2 root     root       4096 Apr  7  2015 boot
    drwxr-xr-x  13 root     root       4320 Feb  9 20:25 dev
    drwxr-xr-x  94 root     root       4096 Feb  4 15:26 etc
    drwxr-xr-x   2 root     root       4096 Jul 13  2015 export
    drwxr-xr-x   3 root     root       4096 Feb  3 15:49 home
    drwx------  14 BackUpCP test3      4096 Sep 30 20:07 lib
    drwx------   2 root     root      16384 Aug  9  2014 lost+found
    drwxr-xr-x   5 root     root       4096 Okt 25 01:39 media
    drwxr-xr-x   2 root     root       4096 Jul  7  2014 mnt
    drwxr-xr-x   2 root     root       4096 Aug  9  2014 opt
    dr-xr-xr-x 103 root     root          0 Jan  1  1970 proc
    drwx------   8 root     root       4096 Feb  4 15:22 root
    drwxr-xr-x  16 root     root        800 Feb  9 20:25 run
    drwxr-xr-x   2 root     root      12288 Feb  3 15:42 sbin
    drwxr-xr-x   2 root     root       4096 Jun 10  2012 selinux
    drwxr-xr-x   4 root     root       4096 Jul 20  2015 srv
    -rw-------   1 root     root  536870912 Aug  9  2014 swapfile1
    dr-xr-xr-x  12 root     root          0 Jan  1  2010 sys
    drwxrwxrwt   2 root     root         40 Feb 10 09:45 tmp
    drwxr-xr-x  10 root     root       4096 Aug  9  2014 usr
    drwxr-xr-x  13 root     root       4096 Jul 20  2015 var

    Code:
    root@BaPi:/# ls -l /bin
    insgesamt 5276
    -rwxr-xr-x 1 root root 633772 Okt 26 20:50 bash
    -rwxr-xr-x 3 root root  26248 Jul 29  2012 bunzip2
    -rwxr-xr-x 3 root root  26248 Jul 29  2012 bzcat
    lrwxrwxrwx 1 root root      6 Jul 29  2012 bzcmp -> bzdiff
    -rwxr-xr-x 1 root root   2140 Jul 29  2012 bzdiff
    lrwxrwxrwx 1 root root      6 Jul 29  2012 bzegrep -> bzgrep
    -rwxr-xr-x 1 root root   4877 Jul 29  2012 bzexe
    lrwxrwxrwx 1 root root      6 Jul 29  2012 bzfgrep -> bzgrep
    -rwxr-xr-x 1 root root   3642 Jul 29  2012 bzgrep
    -rwxr-xr-x 3 root root  26248 Jul 29  2012 bzip2
    -rwxr-xr-x 1 root root   9720 Jul 29  2012 bzip2recover
    lrwxrwxrwx 1 root root      6 Jul 29  2012 bzless -> bzmore
    -rwxr-xr-x 1 root root   1297 Jul 29  2012 bzmore
    -rwxr-xr-x 1 root root  34552 Jan 26  2013 cat
    -rwxr-xr-x 1 root root   9760 Jun 14  2012 chacl
    -rwxr-xr-x 1 root root  38620 Jan 26  2013 chgrp
    -rwxr-xr-x 1 root root  38596 Jan 26  2013 chmod
    -rwxr-xr-x 1 root root  42724 Jan 26  2013 chown
    -rwxr-xr-x 1 root root   5600 Apr 30  2012 chvt
    -rwxr-xr-x 1 root root  79824 Jan 26  2013 cp
    -rwxr-xr-x 1 root root  89716 Feb 14  2016 cpio
    -rwxr-xr-x 1 root root  63768 Mär  1  2012 dash
    -rwxr-xr-x 1 root root  46792 Jan 26  2013 date
    -rwxr-xr-x 1 root root  42756 Jan 26  2013 dd
    -rwxr-xr-x 1 root root  55132 Jan 26  2013 df
    -rwxr-xr-x 1 root root  75864 Jan 26  2013 dir
    -rwxr-xr-x 1 root root  17988 Dez 11  2012 dmesg
    -rwxr-xr-x 1 root root  13904 Feb 16  2012 dnsdomainname
    -rwxr-xr-x 1 root root  13904 Feb 16  2012 domainname
    -rwxr-xr-x 1 root root  57780 Apr 30  2012 dumpkeys
    -rwxr-xr-x 1 root root  18016 Jan 26  2013 echo
    -rwxr-xr-x 1 root root 108572 Mai 13  2012 egrep
    -rwxr-xr-x 1 root root  13912 Jan 26  2013 false
    -rwxr-xr-x 1 root root   5604 Apr 30  2012 fgconsole
    -rwxr-xr-x 1 root root  83868 Mai 13  2012 fgrep
    -rwxr-xr-x 1 root root  30884 Dez 11  2012 findmnt
    -rwxr-xr-x 1 root root  22444 Feb  2  2013 fuser
    -rwsr-xr-- 1 root fuse  22064 Mai 21  2015 fusermount
    -rwxr-xr-x 1 root root  18388 Jun 14  2012 getfacl
    -rwxr-xr-x 1 root root 112676 Mai 13  2012 grep
    -rwxr-xr-x 1 root root   2251 Jun 20  2012 gunzip
    -rwxr-xr-x 1 root root   5937 Jun 20  2012 gzexe
    -rwxr-xr-x 1 root root  68148 Jun 20  2012 gzip
    -rwxr-xr-x 1 root root  13904 Feb 16  2012 hostname
    -rwxr-xr-x 1 root root 173000 Mär  2  2013 ip
    -rwxr-xr-x 1 root root   5600 Apr 30  2012 kbd_mode
    -rwxr-xr-x 1 root root  13948 Mär 28  2013 kill
    -rwxr-xr-x 1 root root  63584 Apr  7  2013 kmod
    lrwxrwxrwx 1 root root     21 Aug  9  2014 ksh -> /etc/alternatives/ksh
    -rwxr-xr-x 1 root root 100164 Jun 10  2012 less
    -rwxr-xr-x 1 root root   5596 Jun 10  2012 lessecho
    lrwxrwxrwx 1 root root      8 Jun 10  2012 lessfile -> lesspipe
    -rwxr-xr-x 1 root root  10376 Jun 10  2012 lesskey
    -rwxr-xr-x 1 root root   7745 Jun 10  2012 lesspipe
    -rwxr-xr-x 1 root root  34512 Jan 26  2013 ln
    -rwxr-xr-x 1 root root  78484 Apr 30  2012 loadkeys
    -rwxr-xr-x 1 root root  31044 Mai 26  2012 login
    -rwxr-xr-x 1 root root  46800 Feb  2 10:54 lowntfs-3g
    -rwxr-xr-x 1 root root  75864 Jan 26  2013 ls
    -rwxr-xr-x 1 root root  35244 Dez 11  2012 lsblk
    lrwxrwxrwx 1 root root      4 Apr  7  2013 lsmod -> kmod
    -rwxr-xr-x 1 root root  30408 Jan 26  2013 mkdir
    -rwxr-xr-x 1 root root  26252 Jan 26  2013 mknod
    -rwxr-xr-x 1 root root  30416 Jan 26  2013 mktemp
    -rwxr-xr-x 1 root root  26364 Dez 11  2012 more
    -rwsr-xr-x 1 root root  68268 Dez 11  2012 mount
    -rwxr-xr-x 1 root root   5600 Jul 18  2013 mountpoint
    lrwxrwxrwx 1 root root     20 Aug  9  2014 mt -> /etc/alternatives/mt
    -rwxr-xr-x 1 root root  43028 Feb 14  2016 mt-gnu
    -rwxr-xr-x 1 root root  75700 Jan 26  2013 mv
    -rwxr-xr-x 1 root root 121240 Jun 22  2012 nano
    lrwxrwxrwx 1 root root     20 Aug  9  2014 nc -> /etc/alternatives/nc
    -rwxr-xr-x 1 root root  18120 Jun 12  2012 nc.traditional
    lrwxrwxrwx 1 root root     24 Aug  9  2014 netcat -> /etc/alternatives/netcat
    -rwxr-xr-x 1 root root  84824 Sep  7  2012 netstat
    -rwxr-xr-x 1 root root  13904 Feb 16  2012 nisdomainname
    -rwxr-xr-x 1 root root  46816 Feb  2 10:54 ntfs-3g
    -rwxr-xr-x 1 root root   9772 Feb  2 10:54 ntfs-3g.probe
    -rwxr-xr-x 1 root root  46612 Feb  2 10:54 ntfs-3g.secaudit
    -rwxr-xr-x 1 root root  13816 Feb  2 10:54 ntfs-3g.usermap
    -rwxr-xr-x 1 root root  22084 Feb  2 10:54 ntfscat
    -rwxr-xr-x 1 root root  26128 Feb  2 10:54 ntfsck
    -rwxr-xr-x 1 root root  30276 Feb  2 10:54 ntfscluster
    -rwxr-xr-x 1 root root  30276 Feb  2 10:54 ntfscmp
    -rwxr-xr-x 1 root root  17912 Feb  2 10:54 ntfsdump_logfile
    -rwxr-xr-x 1 root root  34428 Feb  2 10:54 ntfsfix
    -rwxr-xr-x 1 root root  50772 Feb  2 10:54 ntfsinfo
    -rwxr-xr-x 1 root root  27236 Feb  2 10:54 ntfsls
    -rwxr-xr-x 1 root root  22048 Feb  2 10:54 ntfsmftalloc
    -rwxr-xr-x 1 root root  26180 Feb  2 10:54 ntfsmove
    -rwxr-xr-x 1 root root  30232 Feb  2 10:54 ntfstruncate
    -rwxr-xr-x 1 root root  38688 Feb  2 10:54 ntfswipe
    lrwxrwxrwx 1 root root      6 Apr 30  2012 open -> openvt
    -rwxr-xr-x 1 root root  13924 Apr 30  2012 openvt
    lrwxrwxrwx 1 root root     14 Jul 18  2013 pidof -> /sbin/killall5
    -rwsr-xr-x 1 root root  27424 Jan  2  2012 ping
    -rwsr-xr-x 1 root root  28196 Jan  2  2012 ping6
    -rwxr-xr-x 1 root root  67528 Mär 28  2013 ps
    -rwxr-xr-x 1 root root  22204 Jan 26  2013 pwd
    lrwxrwxrwx 1 root root      4 Okt 26 20:50 rbash -> bash
    -rwxr-xr-x 1 root root  30384 Jan 26  2013 readlink
    -rwxr-xr-x 1 root root  38612 Jan 26  2013 rm
    -rwxr-xr-x 1 root root  26256 Jan 26  2013 rmdir
    lrwxrwxrwx 1 root root      4 Jun 22  2012 rnano -> nano
    -rwxr-xr-x 1 root root  14144 Jun 28  2012 run-parts
    lrwxrwxrwx 1 root root     22 Aug  9  2014 rzsh -> /etc/alternatives/rzsh
    -rwxr-xr-x 1 root root  43128 Jun  1  2012 sed
    -rwxr-xr-x 1 root root  22588 Jun 14  2012 setfacl
    -rwxr-xr-x 1 root root  26388 Apr 30  2012 setfont
    -rwxr-xr-x 1 root root  30261 Dez 10  2012 setupcon
    lrwxrwxrwx 1 root root      4 Mär  1  2012 sh -> dash
    lrwxrwxrwx 1 root root      4 Mär  1  2012 sh.distrib -> dash
    -rwxr-xr-x 1 root root  18040 Jan 26  2013 sleep
    -rwxr-xr-x 1 root root  45724 Mär  2  2013 ss
    -rwxr-xr-x 1 root root  46772 Jan 26  2013 stty
    -rwsr-xr-x 1 root root  27000 Mai 26  2012 su
    -rwxr-xr-x 1 root root  18032 Jan 26  2013 sync
    -rwxr-xr-x 1 root root  13896 Dez 11  2012 tailf
    -rwxr-xr-x 1 root root 195300 Okt 31 16:20 tar
    -rwxr-xr-x 1 root root   5616 Jun 28  2012 tempfile
    -rwxr-xr-x 1 root root  38664 Jan 26  2013 touch
    -rwxr-xr-x 1 root root  13912 Jan 26  2013 true
    -rwxr-xr-x 1 root root   9720 Mai 21  2015 ulockmgr_server
    -rwsr-xr-x 1 root root  51332 Dez 11  2012 umount
    -rwxr-xr-x 1 root root  22136 Jan 26  2013 uname
    -rwxr-xr-x 1 root root   2251 Jun 20  2012 uncompress
    -rwxr-xr-x 1 root root   2762 Apr 30  2012 unicode_start
    -rwxr-xr-x 1 root root  75864 Jan 26  2013 vdir
    -rwxr-xr-x 1 root root    946 Jun 28  2012 which
    -rwxr-xr-x 1 root root  13904 Feb 16  2012 ypdomainname
    -rwxr-xr-x 1 root root   1939 Jun 20  2012 zcat
    -rwxr-xr-x 1 root root   1758 Jun 20  2012 zcmp
    -rwxr-xr-x 1 root root   5766 Jun 20  2012 zdiff
    -rwxr-xr-x 1 root root    121 Jun 20  2012 zegrep
    -rwxr-xr-x 1 root root    121 Jun 20  2012 zfgrep
    -rwxr-xr-x 1 root root   2133 Jun 20  2012 zforce
    -rwxr-xr-x 1 root root   5914 Jun 20  2012 zgrep
    -rwxr-xr-x 1 root root   2039 Jun 20  2012 zless
    -rwxr-xr-x 1 root root   2802 Jun 20  2012 zmore
    -rwxr-xr-x 1 root root   5049 Jun 20  2012 znew
    lrwxrwxrwx 1 root root     21 Aug  9  2014 zsh -> /etc/alternatives/zsh
    -rwxr-xr-x 1 root root 416412 Feb 29  2012 zsh4
    root@BaPi:/#
    Code:
    root@BaPi:/# ls -l /etc
    insgesamt 872
    drwxr-xr-x  3 root           root            4096 Jul 20  2015 acpi
    -rw-r--r--  1 root           root            2981 Aug  9  2014 adduser.conf
    -rw-r--r--  1 root           root              44 Feb  8 00:34 adjtime
    -rw-r--r--  1 root           root              63 Jul 20  2015 aliases
    -rw-r--r--  1 root           root           12288 Jul 20  2015 aliases.db
    drwxr-xr-x  2 root           root            4096 Okt 28 15:29 alternatives
    -rw-r--r--  1 root           root             401 Mai 23  2012 anacrontab
    drwxr-xr-x  3 root           root            4096 Jul 20  2015 apache2
    drwxr-xr-x  3 root           root            4096 Jul 20  2015 apm
    drwxr-xr-x 11 root           root            4096 Okt 25 17:18 apt
    -rw-r--r--  1 root           root             136 Sep  5  2014 asound.conf
    -rw-r--r--  1 root           root             428 Jul 21  2016 autoshutdown.conf
    drwxr-xr-x  2 root           root            4096 Jul 21  2016 autoshutdown.d
    -rw-r--r--  1 root           root            9250 Feb  9  2015 autoshutdown.default
    drwxr-xr-x  3 root           root            4096 Jul 20  2015 avahi
    -rw-r--r--  1 root           root               9 Jul 20  2015 bananian_platform
    -rw-r--r--  1 root           root               7 Apr  7  2015 bananian_version
    -rw-r--r--  1 root           root            1895 Jan  1  2013 bash.bashrc
    -rw-r--r--  1 root           root              45 Jun 17  2012 bash_completion
    drwxr-xr-x  2 root           root            4096 Nov  1 23:36 bash_completion.d
    -rw-r--r--  1 root           root             356 Mai 28  2014 bindresvport.blacklist
    -rw-r--r--  1 root           root             570 Feb  4 15:26 blkid.tab
    -rw-r--r--  1 root           root             570 Feb  4 15:26 blkid.tab.old
    drwxr-xr-x  3 root           root            4096 Aug  9  2014 ca-certificates
    -rw-r--r--  1 root           root            7873 Nov 19  2014 ca-certificates.conf
    -rw-r--r--  1 root           root            7134 Aug  9  2014 ca-certificates.conf.dpkg-old
    drwxr-xr-x  2 root           root            4096 Aug  9  2014 calendar
    drwxr-xr-x  2 root           root            4096 Sep 29 14:11 collectd
    drwxr-xr-x  2 root           root            4096 Sep  5  2014 console-setup
    drwxr-xr-x 10 root           root            4096 Jul 20  2015 cron-apt
    drwxr-xr-x  2 root           root            4096 Feb  9 14:18 cron.d
    drwxr-xr-x  2 root           root            4096 Jan 10 22:27 cron.daily
    drwxr-xr-x  2 root           root            4096 Jul 20  2015 cron.hourly
    drwxr-xr-x  2 root           root            4096 Jul 20  2015 cron.monthly
    -rw-r--r--  1 root           root             722 Jul  3  2012 crontab
    drwxr-xr-x  2 root           root            4096 Nov  1 23:36 cron.weekly
    drwxr-xr-x  4 root           root            4096 Jul 20  2015 dbus-1
    -rw-r--r--  1 root           root            2969 Dez 26  2012 debconf.conf
    -rw-r--r--  1 root           root               5 Mai 22  2016 debian_version
    drwxr-xr-x  2 root           root            4096 Feb  3 15:42 default
    -rw-r--r--  1 root           root             604 Mai 15  2012 deluser.conf
    drwxr-xr-x  4 root           root            4096 Jul 20  2015 dhcp
    drwxr-xr-x  3 root           root            4096 Jul 20  2015 dhcp3
    drwxr-xr-x  4 root           root            4096 Jun  4  2016 dpkg
    -rw-r--r--  1 root           root               0 Aug  9  2014 environment
    -rw-r--r--  1 root           root             162 Okt 24 23:53 exports
    -rw-r--r--  1 root           root              20 Feb  9 20:24 fake-hwclock.data
    drwxr-xr-x  3 root           root            4096 Jul 20  2015 folder2ram
    drwxr-xr-x  4 root           root            4096 Sep 29 14:11 fonts
    -rw-r--r--  1 root           root             668 Okt 25 01:39 fstab
    drwxr-xr-x  2 root           root            4096 Dez 11  2012 fstab.d
    -rw-r--r--  1 root           root             132 Mai 19  2015 ftpusers
    -rw-r-----  1 root           fuse             216 Mai 21  2015 fuse.conf
    -rw-r--r--  1 root           root            2940 Mai 28  2014 gai.conf
    drwxr-xr-x  2 root           root            4096 Aug  9  2014 groff
    -rw-r--r--  1 root           root             785 Feb  3 15:49 group
    -rw-------  1 root           root             771 Feb  3 15:47 group-
    -rw-r-----  1 root           shadow           661 Feb  3 15:49 gshadow
    -rw-------  1 root           root             651 Feb  3 15:47 gshadow-
    -rw-r--r--  1 root           root             834 Jun  8  2012 gssapi_mech.conf
    drwxr-xr-x  2 root           root            4096 Jun  4  2016 gtk-2.0
    -rw-r--r--  1 root           root             127 Jul 22  2016 hdparm.conf
    -rw-r--r--  1 root           root               9 Aug  7  2006 host.conf
    -rw-r--r--  1 root           root               5 Jun  2  2016 hostname
    -rw-r--r--  1 root           root             156 Aug  9  2014 hosts
    -rw-r--r--  1 root           root             580 Aug  9  2014 hosts.allow
    -rw-r--r--  1 root           root             880 Aug  9  2014 hosts.deny
    -rw-r--r--  1 root           root             214 Mai 11  2013 idmapd.conf
    drwxr-xr-x  3 root           root            4096 Jan 10  2015 ifplugd
    drwxr-xr-x  2 root           root            4096 Jul 20  2015 init
    drwxr-xr-x  2 root           root            4096 Feb  9 14:18 init.d
    -rw-r--r--  1 root           root            2080 Sep  3  2014 inittab
    -rw-r--r--  1 root           root            1721 Dez 30  2012 inputrc
    drwxr-xr-x  3 root           root            4096 Nov 24  2012 insserv
    -rw-r--r--  1 root           root             859 Nov 24  2012 insserv.conf
    drwxr-xr-x  2 root           root            4096 Jul 20  2015 insserv.conf.d
    drwxr-xr-x  2 root           root            4096 Aug  9  2014 iproute2
    -rw-r--r--  1 root           root             577 Feb  9 20:24 issue
    -rw-r--r--  1 root           root              19 Jul  7  2014 issue.net
    drwxr-xr-x  2 root           root            4096 Sep  5  2014 kbd
    drwxr-xr-x  6 root           root            4096 Apr  7  2015 kernel
    drwxr-xr-x  2 root           root            4096 Jun  4  2016 ldap
    -rw-r--r--  1 root           root           22738 Feb  3 15:42 ld.so.cache
    -rw-r--r--  1 root           root              34 Aug  9  2014 ld.so.conf
    drwxr-xr-x  2 root           root            4096 Jun  2  2016 ld.so.conf.d
    drwxr-xr-x  2 root           root            4096 Jan 10  2015 libnl-3
    -rw-r--r--  1 root           root            2570 Jul  8  2014 locale.alias
    -rw-r--r--  1 root           root            8566 Jun  2  2016 locale.gen
    -rw-r--r--  1 root           root            2309 Dez 10 00:31 localtime
    drwxr-xr-x  4 root           root            4096 Jul 20  2015 logcheck
    -rw-r--r--  1 root           root           10185 Mai 26  2012 login.defs
    -rw-r--r--  1 root           root             599 Feb 19  2009 logrotate.conf
    drwxr-xr-x  2 root           root            4096 Feb  9 14:18 logrotate.d
    -rw-r--r--  1 root           root              41 Apr 23  2014 lsb-base-logging.sh
    drwxr-xr-x  2 root           root            4096 Jul 20  2015 lvm
    -rw-r--r--  1 root           root             111 Mär 18  2015 magic
    -rw-r--r--  1 root           root             111 Mär 18  2015 magic.mime
    -rw-r--r--  1 root           root            2083 Dez 15 15:21 mailcap
    -rw-r--r--  1 root           root             449 Dez 21  2014 mailcap.order
    -rw-r--r--  1 root           root             125 Dez 15  2014 mail.rc
    -rw-r--r--  1 root           root            5173 Jun 19  2012 manpath.config
    drwxr-xr-x  2 root           root            4096 Jul 20  2015 mc
    drwxr-xr-x  2 root           root            4096 Jul 20  2015 mdadm
    -rw-r--r--  1 root           root           24269 Dez 21  2014 mime.types
    -rw-r--r--  1 root           root             956 Mär 21  2013 mke2fs.conf
    drwxr-xr-x  2 root           root            4096 Aug  9  2014 modprobe.d
    -rw-r--r--  1 root           root             287 Jul 20  2015 modules
    drwxr-xr-x  5 root           root            4096 Dez 15 15:21 monit
    -rw-r--r--  1 root           root             396 Nov 19  2014 motd
    lrwxrwxrwx  1 root           root              12 Jan  1  2010 mtab -> /proc/mounts
    -rw-r--r--  1 root           root            8453 Jun 22  2012 nanorc
    -rw-r--r--  1 root           root             767 Mai  2  2011 netconfig
    drwxr-xr-x  6 root           root            4096 Jul 20  2015 network
    -rw-r--r--  1 root           root              60 Aug  9  2014 networks
    drwxr-xr-x  6 root           root            4096 Jul 20  2015 nginx
    -rw-r--r--  1 root           root             524 Jul 20  2015 nsswitch.conf
    -rw-r--r--  1 root           root             713 Jul 18  2016 ntp.conf
    -rw-r--r--  1 root           root             713 Jul  9  2016 ntp.conf2
    drwxr-xr-x  2 root           root            4096 Jul 20  2015 omvextras
    drwxr-xr-x  2 root           root            4096 Feb  9 14:18 omv-support.d
    drwxr-xr-x  2 openmediavault openmediavault  4096 Feb  3 15:47 openmediavault
    drwxr-xr-x  2 root           root            4096 Aug  9  2014 opt
    -rw-r--r--  1 root           root             250 Jul  7  2014 os-release
    -rw-r--r--  1 root           root             552 Apr 29  2012 pam.conf
    drwxr-xr-x  2 root           root            4096 Jan 10 22:26 pam.d
    -rw-r--r--  1 root           root            2102 Feb  3 15:50 passwd
    -rw-------  1 root           root            2099 Feb  3 15:49 passwd-
    drwxr-xr-x  4 root           root            4096 Aug  2  2016 perl
    drwxr-xr-x  7 root           root            4096 Jul 20  2015 php5
    drwxr-xr-x  5 root           root            4096 Jul 20  2015 pm
    drwxr-xr-x  3 root           root            4096 Jul 20  2015 postfix
    drwxr-xr-x  4 root           root            4096 Jul 20  2015 ppp
    -rw-r--r--  1 root           root            1168 Jun  2  2016 profile
    drwxr-xr-x  2 root           root            4096 Jul 20  2015 profile.d
    drwxr-xr-x  3 root           root            4096 Jul 20  2015 proftpd
    -rw-r--r--  1 root           root            2933 Mai 14  2012 protocols
    drwxr-xr-x  2 root           root            4096 Jul 20  2015 python3
    drwxr-xr-x  2 root           root            4096 Jul 20  2015 python3.2
    -rw-r--r--  1 root           root             220 Mär 18  2013 quotagrpadmins
    -rw-r--r--  1 root           root             526 Mär 18  2013 quotatab
    drwxr-xr-x  2 root           root            4096 Sep 30 20:12 rc0.d
    drwxr-xr-x  2 root           root            4096 Sep 30 20:12 rc1.d
    drwxr-xr-x  2 root           root            4096 Nov 20 00:04 rc2.d
    drwxr-xr-x  2 root           root            4096 Nov 20 00:04 rc3.d
    drwxr-xr-x  2 root           root            4096 Nov 20 00:04 rc4.d
    drwxr-xr-x  2 root           root            4096 Nov 20 00:04 rc5.d
    drwxr-xr-x  2 root           root            4096 Sep 30 20:12 rc6.d
    -rwxr-xr-x  1 root           root            1341 Jun  2  2016 rc.local
    drwxr-xr-x  2 root           root            4096 Jul 20  2015 rcS.d
    lrwxrwxrwx  1 root           root              31 Jul 20  2015 resolv.conf -> /etc/resolvconf/run/resolv.conf
    drwxr-xr-x  5 root           root            4096 Jul 20  2015 resolvconf
    -rwxr-xr-x  1 root           root             268 Jan  2  2013 rmt
    -rw-r--r--  1 root           root             887 Mai 14  2012 rpc
    -rw-r--r--  1 root           root            2637 Mär  9  2015 rsyslog.conf
    drwxr-xr-x  2 root           root            4096 Nov  1 23:36 rsyslog.d
    drwxr-xr-x  2 root           root            4096 Jan 10 22:27 samba
    -rw-r--r--  1 root           root            3663 Sep 16  2012 screenrc
    -rw-r--r--  1 root           root            3964 Mai 26  2012 securetty
    drwxr-xr-x  4 root           root            4096 Aug  9  2014 security
    drwxr-xr-x  2 root           root            4096 Aug  9  2014 selinux
    -rw-r--r--  1 root           root           10344 Okt  2  2013 sensors3.conf
    drwxr-xr-x  2 root           root            4096 Jul 20  2015 sensors.d
    -rw-r--r--  1 root           root           19398 Mai 14  2012 services
    -rw-r-----  1 root           shadow          1528 Feb  3 15:50 shadow
    -rw-------  1 root           root            1404 Feb  3 15:47 shadow-
    -rw-r--r--  1 root           root             111 Jul 20  2015 shells
    drwxr-xr-x  2 root           root            4096 Okt 28 15:29 skel
    -rw-r--r--  1 root           root             205 Jun  4  2016 smartd.conf
    drwxr-xr-x  3 root           root            4096 Jul 20  2015 smartmontools
    drwxr-xr-x  2 root           root            4096 Jul 20  2015 snmp
    drwxr-xr-x  2 root           root            4096 Sep 29 14:11 ssh
    drwxr-xr-x  4 root           root            4096 Feb  3 15:42 ssl
    -rw-r--r--  1 root           root             771 Jun  9  2012 staff-group-for-usr-local
    -r--r-----  1 root           root             708 Okt 22 02:10 sudoers
    drwxr-xr-x  2 root           root            4096 Nov 20 00:04 sudoers.d
    -rw-r--r--  1 root           root            2123 Aug  9  2014 sysctl.conf
    drwxr-xr-x  2 root           root            4096 Nov  1 23:36 sysctl.d
    drwxr-xr-x  2 root           root            4096 Jul 21  2016 sysstat
    drwxr-xr-x  3 root           root            4096 Aug  9  2014 systemd
    drwxr-xr-x  2 root           root            4096 Aug  9  2014 terminfo
    -rw-r--r--  1 root           root              14 Dez 10 00:31 timezone
    -rw-r--r--  1 root           root            1260 Mai 30  2008 ucf.conf
    drwxr-xr-x  4 root           root            4096 Aug  9  2014 udev
    drwxr-xr-x  3 root           root            4096 Aug  9  2014 ufw
    drwxr-xr-x  2 root           root            4096 Nov 28 22:49 vim
    -rw-r--r--  1 root           root             314 Mär 18  2013 warnquota.conf
    -rw-r--r--  1 root           root             168 Jul 20  2015 watchdog.conf
    -rw-r--r--  1 root           root            4496 Feb  2  2014 wgetrc
    drwxr-xr-x  2 root           root            4096 Jun  2  2016 wpa_supplicant
    drwxr-xr-x  3 root           root            4096 Sep  5  2014 X11
    drwxr-xr-x  2 root           root            4096 Aug  9  2014 zsh
    root@BaPi:/#
    Code:
    root@BaPi:/# ls -l /home
    insgesamt 4
    drwxr-xr-x 2 test3 test3 4096 Feb  3 15:49 test3
    root@BaPi:/#

  13. #13
    Elefantenversteher Avatar von florian0285
    Registriert seit
    Jun 2016
    Beiträge
    1.054
    Zitat Zitat von MarkT Beitrag anzeigen
    OMV habe ich von SimpleNAS.com als Image geladen. Ich habe also *nicht* zuerst Linux installiert und danach OMV aus einem Paket.
    OK so wie ich das erkenne hast du das BETA Image geladen? Grundsätzlich muss man hier mit Fehlern rechnen. Die Seite hat ein Contact-Formular und verweist auf selbst auf das OMV Forum. Also wenn das nicht gelöst wird solltest du dich dann dort mal hinwenden bzw. das ganze basiert auf Bananian, also ggf. auf bananian.org.

    Da das für mich aber größtenteils Böhmische Dörfer sind, habe ich irgendwann aufgegeben.
    Vielleicht schnappst du dir mal ein (open) Buch oder durchwühlst ein online Wiki um dömische Dörfer in deine Homezone zu verwandeln.

    Der 3. Link ist neu für mich. Bei der Linuxinstallation mit dem gleichen Problem wie bei mir war ein falscher Eigentümer für / eingetragen, wenn ich das richtig verstehe. Das scheint bei mir nicht der Fall zu sein.
    Es wird dort unter anderem nach /usr/bin/bash gefragt. Das gibt es bei mir nicht.
    Das ist richtig bei dir stimmt das aber mit "/bin/bash" schon.

    Soll ich "ls -l" von allen Ordnern der 1. Unterebene machen, oder nur von ausgewählten Verzeichnissen?
    Eigentlich nur von den Pfaden und Dateien, die "ldd /bin/bash" ausspuckt. (Im askubuntu Link genauer beschrieben - Punkt 4 Check permissions of libraries and their parent folders, you can get list using ldd)

    Dabei fällt folgendes auf:
    Code:
    root@BaPi:/# ls -l
    ...
    drwx------  14 BackUpCP test3      4096 Sep 30 20:07 lib
    ...
    Die BASH möchte in /lib als User test3 auf bestimmte Library's zugreifen. Darf sie aber nicht, da nur root und BackUpCP das dürfen.
    Diese Berechtigung auf "/lib" ist auch nicht üblich und wurde von dir? so gesetzt?

    Code:
    chown root:root /lib
    chmod 755 /lib
    Das sollte für die 1. Ebene helfen, dann solltest du noch überprüfen ob das jetzt auch rekursiv "falsch" durchgedrückt wurde oder nicht.
    Wenn ich das bei meinem RPi mal mit "ls -laR" so grob überfliege sollten alle Dateien und Ordner root:root als Eigentümer haben. Dateien haben die Berechtigungen 744 und Ordner 755. Is aber nur grob überflogen. Ob da vereinzelt was anders sein muss kann ich für dein System nicht zu 100% sagen.
    Geändert von florian0285 (11.02.17 um 12:30 Uhr)
    Matthäus 7:3 Was siehst du aber den Splitter in deines Bruders Auge, und wirst nicht gewahr des Balkens in deinem Auge?

  14. #14
    Registrierter Benutzer
    Registriert seit
    Feb 2017
    Beiträge
    19
    Hallo Florian,

    entschuldige bitte die späte Antwort, aber in der Woche war ich komplett eingespannt.

    Ich habe bei SimpleNAS.com keine BETA geladen, sondern die "stable"-Version, also OMV2.1, die nur auf Debian Wheezy läuft.
    Durch die Updates ist es nun OMV 2.2.13 und Linux 3.4.108+


    Dabei fällt folgendes auf:
    Code:
    Code:
    root@BaPi:/# ls -l
    ...
    drwx------  14 BackUpCP test3      4096 Sep 30 20:07 lib
    ...
    Das ist mir auch schon aufgefallen. Ob ich daran mal rumgefummelt habe, kann ich dir nicht sagen, denn dazu habe schon zu viele ergoogelte Tipps aus Foren ausprobiert. Ich bin mir aber sicher, dass nicht daran rumgefummelt habe, *bevor* ich die Anmeldeprobleme hatte, denn erst deswegen habe ich angefangen mir Besitz und Rechte anzusehen. Den Benutzer "BackUpCP" habe ich mit dem Frontend von OMV erstellt.

    Es handelt sich hierbei aber wohl die Ursache des Problems.

    Ich habe ausgeführt:
    Code:
    chown root:root /lib
    chmod 755 /lib
    chown root:root /lib/modules
    chmod 755 /lib/modules
    chown root:root /lib/firmware
    chmod 755 /lib/firmware
    Nun kann ich mich als "test3" anmelden.
    VIELEN DANK. Das hat mich schon viel Stunden Sucherei gekostet.

    In /lib habe ich noch weitere Ordner gefunden, die nicht root gehören. Z.B.:

    Code:
    drwxr-xr-x 3 root     root  4096 Apr  7  2015 3.4.104-bananian
    drwx------ 3 BackUpCP test3 4096 Mär  4  2016 3.4.108+
    test3@BaPi:/lib/modules$
    Das werde ich nachher mal durchforsten und korrigieren, soweit es mir logisch erscheint.

Ähnliche Themen

  1. Anmeldung im Grafikmodus nur als root möglich
    Von f.gruber im Forum X-Konfiguration
    Antworten: 9
    Letzter Beitrag: 10.08.07, 07:13
  2. Keine Anmeldung als "root" möglich (Ubuntu 6.06 server)
    Von Milly im Forum Linux als Server
    Antworten: 3
    Letzter Beitrag: 25.07.07, 17:56
  3. Keine Root-Anmeldung unter KDE- 3.4 möglich
    Von TAOD im Forum Windowmanager
    Antworten: 5
    Letzter Beitrag: 20.04.05, 13:51
  4. Antworten: 2
    Letzter Beitrag: 28.04.04, 17:10
  5. keine Anmeldung möglich !?
    Von im Forum Router und Netzaufbau
    Antworten: 1
    Letzter Beitrag: 05.02.01, 09:32

Stichworte

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •