ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: anyr@tut.by
To: community@lists.altlinux.org
Subject: Re: [Comm] Общий доступ к файлам для пользователей.
Date: Sun, 31 Jan 2010 14:25:28 +0200
Message-ID: <hk3srn$go5$1@ger.gmane.org> (raw)
In-Reply-To: <hjnjo7$62q$1@ger.gmane.org>

anyr@tut.by wrote:

> Хотелось бы "на лету".
Сделал через samba :( Пока пусть будет так.
Если вдруг кому понадобится:
1. создал пользователя и группу shared
2. chown -R shared:shared /public
3. chmod -R ugo=rwXrwXrX /public
4. mkdir /mnt/public
5. поправил smb.conf
	[public]
	path = /public
	guest ok = yes
	write list = user1,user2,shared
6. для монтирвоания при загрузке создал /etc/rc.d/rc.local:
	#!/bin/sh
	mount -t cifs //localhost/public /mnt/public -o
	user=shared,password="******",rw

Автоматическое монтирование через fstab сделать не получилось, поскольку 
samba запускается позже, чем происходит монтирование сетевых устройств 
(параметр _netdev не помог).

-- 
Andrey Yurkovsky



  parent reply	other threads:[~2010-01-31 12:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-26 20:36 anyr
2010-01-30  9:36 ` anyr
2010-01-31 12:25 ` anyr [this message]
2010-01-31 15:36   ` anyr
2010-01-31 15:44     ` Denis Nazarov
2010-01-31 18:38       ` anyr

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='hk3srn$go5$1@ger.gmane.org' \
    --to=anyr@tut.by \
    --cc=community@lists.altlinux.org \
    /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