[sisyphus] Как разрешить работу sudo?
Dmitry A. Kharitonov
=?iso-8859-1?q?kharpost_=CE=C1_rambler=2Eru?=
Сб Авг 11 16:46:56 MSD 2007
Dmitry V. Levin пишет:
> On Sat, Aug 11, 2007 at 03:20:29PM +0400, Dmitry A. Kharitonov wrote:
>> Dmitry V. Levin пишет:
>>> On Sat, Aug 11, 2007 at 03:00:22PM +0400, Dmitry A. Kharitonov wrote:
>>> [...]
>>>> [14:51:46 root на localhost ~]# sh -x /etc/control.d/facilities/sudo wheelonly
>>> [...]
>>>> +++ find /usr/bin -maxdepth 1 -path /usr/bin/sudo -printf %m_%u_%g
>>>> ++ STAT=
>>> Ну и дела...
>>> Что в вашей системе говорят
>>> $ find /usr/bin -maxdepth 1 -path /usr/bin/sudo -printf %m_%u_%g\\n
>>> $ find /usr/bin -maxdepth 1 -path /usr/bin/sudo -ls
>>>
>>>> -rws--x--- 1 root wheel 105768 Авг 6 00:00 /usr/bin/sudo
>>>>
>>>> Вроде бы работает нормально. Похоже глючит отображалка.
>>> Сомневаюсь.
>>>
>>> [...]
>>>> [14:58:08 root на localhost ~]# sh -x /etc/control.d/facilities/sudo
>>> Тогда уж "sh -x /etc/control.d/facilities/sudo status"
>> $ find /usr/bin -maxdepth 1 -path usr/bin/sudo -printf %m_%u_%g\\n
>> # find /usr/bin -maxdepth 1 -path usr/bin/sudo -printf %m_%u_%g\\n
>> $ find /usr/bin -maxdepth 1 -path /usr/bin/sudo -ls
>> # find /usr/bin -maxdepth 1 -path /usr/bin/sudo -ls
>
> А почему у вас /usr/bin не каталог а ссылка?
Ну а как я по вашему переместил? Именно так: переместил /usr/bin в /var
и создал ссылку.
> нынешний control на это не рассчитан.
>
> Можете приложить патч на /etc/control.d/functions (attached),
Спасибо, sudo заработало.
[16:00:53 root на localhost ~]# control
at public (public restricted atdaemon)
bind-debug disabled (enabled disabled)
bind-slave disabled (enabled disabled)
cdrdao public (public restricted)
cdrecord-classic public (public restricted)
chage restricted (public restricted)
chfn restricted (public restricted)
chsh restricted (public restricted)
cifsmount wheelonly (public wheelonly restricted)
cifsumount wheelonly (public wheelonly restricted)
consolehelper public (public wheelonly restricted)
crontab public (public restricted)
dovecot-auth none (postfix none)
dvd-ram-control public (public restricted legacy)
dvdrecord unknown (public restricted)
dvd+rw-booktype public (public restricted legacy)
dvd+rw-format public (public restricted legacy)
dvd+rw-mediainfo public (public restricted legacy)
fusermount restricted (public wheelonly restricted)
gpasswd restricted (public wheelonly restricted)
growisofs public (public restricted legacy)
kppp public (public netadmin restricted)
mount public (public wheelonly restricted)
newgrp restricted (public wheelonly restricted)
nfsmount restricted (public wheelonly restricted)
ntpd client (server client)
pam_mktemp enabled (enabled disabled)
passwd tcb (tcb traditional restricted)
php-cgi unknown (restricted relaxed public )
php-cli unknown (restricted relaxed public )
ping public (public netadmin restricted)
ping6 public (public netadmin restricted)
postfix server (local server filter)
postqueue public (public mailadm restricted)
pulseaudio regular (regular realtime realtume)
readcd unknown (public restricted)
rscsi unknown (public restricted)
sftp disabled (enabled disabled)
smbmount wheelonly (public wheelonly restricted)
su wheelonly (public wheel wheelonly restricted)
sudo wheelonly (public wheelonly restricted)
sudoers unknown (strict relaxed)
system-auth local (local ldap)
tcb_chkpwd tcb (traditional tcb restricted)
write public (public restricted)
xorg-server public (public xgrp restricted)
> но лучше сделайте /usr/bin снова каталогом.
Пока не получится, не помещается, там сейчас игрушка установлена.
Подробная информация о списке рассылки Sisyphus