permission denied into $home
Dale Farnsworth
dale at farnsworth.org
Sat Mar 25 22:25:18 MST 2006
Craig White wrote:
> On Sun, 2006-03-26 at 03:17 +0000, Dale Farnsworth wrote:
> > In article <20060325235347.CEVS17437.fed1rmmtao12.cox.net@[172.18.180.8]> bmike101 at cox.net wrote:
> > > > Mike could/should provide more information.
> > > root at 2[home]# ls -ld / /home /home/bmike1 /home/
> > > bmike1/.bashrc
> > > drwxr-xr-x 18 root root 4096 2006-03-25
> > > 07:00 /
> > > drwxr-xr-x 6 root root 4096 2006-02-21
> > > 19:56 /home
> > > drwxrwxrwx 55 bmike1 bmike1 4096 2006-03-24
> > > 22:41 /home/bmike1
> > > -rw-rw-rw- 1 bmike1 bmike1 123 2006-02-21
> >
> > The permissions of /home/bmike1 are obviously wrong.
> >
> > This is one of those rare times when the original error message
> > pointed precisely at the problem.
> ----
> ;-)
>
> chmod -R +x /home
You do *not* want to make all files and directories under /home
executable. You'll have to be more selective. This should take
care of the directories:
find /home -type d -print0 | xargs -0 chmod +x
If you have files that should be executable, perhaps in
/home/bmike1/bin, do something like:
chown +x /home/bmike1/bin/*
> (optional)
> chmod -R g-w,o-w /home/bmike1
> # but I think you are a one user system so it probably doesn't matter
Yes, this is a good idea, I'd include everything under /home:
chmod -R go-w /home
-Dale
More information about the PLUG-discuss
mailing list