permission problems w/ ordinary user ....

Roland Smith rsmith at xs4all.nl
Sat Aug 2 23:46:05 UTC 2014


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
-- 
R.F.Smith                                   http://rsmith.home.xs4all.nl/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 5753 3324 1661 B0FE 8D93  FCED 40F6 D5DC A38A 33E0 (keyID: A38A33E0)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20140803/ee0ea666/attachment.sig>


More information about the freebsd-questions mailing list