Debian: chgrp не делает работ правильно над домашней папкой

Вы хотите переключить три раза и пройти полный код $ @

:

do_test () {
  function_under_test=$1;shift
  line_number=$1;shift
  expected="$1";shift
  echo "ppppppppp" $@
  $function_under_test "$@"
  if [ $result -eq $expected ]; then
    printf '.'
  else
    printf 'F'
    error_messages=$error_messages"Call to '$function_under_test $param1' failed: $result was not equal to $expected at line $line_number\n"
  fi
}
0
29.09.2014, 21:08
1 ответ

Я думаю, что вы запутаете первую 2 с вашим пользователем 2 . Первый 2 2 представляет общее количество жестких ссылок, а затем второе 2 - ваше пользователю, а затем имя группы BIN, либо 34 после изменения. Вот объяснение того, что вы видите:

  +-permissions that apply to the owner
  |
  |     +-permissions that apply to all other users
  |     |
  |     |  +-number of hard links
  |     |  |
  |     |  |         +-size      +-last modification date and time
 _|_   _|_ |       __|__    _____|_______
drwxr-xr-x 2 2 bin 4096     Sep 29  13:09 share
    ___      _ ___                        _____
     |       |  |                           |
     |       |  |                           +-name of file or directory
     |       |  |
     |       |  +-the group that the group permissions applies to
     |       |
     |       +-owner
     |
     +-permissions that apply to users who are members of the group
1
28.01.2020, 02:52

Теги

Похожие вопросы