This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

WTF: root darf nix *confusion*

German community

Moderators: b0ssman, apollo567, Princo, crowi

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
Digi-Quick
Advanced User
Advanced User
Posts: 198
Joined: 19 Jul 2013 04:21
Status: Offline

WTF: root darf nix *confusion*

Post by Digi-Quick »

Moin,
wollte gerade das Plex Verzeichnis löschen, da Plex keine Mediendaten findet - also nicht funzt.
Geht nicht, weil einige Dateien nicht gelöscht werden können.

NAS4Free 10.2.0.2 - Prester (revision 2118)
die Startup-Commands für Finch sind gelöscht, folglich ist Plex nicht aktiv.

z.B.
.../Plex/bin/rcp
Owner = Root
Rechte = 555

chmod 777 auf die Datei wird mit "Operation not Permitted" abgelehnt.

User avatar
crowi
Forum Moderator
Forum Moderator
Posts: 1176
Joined: 21 Feb 2013 16:18
Location: Munich, Germany
Status: Offline

Re: WTF: root darf nix *confusion*

Post by crowi »

bist du als root oder als admin eingeloggt?
NAS 1: Milchkuh: Asrock C2550D4I, Intel Avoton C2550 Quad-Core, 16GB DDR3 ECC, 5x3TB WD Red RaidZ1 +60 GB SSD for ZIL/L2ARC, APC-Back UPS 350 CS, NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded

Digi-Quick
Advanced User
Advanced User
Posts: 198
Joined: 19 Jul 2013 04:21
Status: Offline

Re: WTF: root darf nix *confusion*

Post by Digi-Quick »

via ssh als root

User avatar
crowi
Forum Moderator
Forum Moderator
Posts: 1176
Joined: 21 Feb 2013 16:18
Location: Munich, Germany
Status: Offline

Re: WTF: root darf nix *confusion*

Post by crowi »

NAS 1: Milchkuh: Asrock C2550D4I, Intel Avoton C2550 Quad-Core, 16GB DDR3 ECC, 5x3TB WD Red RaidZ1 +60 GB SSD for ZIL/L2ARC, APC-Back UPS 350 CS, NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded

Digi-Quick
Advanced User
Advanced User
Posts: 198
Joined: 19 Jul 2013 04:21
Status: Offline

Re: WTF: root darf nix *confusion*

Post by Digi-Quick »

setfacl geht auch nicht

Code: Select all

getfacl rcp
# file: rcp
# owner: root
# group: wheel
user::r-x
group::r-x
other::r-x

setfacl -m owner@:rwxp--aARWcCos:fd----:allow rcp
setfacl: rcp: branding mismatch; existing ACL is POSIX.1e, entry to be merged is NFSv4

setfacl -b rcp
setfacl: rcp: acl_set_file() failed: Operation not permitted

User avatar
crowi
Forum Moderator
Forum Moderator
Posts: 1176
Joined: 21 Feb 2013 16:18
Location: Munich, Germany
Status: Offline

Re: WTF: root darf nix *confusion*

Post by crowi »

kannst Du das Verzeichnis über den filemanager aus der WebGUI löschen?
NAS 1: Milchkuh: Asrock C2550D4I, Intel Avoton C2550 Quad-Core, 16GB DDR3 ECC, 5x3TB WD Red RaidZ1 +60 GB SSD for ZIL/L2ARC, APC-Back UPS 350 CS, NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded

marcel
Starter
Starter
Posts: 28
Joined: 04 Jan 2015 00:34
Status: Offline

Re: WTF: root darf nix *confusion*

Post by marcel »

Was sagt denn?
ls -ro rcp
Sollte "schg" (Unveränderbar) drin stehen, ist das die Lösung:
chflags -R noschg rcp
Case: CFI-A6039
Board: Supermicro X10SBA - x64-embedded auf Intel(R) Celeron(R) CPU J1900 @ 1.99GHz
RAM: 1 x 8 GB Kingston
HDD: 4 x 2 TB Western Red (RaidZ1) - 1 x 1 TB Western Green (Stripe)
SSD: 1 x 64 GB Crucial SSD (Cache für RaidZ1) - 1 x 250 GB SanDisk SSD (Stripe für jails)

Digi-Quick
Advanced User
Advanced User
Posts: 198
Joined: 19 Jul 2013 04:21
Status: Offline

Re: WTF: root darf nix *confusion*

Post by Digi-Quick »

Code: Select all

ls -ro rcp
hatte nur rcp rot unterlegt ausgegeben, hatte daraufhin

Code: Select all

chflags -R noschg rcp
getestet, danach konnte ich die Dazei löschen!

Code: Select all

find /mnt/..../Plex -type f -exec chflags -R noschg {} \;
hat's letztendlich gerichtet

Daraus folgt es gibt nicht nur Unix Rechte (RWX) und (Windows-) ACLs sondern auch noch Flags, die das ganze aushebeln.
da soll noch einer Durchsteigenm, vor allem warum macht das Installationsscript von Plex sowas?

Post Reply

Return to “Deutsch”