0 Members and 1 Guest are viewing this topic.
~$ cat /etc/passwd | grep 501<user>@<pc>:~$
...Ich setzte das mal mit find und chown auf root zurück, mal sehen ob das reicht.
bei mir ist besitzer root.
Letztes update ist aber auch schon ein paar tage her ....
cas@lifo:/etc$ ls -l /usr/local/insgesamt 32drwxrwsr-x 2 root staff 4096 Dez 31 2013 bindrwxrwsr-x 2 root staff 4096 Dez 31 2013 etcdrwxrwsr-x 2 root staff 4096 Dez 31 2013 gamesdrwxrwsr-x 2 root staff 4096 Dez 31 2013 includedrwxrwsr-x 8 root staff 4096 Jun 5 00:24 liblrwxrwxrwx 1 root staff 9 Dez 31 2013 man -> share/mandrwxrwsr-x 2 root staff 4096 Dez 31 2013 sbindrwxrwsr-x 9 root staff 4096 Jun 5 00:24 sharedrwxrwsr-x 2 root staff 4096 Dez 31 2013 src
man chown says ":". Never seen "user.group", but who knows.
re you sure *all* directories and files in /usr belong to root? If so, you could achive this much easier: chown -R root:root /usr
...Here a "find /etc" took 12 sec, where I have many files in /etc because of etckeeper.Greetings, C
Are you sure *all* directories and files in /usr belong to root?...
ls -lan /usrinsgesamt 176drwxr-xr-x 10 0 0 4096 Jan 8 2014 .drwxr-xr-x 22 0 0 4096 Aug 19 08:34 ..drwxr-xr-x 2 0 0 69632 Aug 20 08:00 bindrwxr-xr-x 2 0 0 4096 Mai 6 2013 gamesdrwxr-xr-x 32 0 0 20480 Aug 18 10:21 include drwxr-xr-x 102 0 0 36864 Aug 19 09:36 lib drwxrwsr-x 10 0 50 4096 Jan 8 2014 local drwxr-xr-x 2 0 0 12288 Aug 19 09:41 sbin drwxr-xr-x 216 0 0 12288 Aug 19 09:41 share drwxr-xr-x 7 0 0 4096 Aug 19 08:33 src ls -lan /usr/localinsgesamt 40drwxrwsr-x 10 0 50 4096 Jan 8 2014 .drwxr-xr-x 10 0 0 4096 Jan 8 2014 ..drwxrwsr-x 2 0 50 4096 Dez 31 2013 bindrwxrwsr-x 2 0 50 4096 Dez 31 2013 etcdrwxrwsr-x 2 0 50 4096 Dez 31 2013 gamesdrwxrwsr-x 2 0 50 4096 Dez 31 2013 includedrwxrwsr-x 7 0 50 4096 Jun 6 10:14 liblrwxrwxrwx 1 0 50 9 Dez 31 2013 man -> share/mandrwxrwsr-x 2 0 50 4096 Dez 31 2013 sbindrwxrwsr-x 8 0 50 4096 Jun 6 10:14 sharedrwxrwsr-x 2 0 50 4096 Dez 31 2013 src
... As I just found out (http://www.jux-net.info/jux2/docs/sys100/comm_26.html) chown user.group seems to be vaild too. ...
$ info coreutils 'chown invocation'
Some older scripts may still use `.' in place of the `:' separator.POSIX 1003.1-2001 (*note Standards conformance::) does not requiresupport for that, but for backward compatibility GNU `chown' supports`.' so long as no ambiguity results. New scripts should avoid the useof `.' because it is not portable, and because it has undesirableresults if the entire OWNER`.'GROUP happens to identify a user whosename contains `.'.
Quote from: michaa7 on 2014/08/19, 22:32:08Are you sure *all* directories and files in /usr belong to root?...Here on 32bit all but /usr/local belong to root:root, while local and the dirs inside belong to root:staff (0 50).