From owner-freebsd-questions@FreeBSD.ORG Sat Aug 2 23:52:56 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 35D2E594 for ; Sat, 2 Aug 2014 23:52:56 +0000 (UTC) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 008BA2F10 for ; Sat, 2 Aug 2014 23:52:55 +0000 (UTC) Received: from [192.168.0.4] (rbn1-216-180-19-118.adsl.hiwaay.net [216.180.19.118]) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id s72Nqsvg005663 for ; Sat, 2 Aug 2014 18:52:54 -0500 Message-ID: <53DD7B4D.90903@hiwaay.net> Date: Sat, 02 Aug 2014 18:59:09 -0500 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: "FreeBSD Questions !!!!" Subject: Re: permission problems w/ ordinary user .... References: <53DD742F.3020408@hiwaay.net> <20140802234554.GA34503@slackbox.erewhon.home> In-Reply-To: <20140802234554.GA34503@slackbox.erewhon.home> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Aug 2014 23:52:56 -0000 On 08/02/14 18:45, Roland Smith wrote: > On Sat, Aug 02, 2014 at 06:28:47PM -0500, William A. Mahaffey III wrote: >> .... I have been trying to setup the regular user (me, non-root) on my >> newly minted FreeBSD 9.3 box. I tried su-ing from tooy & ssh-ing in as >> me from another box, both give weird results, see the following from my >> syslog: >> >> >> Aug 2 17:59:03 kabini1 ntpd[676]: ntpd 4.2.4p5-a (1) >> Aug 2 17:59:03 kabini1 kernel: . >> Aug 2 18:02:16 kabini1 ntpd[677]: time reset -0.337616 s >> Aug 2 18:17:11 kabini1 su: _secure_path: cannot stat >> /home/wam/.login_conf: Permission denied >> Aug 2 18:17:11 kabini1 su: _secure_path: cannot stat >> /home/wam/.login_conf: Permission denied > That could be a symptom of the x permission disappearing. > >> also, the home-directory keeps getting the 'x' permission bit set to off >> by .... something .... > To the best of my knowledge there is nothing in the base system that normally > does that. > > But if the x bit _is_ disappearing, then something is doing a chmod(1) or > chmod(2). > > Do you have any scripts or cron jobs running? Or is there a chmod in one of > your rc files like ~/.profile, ~/.tcshrc or /etc/csh.cshrc? > > You could set the user immutable flag or even the system immutable flag on > that directory (or remount the partition as read-only) and see if you get any > error messages in /var/log/messages. > >> I can ssh in as root no sweat > Yikes. That is usually the first thing I'd disable! > > > Roland I do that (easy root login) on purpose, my LAN is not internet exposed (except when I'm browsing) .... I am thinking that the failed login is somehow resetting the perms, but that is pure conjecture .... -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr.