ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: cornet <cornet@zmail.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] Права на скрипт
Date: Wed Jul 11 15:16:01 2001
Message-ID: <3B4C373E.F6172E43@zmail.ru> (raw)
In-Reply-To: <000a01c109fa$4b8361e0$36cfbdd5@darkstar>

> Mikhail Nikitin wrote:
> 
> Существует скрипт который выполняет некоторую работу, и
> добавляет пользователя unix (создает нового) с помощью adduser.
> На скрипт выставлены все максимально возможные права:
> (пока для тестирования) -rwsrwsrwx.
> 
> При этом при попытке использовать внутри скрипта команду
> adduser
> выдается сообщение:
> adduser: unable to lock password file
> (если пользователь, запускающий скрипт - не root, иначе - все
> ок).
> 
> Как бороться с этим, если предполагается, что в дальнейшем
> права на скрипте будут стоять только на запуск?
> 

Не зависимо то пермишенов скрипт идет с правами того, кто его
запустил.
Поставите suid бит и будет идти с правами владельца, а не
запустившего.
Но это не всегда работает, вот например smbpasswd через suid
работать не хочет ;-))

-- 
******** FIRE & STEEL ********



       reply	other threads:[~2001-07-11 15:16 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-11 15:16 ` cornet [this message]
2001-07-11 15:23   ` Sergey Bolshakov
2001-07-11 15:32     ` cornet
2001-07-11 15:34     ` [mdk-re] Re[2]: " Ilya
2001-07-11 15:43       ` cornet
2001-07-11 17:23         ` Artem K. Jouravsky
2001-07-12  1:17           ` [mdk-re] Каждый юзер имеет право на скрипт :) Mikhail Zabaluev
2001-07-12  3:50           ` [mdk-re] Re[2]: [mdk-re] Права на скрипт Yura Gusev
2001-07-12 16:11             ` Artem K. Jouravsky
2001-07-13  9:42               ` Yura Gusev
2001-07-13 23:14                 ` [mdk-re] " Mikhail Zabaluev
2001-07-11 15:55   ` [mdk-re] " Artem K. Jouravsky

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=3B4C373E.F6172E43@zmail.ru \
    --to=cornet@zmail.ru \
    --cc=mandrake-russian@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