Форум Академгородка, Новосибирск > Изменение владельца раздела NTFS
Помощь - Поиск - Пользователи - Календарь
Полная версия этой страницы: Изменение владельца раздела NTFS
Форум Академгородка, Новосибирск > Компьютеры и сети > Операционные системы > Unix
Роман14
Проблема-не меняет владельца.Драйвер -NTFS-3G.Юзаю: chown -hR %username% /home/disk1
Из под рута,ясен пень...
По логам-всё ок,а на деле-фуй
longbow
cat /etc/fstab?
Роман14
Цитата(longbow @ 31.10.2010, 2:26) *
cat /etc/fstab?

Код
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda1 during installation
UUID=ff409f69-ac91-4fcf-8019-f8383696850f /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda6 during installation
UUID=d4e80925-af1e-413f-9fd7-1da0dd370f16 none            swap    sw              0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0       0
UUID=5ABC72FCBC72D1CD /media/sdb1 ntfs-3g defaults,locale=ru_RU.UTF-8  0       1

lost_shadow
Все файлы ntfs-3g-раздела будут принадлежать тому пользователю, с правами которого осуществлялось монтирование. Существует дополнение к драйверу с названием advanced ntfs-3g, которое в частности то, чего ты желаешь. По какой-то причине в дистрибутивы этот драйвер обычно не входит. Наверное, следует использовать его с осторожностью.
Роман14
Ладно,поставим вопрос иначе.
Нужно поставить RO на один из файлов.
Из фильма
Цитата(Роман14 @ 01.11.2010, 9:30) *
Ладно,поставим вопрос иначе.
Нужно поставить RO на один из файлов.


chattr?
Zebooka
Цитата(Из фильма @ 01.11.2010, 11:36) *
Цитата(Роман14 @ 01.11.2010, 9:30) *
Ладно,поставим вопрос иначе.
Нужно поставить RO на один из файлов.


chattr?

chattr - change file attributes on a Linux file system
в данном случае - NTFS.

Никак аттрибуты не поменять на отдельный файл, кроме как использовать другой драйвер, который это поддерживает.
В Юбанте 10.10 появилась другая неприятная фишка - на NTFS разделе теперь все файлы RW (без Х) и линуксовые скрипты или вайновые проги не запускаются с флешки (вайновые можно обойти - нужно сказать "открывать используя мое приложение" и написать wine laugh.gif )
iDamir
man ntfs-3g

Код
...
OPTIONS
       Below is a summary of the options that ntfs-3g accepts.
      
       uid=value and gid=value
              Set  the  owner  and the group of files and directories. The values are numerical.  The defaults are the uid
              and gid of the current process.
      
       umask=value
              Set the  bitmask of the file and directory permissions that are not present. The value is  given  in  octal.
              The default value is 0 which means full access to everybody.
      
       fmask=value
              Set  the   bitmask  of  the file permissions that are not present.  The value is given in octal. The default
              value is 0 which means full access to everybody.
      
       dmask=value
              Set the  bitmask of the directory permissions that are not present. The value is given in octal. The default
              value is 0 which means full access to everybody.
      
       usermapping=file-name
              Use  file  file-name  as  the  user  mapping  file instead of the default .NTFS-3G/UserMapping. If file-name
              defines a full path, the file must be located on a partition previously mounted. If it  defines  a  relative
              path, it is interpreted relative to the root of NTFS partition being mounted.
              
              When  a  user  mapping  file  is  defined,  the  options uid=, gid=, umask=, fmask=, dmask= and dsilent= are
              ignored.
      
       default_permissions
              Use standard access control. This option requires either a user mapping file to be present, or  the  options
              uid=  and  gid= of a user to be defined. This option is set by default when a user mapping file or an owner‐
              ship related option is present.
              
       inherit
              When creating a new file, set its initial ownership and protections according to inheritance  rules  defined
              in  parent  directory. These rules deviate from Posix specifications, but yield a better Windows compatibil‐
              ity. A valid user mapping file is required for this option to be effective.
...
lost_shadow
Цитата(Роман14 @ 01.11.2010, 8:30) *
Нужно поставить RO на один из файлов.


Я думаю, что это невозможно.
Zebooka
Цитата(iDamir @ 02.11.2010, 19:38) *
man ntfs-3g

Прежде чем кидаться манами, следует внимательно прочитать топик.

Если же ман в ответ на моё сообщение о 10.10, то тоже мимо - я говорил про автомонтирование флешек. grin.gif
iDamir
владелец, судя по куску мана, меняется не chown-ом, а параметрами монтирования, описанными как раз в этом куске мана. Подсказка:
Код
uid=value and gid=value
              Set  the  owner  and the group of files and directories. The values are numerical.  The defaults are the uid
              and gid of the current process.
Для просмотра полной версии этой страницы, пожалуйста, пройдите по ссылке.
Русская версия IP.Board © 2001-2024 IPS, Inc.