ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Alexander Bokovoy <a.bokovoy@sam-solutions.net>
To: community@altlinux.ru
Subject: Re: Re[6]: [Comm] win2003 cannot join samba
Date: Wed, 26 Nov 2003 12:35:49 +0200
Message-ID: <20031126103549.GI4272@sam-solutions.net> (raw)
In-Reply-To: <E1AOwti-000LkB-00.kolyag-mail-ru@f16.mail.ru>

On Wed, Nov 26, 2003 at 01:27:50PM +0300, "KoLyA"  wrote:
> >> начало пускать admin после того как добавил в систему и smbpasswd юзера admin, и  
> >> сказал что он admin users. но самое обидное, что когда его пустили, я вычислил что  
> >> пускают именно как алиас для рута, т.к. даже win резолвит имя admin в fkdom\root !!  
> >> а если юзера admin удалить, то алиас не пускает!!! это глюк такой?  
> >Нет, это правильное поведение. А чтобы не получилось admin -> fkdom\root, 
> >удалите запись root = admin из /etc/samba/smbusers. 
>  
> это понятно. но тогда зачем алиасы вообще нужны? если логин admin будет работать 
> только при наличии юзера admin? а я думал, пишем admin подразумеваем root в 
> соответствии с smbusers 
Нет, думать не надо, надо читать документацию :)

$ cat samba-docs/docbook/smbdotconf/security/adminusers.xml
<samba:parameter name="admin users"
                 context="S"
                 xmlns:samba="http://samba.org/common">
<listitem>
    <para>This is a list of users who will be granted 
    administrative privileges on the share. This means that they 
    will do all file operations as the super-user (root).</para>

    <para>You should use this option very carefully, as any user in 
    this list will be able to do anything they like on the share, 
    irrespective of file permissions.</para>

    <para>Default: <emphasis>no admin users</emphasis></para>

    <para>Example: <command moreinfo="none">admin users = jason</command></para>
</listitem>
</samba:parameter>

Вообщем, алиасы совсем для другого.
В принципе, admin users обычно имеет смысл помещать в описание ресурса
IPC$, поскольку добавление машин делается через него:

[IPC$]
  admin users = "Super Puper Administrator"

> >> ладно, ради эксперимента добавляем в систему и в smbpasswd юзера netadm  
> >> (то бишь имя не нагруженное всякими ассоциациями у самбы и у винды :-)). пишем что  
> >> admin users = netadm, а на win2003 зайдя как локальный администратор, добавляем  
> >> fkdom\netadm в локальную группу administrators (поскольку admin group в моей верси  
> >> самбы почему-то не работает, и соответственно доменной группы domain admins не  
> >> существует). и после этого все работает как должно, то бишь входим как _доменный_  
> >> юзер netadm, и имеем права _локального_ админа, то бишь твори в системе все что  
> >> хочешь.  
> еще вот что: когда винду ввели в домен, она себе записала, что в группу administrators 
> входят члены fkdom\administrators. с pdc на винде все б работало сразу. но ничего не дает 
> за неимением групп в самбе, поэтому чтобы иметь локальные привелегии на виндовой 
> машине, надо вручную добавлять юзеров из домена.
Я уже говорил, net groupmap -- смотрите документацию по net(8).

> >Так и должно быть, все правильно. Вообще, имя этого пользователя может 
> >быть любым :) 
> ну да. только надо написать что admin users = он. 
В этом и смысл всей этой задачи.


-- 
/ Alexander Bokovoy
Samba Team                      http://www.samba.org/
ALT Linux Team                  http://www.altlinux.org/
Midgard Project Ry              http://www.midgard-project.org/


  reply	other threads:[~2003-11-26 10:35 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-25 13:31 "KoLyA" 
2003-11-25 14:06 ` Kylik Semuon
2003-11-26  7:57   ` Re[2]: " "KoLyA" 
2003-11-25 14:15 ` Alexander Bokovoy
2003-11-26  8:26   ` Re[2]: [Comm] win2003 join samba - получилось! "KoLyA" 
2003-11-26 10:09     ` Alexander Bokovoy
2003-11-25 14:29 ` [Comm] win2003 cannot join samba Ilia Menchikh
2003-11-26  7:51   ` Re[2]: " "KoLyA" 
2003-11-26  9:27     ` Ilia Menchikh
2003-11-26 10:01       ` Re[4]: " "KoLyA" 
2003-11-26 10:12         ` Alexander Bokovoy
2003-11-26 10:27           ` Re[6]: " "KoLyA" 
2003-11-26 10:35             ` Alexander Bokovoy [this message]
2003-11-26 10:53               ` Re[8]: " "KoLyA" 
2003-11-26 11:23                 ` Alexander Bokovoy
2003-11-26 11:22               ` Re[6]: " Sergey Vlasov
2003-11-26 11:31                 ` Alexander Bokovoy

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=20031126103549.GI4272@sam-solutions.net \
    --to=a.bokovoy@sam-solutions.net \
    --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