ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: ruslandh <ruslandh@gmail.com>
To: sisyphus@lists.altlinux.org
Subject: [sisyphus] А что у нас  с клиентой самбы?
Date: Sat, 12 Dec 2015 18:47:43 +0300
Message-ID: <201512121847.48956@ruslandh> (raw)

[-- Attachment #1: Type: text/plain, Size: 735 bytes --]

Пытаюсь по самбе подключится к расшаренному ресурсу на роутере:

/etc/fstab:

//192.168.2.1/writer /mnt/Stan/Arhiv_L cifs 
noauto,credentials=/etc/samba/sambacreds,nofail.uid=writer,gid=writer,users
 0 0

$ mount /mnt/Stan/Arhiv_L/
This program is not installed setuid root -  "user" CIFS mounts 
not supported.

Ставлю суидный бит на /sbin/mount.cifs
$ mount /mnt/Stan/Arhiv_L/
error 13 (Permission denied) opening credential 
file /etc/samba/sambacreds

$ ls -l  /etc/samba/sambacreds
-rw-r----- 1 root root 30 дек 12 12:44 /etc/samba/sambacreds

(600 тем более). 
От пользователя монтируется, толькр если  /etc/samba/sambacreds 
доступен всем на чтение, и зачем тогда 
этот /etc/samba/sambacreds ?





-- 
С уважением Хихин Руслан

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

                 reply	other threads:[~2015-12-12 15:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=201512121847.48956@ruslandh \
    --to=ruslandh@gmail.com \
    --cc=ruslandh@narod.ru \
    --cc=sisyphus@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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

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


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