[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FreeBSD 6.3-PRERELEASE unable to change file permission
- To: "Michael Proto" <mike_(_at_)_jellydonut_(_dot_)_org>
- Subject: Re: FreeBSD 6.3-PRERELEASE unable to change file permission
- From: "Anjang Aki" <mailman_(_dot_)_msc_(_at_)_gmail_(_dot_)_com>
- Date: Tue, 4 Dec 2007 01:50:47 +0800
- Cc: freebsd-stable_(_at_)_freebsd_(_dot_)_org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=OY+fnPvade4RbKEYm8KGnwfdwwbyq68MndP3mblVrPo=; b=agaWLGj+yrAtlTMig/8zcuAEVjTKKTyr1HxOuzV1q7eo0qTVFWzF+/LgCCXuB/vBE4E32pVOXsm6SUrIbhUOU0Jgi1WjrTDXi83ovTIfbMgaPhpBMDIsP0pCDnWGF79+HOFFS4aF9Sz4ZQfmNRT20787xGuDPbWLA9QNQIKJsZc=
i just got the answer..
i need to run init 1 and do chflags -R 0 /usr/bin/rlogin and then i
can change the file permission using chmod
thanks for your advice
On 12/4/07, Michael Proto <mike_(_at_)_jellydonut_(_dot_)_org> wrote:
> Anjang Aki wrote:
> > hi!.. i'm not able to change file permission to disable rlogin and
> > login on my box even as root
> >
> > # ls -lo /usr/bin/login /usr/bin/rlogin
> > -r-sr-xr-x 1 root wheel schg 19996 Dec 1 13:04 /usr/bin/login
> > -r-sr-xr-x 1 root wheel schg 10140 Dec 1 13:04 /usr/bin/rlogin
> >
> > # chflags -R nouchg login rlogin
> > chflags: /usr/bin/login: Operation not permitted
> > chflags: /usr/bin/rlogin: Operation not permitted
> >
> > # chmod a=rx /usr/bin/login /usr/bin/rlogin
> > chmod: /usr/bin/login: Operation not permitted
> > chmod: /usr/bin/rlogin: Operation not permitted
> >
> > it makes me uneasy as my users can still use login and rlogin to gain
> > access to the box
> >
> > my system:
> > # uname -a
> > FreeBSD k3.college.edu 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #1: Sun
> > Dec 2 18:51:02 MYT 2007 root_(_at_)_college_(_dot_)_edu:/usr/obj/usr/src/sys/EDU
> > i386
> >
> > thanks for advice
> >
>
> It looks like these files have the system-immutable flags set (schg),
> not the user-immutable (uchg). What happens if you do "chflags noschg
> /usr/bin/login /usr/bin/rlogin"?
>
>
> -Proto
>
--
-- Anjang Aki --
_______________________________________________
freebsd-stable_(_at_)_freebsd_(_dot_)_org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe_(_at_)_freebsd_(_dot_)_org"
Visit your host, monkey.org