[H-GEN] weird permissions problem
Anthony Towns
aj at erisian.com.au
Mon Jan 11 06:35:09 EST 2010
On Mon, Jan 11, 2010 at 02:47:10PM +1000, Clinton Roy wrote:
> Hi Troy,
> > The permissions of /home are
> > drwx------ ?43 root root ?4096 2010-01-11 11:24 home
> This is probably the problem.
> Your /home needs rx for group and other, so chmod go+rx /home and I
> think your problem will be fixed.
In particular, if you don't have "r" permissions on a directory you can't
see what's in it (ie, "ls" won't work), and without "x" permissions
on a directory you can't access anything in the directory (ie, "cd"
won't work).
To see this in a little more detail, try the following in an empty
directory somewhere:
mkdir read-only exec-only
date >read-only/some-file
date >exec-only/some-file
chmod 400 ./read-only
chmod 100 ./exec-only
ls -l
ls -l ./read-only # works, mostly
cat ./read-only/some-file # fails
ls -l ./exec-only # fails
cat ./exec-only/some-file # works
Cheers,
aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: Digital signature
URL: <http://lists.humbug.org.au/pipermail/general/attachments/20100111/78e66e4c/attachment.sig>
More information about the General
mailing list