ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Kharitonov A. Dmitry" <kharpost@rambler.ru>
To: ruslandh@gmail.com,
	 ALT Linux Community general discussions
	<community@lists.altlinux.org>
Subject: Re: [Comm] ntfs: failed to set times on...
Date: Mon, 18 Nov 2013 18:19:01 +0400
Message-ID: <528A21D5.3090007@rambler.ru> (raw)
In-Reply-To: <201311180931.01379@ruslandh>

18.11.2013 09:30, Hihin Ruslan пишет:
> Здравствуйте Kharitonov A. Dmitry
>    В сообщении от 18 ноября 2013 Kharitonov A. Dmitry написал(a):
>> Как сделать чтоб при копировании на ntfs разделы от обычного
>> пользователя не возникали ошибки такого вида:
>> rsync: failed to set times on
>> "/mnt/data/PCB/usbaspiso/firmware/USBasp9010/USBasp9010/firmwa
>> re/.tpi_defs.h.ni70B4": Operation not permitted (1)
>> ?
> У файла (каталога более высокого уровня) должны быть права,
> позволяющие выполнять эту опрацию. Так-же как и на локальных
> Linux системах.
С правами всё в порядке. Это какие-то ограничения драйвера ntfs. При 
изменении времени существующего файла он ругается.
[user@eee2 data 17:19:23]$ cd /mnt/data
[user@eee2 data 17:45:05]$ mount | grep /mnt/data
/dev/sda8 on /mnt/data type fuseblk 
(rw,nosuid,nodev,noatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
[user@eee2 data 17:45:24]$ mkdir tmp
[user@eee2 data 17:46:25]$ echo "test" >tmp/tmp
[user@eee2 data 17:50:18]$ rsync -trP tmp/tmp{,1}
sending incremental file list
tmp
5 100% 0.00kB/s 0:00:00 (xfer#1, to-check=0/1)
rsync: failed to set times on "/mnt/data/tmp/.tmp1.P8eRT3": Operation 
not permitted (1)

sent 74 bytes received 31 bytes 210.00 bytes/sec
total size is 5 speedup is 0.05
rsync error: some files/attrs were not transferred (see previous errors) 
(code 23) at main.c(1055) [sender=3.0.9]
[user@eee2 data 17:50:54]$ cp tmp/tmp{,1}
cp: переписать «tmp/tmp1»?
[user@eee2 data 17:51:05]$ cp tmp/tmp{,1}
cp: переписать «tmp/tmp1»? y
[user@eee2 data 17:52:12]$ ls -ld /mnt/data
drwxrwxrwx 1 root root 4096 ноя 18 17:46 /mnt/data
[user@eee2 data 17:57:22]$ ls -ld /mnt/data/tmp
drwxrwxrwx 1 root root 232 ноя 18 17:50 /mnt/data/tmp
[user@eee2 data 17:58:00]$ ls -l /mnt/data/tmp
итого 1
-rwxrwxrwx 1 root root 5 ноя 18 17:50 tmp
-rwxrwxrwx 1 root root 5 ноя 18 17:52 tmp1
Однако:
[user@eee2 data 18:03:46]$ sudo chown -c user:user /mnt/data
[sudo] password for user:
changed ownership of '/mnt/data' from root:root to user:user
[user@eee2 data 18:03:56]$ sudo chown -c user:user /mnt/data/tmp/
changed ownership of '/mnt/data/tmp/' from root:root to user:user
[user@eee2 data 18:17:07]$ rsync -trP tmp/tmp{,1}
sending incremental file list
tmp
5 100% 0.00kB/s 0:00:00 (xfer#1, to-check=0/1)
rsync: failed to set times on "/mnt/data/tmp/.tmp1.7RgXOl": Operation 
not permitted (1)

sent 74 bytes received 31 bytes 210.00 bytes/sec
total size is 5 speedup is 0.05
rsync error: some files/attrs were not transferred (see previous errors) 
(code 23) at main.c(1055) [sender=3.0.9]
[user@eee2 data 18:17:09]$ rsync -rP tmp/tmp{,1}
sending incremental file list
tmp
5 100% 0.00kB/s 0:00:00 (xfer#1, to-check=0/1)

sent 74 bytes received 31 bytes 210.00 bytes/sec
total size is 5 speedup is 0.05

При монтировании собственником всегда встаёт root:root
Может это в udev.rules что-то подправить?



  reply	other threads:[~2013-11-18 14:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-18  5:20 Kharitonov A. Dmitry
2013-11-18  5:30 ` Hihin Ruslan
2013-11-18 14:19   ` Kharitonov A. Dmitry [this message]
2013-11-18 16:16     ` Hihin Ruslan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=528A21D5.3090007@rambler.ru \
    --to=kharpost@rambler.ru \
    --cc=community@lists.altlinux.org \
    --cc=ruslandh@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git