l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
November 4: Social gathering
Next Installfest:
TBD
Latest News:
Oct. 10: LUGOD Installfests coming again soon
Page last updated:
2004 Aug 17 14:18

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Permissions mysteriously changed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Permissions mysteriously changed



On Tue, Aug 17, 2004 at 01:58:45PM -0700, Richard Crawford wrote:
> A user came to me today and told me that he was unable to open or edit a
> couple of his files.  I went in to look and saw that the permissions on
> the files in question were set to 000, so that the directory entry looked
> like this:
> 
> ---------- 1 joe webdev 152 Aug 13 15:27 img1.jpg
> ---------- 1 joe webdev 152 Aug 13 15:28 img2.jpg
> 
> I went ahead and reset the permissions to 766 but I'm puzzled as to what
> could have caused this change to happen in the first place.

Err, shouldn't that be "644" or "664" for these files?

766 would mean:

  Owner: Read/Write/Exec
  Group: Read/Write
  Other: Read/Write

Exec doesn't make much sense for a JPEG.  And Read/Write for Other is
probably not a good idea.  For Group, it depends on if others in 'webdev'
want to be able to edit the file (which I'm guessing is true).


I'd also check the permissions of the directories these files are in
("ls -ld .")

Sensible permissions would be 755, 775, 700, or 770, depending on the
situation.  (The first two make sense for stuff you want people to see
over the web, so that your webserver process can read them.  The second
two make sense for more private stuff.  And, as before, the group permissions
depend on the situation, and the group ownership of the file/dir in question.)

Hope I'm not telling you a bunch of junk you already know, simply due to
a typo, or something. ;)


Good luck!

-bill!
_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.