ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Dmitry Vukolov <dvukol@rosmail.ru>
To: community@altlinux.ru
Subject: Re: [Comm] disks access
Date: Wed, 6 Aug 2003 00:32:19 +0400
Message-ID: <20030806003219.27f575f9.dvukol@rosmail.ru> (raw)
In-Reply-To: <20030805194822.7130AE31CF@master.altlinux.ru>

On Tue, 5 Aug 2003 20:26:42 +0200
Grigory Tuboltsev <gtubolcev@newmail.ru> wrote:

> Проблема возникла, не знаю, куда рыть, может, кто-то уже встречался ?
> 
> вот /etc/fstab:
> /dev/hdb5 / ext2 defaults 1 1
> /dev/hda1 /mnt/win_c umsdos defaults 1 1
> /dev/hda2 /mnt/wdc ext2 defaults 1 1
> и т.д.
> 
> Из этих дисков второй - для windows, а третий - для прочего, хранилище
> типа.

Раз это диск для windows, то имеет смысл использовать следующее (в
случае системной локали koi8-r):
/dev/hda1 /mnt/win_c vfat iocharset=koi8-r,umask=0,codepage=866,showexec
0 0
Правами доступа здесь управляет параметр umask.
Тогда
$ ls -ld /mnt/win_c
drwxrwxrwx   17 root     root        16384 Авг  6 00:16 /mnt/win_c

Т.е. доступ разрешен всем, как на чтение, так и на запись. Иначе
говоря, всё как в windows.

> При этом права получаются такие: 
> [root@localhost mnt]# l /mnt/
> итого 25
> drwxrwxr-x    7 root     root         1024 Июл 19 15:01 wdc/
> drwx------    7 root     root         4096 Янв  1  1970 win_c/
> 
> Соответственно, на wdc юзера (к-рый в группе root) пускают, а
> на win_c - нет. При попытке поменять права, получаю
> [root@localhost mnt]# chmod g+xr win_c/
> chmod: изменение прав доступа для `win_c/': No such file or directory
> 
> Что бы это значило, и что делать ? В /etc/security/console.perm
> упоминаний /dev/hd* вообще нету.

Это тут ни при чем. Права доступа к vfat, umsdos и т.д. определяются во
время монтирования файловой системы ($ man mount).

-- 
Dmitry Vukolov


  reply	other threads:[~2003-08-05 20:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-05 18:26 Grigory Tuboltsev
2003-08-05 20:32 ` Dmitry Vukolov [this message]
2003-08-06 14:09   ` Grigory Tuboltsev
2003-08-05 20:37 ` Alexej Kryukov

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=20030806003219.27f575f9.dvukol@rosmail.ru \
    --to=dvukol@rosmail.ru \
    --cc=community@altlinux.ru \
    /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