[Debian] rm: cannot remove keyboard: Operation not permitt

Pagina: 1
Acties:

Onderwerpen


Acties:
  • 0 Henk 'm!

  • Olaf van der Spek
  • Registratie: September 2000
  • Niet online
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# rm /etc/default/keyboard
rm: cannot remove ‘/etc/default/keyboard’: Operation not permitted

drwxr-xr-x 85 root root 4096 Jun 18 12:01 /etc
drwxr-xr-x  2 root root 4096 Jun 18 14:27 /etc/default
-rw-r--r--  1 root root   70 Dec 11  2014 /etc/default/keyboard

Setting up keyboard-configuration (1.123) ...
/var/lib/dpkg/info/keyboard-configuration.postinst: 102: /var/lib/dpkg/info/keyboard-configuration.postinst: cannot create /etc/default/keyboard: Permission denied

Linux h 3.8.13-xxxx-grs-ipv6-64-vps #2 SMP Fri May 17 05:56:23 CEST 2013 x86_64 GNU/Linux (OVH VPS)

# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        23G  3.4G   19G  16% /
devtmpfs        3.9G     0  3.9G   0% /dev
tmpfs           798M  220K  798M   1% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           2.0G     0  2.0G   0% /dev/shm


Niks bijzonders in dmesg, syslog.. ik weet het niet meer. Heeft iemand een idee?

Acties:
  • 0 Henk 'm!

  • Olaf van der Spek
  • Registratie: September 2000
  • Niet online
Toch weer opgelost, geen idee waarom het immutable attribute was gezet.

code:
1
2
3
4
# lsattr keyboard
----i----------- keyboard

# chattr -i keyboard

Acties:
  • 0 Henk 'm!

  • 0xDEADBEEF
  • Registratie: December 2003
  • Niet online
GNU's ls is kreupel :) wat je mist is -o
-o Include the file flags in a long (-l) output. See chflags(1) for
a list of file flags and their meanings.

"Religion is an insult to human dignity. With or without it you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion." - Steven Weinberg


Acties:
  • 0 Henk 'm!

  • Kees
  • Registratie: Juni 1999
  • Laatst online: 15:08

Kees

Serveradmin / BOFH / DoC
Olaf van der Spek schreef op vrijdag 19 juni 2015 @ 14:14:
Toch weer opgelost, geen idee waarom het immutable attribute was gezet.

code:
1
2
3
4
# lsattr keyboard
----i----------- keyboard

# chattr -i keyboard
Dat was mijn allereerste gedachte, te vaak tegenaan gelopen (meestal mijn eigen schuld omdat ik dan in het verleden een stom programma wilde beletten die file aan te passen ;))

"Een serveradmin, voluit een serveradministrator, is dan weer een slavenbeheerder oftewel een slavendrijver" - Rataplan