Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jul 2008 20:46:39 +0400
From:      Boris Samorodov <bsam@ipt.ru>
To:        Randy Schultz <schulra@earlham.edu>
Cc:        freebsd-jail@freebsd.org
Subject:   Re: visudo non-functional in 7.0-RELEASE jail
Message-ID:  <14238192@ipt.ru>
In-Reply-To: <Pine.BSF.4.64.0807301200420.18456@tdream.lly.earlham.edu> (Randy Schultz's message of "Wed\, 30 Jul 2008 12\:04\:16 -0400 \(EDT\)")
References:  <20080729221150.GA92564@k7.mavetju> <Pine.BSF.4.64.0807301200420.18456@tdream.lly.earlham.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 30 Jul 2008 12:04:16 -0400 (EDT) Randy Schultz wrote:
> On Wed, 30 Jul 2008, Edwin Groothuis spaketh thusly:

> -}Since lock_file() consists of three different functions depending
> -}on your capabilities, could you pastebin the output of your config.log
> -}somwwhere to figure out which was is used?

> http://www.pastebin.be/13079

> -}
> -}I have visudo (and sudo) here working without any problems, inside
> -}and outside jails.

> For fbsd 7.0?  I have it for 6.x.  If yours is 7.0 then I must have missed
> something.  Did you set your jails up the long way or with ezjail?

I have 7-STABLE here and some ezjail jails. The "sudo ezjail update -i"
command gives me:
-----
% ls -l /space/jails/basejail/usr/bin/su=20=20=20=20=20
-r-xr-xr-x  1 root  wheel  16904 30 =D0=B8=D1=8E=D0=BB 20:34 /space/jails/b=
asejail/usr/bin/su
-----

...while before updating it has been:
-----
-r-sr-xr-x  1 root  wheel  16904 23 =D0=B8=D1=8E=D0=BB 19:09 /space/jails/b=
asejail/usr/bin/su
-----

Note the bit "s" for the owner of the file. Sure the command
"sudo chmod u+s /space/jails/basejail/usr/bin/su" helps here.


HTH and WBR
--=20
bsam



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14238192>