permission problems w/ ordinary user ....

William A. Mahaffey III wam at hiwaay.net
Sat Aug 2 23:52:56 UTC 2014


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.



More information about the freebsd-questions mailing list