When I create a new app with the rails command, it creates a log directory. You must chmod that to 666 according to the error message I get whenever anything (like script/generate) tries to log a message. Fine ... ... But, what the hell is this about??? $ ls -la log/ ls: cannot access log/.: Permission denied ls: cannot access log/..: Permission denied ls: cannot access log/development.log: Permission denied ls: cannot access log/test.log: Permission denied ls: cannot access log/server.log: Permission denied ls: cannot access log/production.log: Permission denied total 0 ?????????? ? ? ? ? ? . ?????????? ? ? ? ? ? .. ?????????? ? ? ? ? ? development.log ?????????? ? ? ? ? ? production.log ?????????? ? ? ? ? ? server.log ?????????? ? ? ? ? ? test.log (entries are in red and blinking) BUT $ sudo ls -la log/ Password: total 4 drw-rw-rw- 2 nobrow apache 168 Oct 24 20:12 . drwxr-xr-x 14 nobrow apache 392 Oct 24 20:12 .. -rw-rw-rw- 1 nobrow apache 2479 Oct 24 20:12 development.log -rw-rw-rw- 1 nobrow apache 0 Oct 24 20:12 production.log -rw-rw-rw- 1 nobrow apache 0 Oct 24 20:12 server.log -rw-rw-rw- 1 nobrow apache 0 Oct 24 20:12 test.log I am the owner of these files so why do they not show up properly unless I list them as root? Of course the log files cant be accessed by the scripts to log messages either. This is really bizarre. Bash on Gentoo. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
cd into the directory where the "log" directory lives. chmod a+x log On 10/24/07, nobrow <nobrow-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > When I create a new app with the rails command, it creates a log > directory. You must chmod that to 666 according to the error message I > get whenever anything (like script/generate) tries to log a message. > Fine ... > > ... But, what the hell is this about??? > > $ ls -la log/ > ls: cannot access log/.: Permission denied > ls: cannot access log/..: Permission denied > ls: cannot access log/development.log: Permission denied > ls: cannot access log/test.log: Permission denied > ls: cannot access log/server.log: Permission denied > ls: cannot access log/production.log: Permission denied > total 0 > ?????????? ? ? ? ? ? . > ?????????? ? ? ? ? ? .. > ?????????? ? ? ? ? ? development.log > ?????????? ? ? ? ? ? production.log > ?????????? ? ? ? ? ? server.log > ?????????? ? ? ? ? ? test.log > > (entries are in red and blinking) > > BUT > > $ sudo ls -la log/ > Password: > total 4 > drw-rw-rw- 2 nobrow apache 168 Oct 24 20:12 . > drwxr-xr-x 14 nobrow apache 392 Oct 24 20:12 .. > -rw-rw-rw- 1 nobrow apache 2479 Oct 24 20:12 development.log > -rw-rw-rw- 1 nobrow apache 0 Oct 24 20:12 production.log > -rw-rw-rw- 1 nobrow apache 0 Oct 24 20:12 server.log > -rw-rw-rw- 1 nobrow apache 0 Oct 24 20:12 test.log > > I am the owner of these files so why do they not show up properly > unless I list them as root? Of course the log files cant be accessed > by the scripts to log messages either. > > This is really bizarre. > > Bash on Gentoo. > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Oct 24, 8:44 pm, "Michael Graff" <skan.gryp...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> cd into the directory where the "log" directory lives. > > chmod a+x log > > On 10/24/07, nobrow <nob...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > When I create a new app with the rails command, it creates a log > > directory. You must chmod that to 666 according to the error message I > > get whenever anything (like script/generate) tries to log a message. > > Fine ... > > > ... But, what the hell is this about??? > > > $ ls -la log/ > > ls: cannot access log/.: Permission denied > > ls: cannot access log/..: Permission denied > > ls: cannot access log/development.log: Permission denied > > ls: cannot access log/test.log: Permission denied > > ls: cannot access log/server.log: Permission denied > > ls: cannot access log/production.log: Permission denied > > total 0 > > ?????????? ? ? ? ? ? . > > ?????????? ? ? ? ? ? .. > > ?????????? ? ? ? ? ? development.log > > ?????????? ? ? ? ? ? production.log > > ?????????? ? ? ? ? ? server.log > > ?????????? ? ? ? ? ? test.log > > > (entries are in red and blinking) > > > BUT > > > $ sudo ls -la log/ > > Password: > > total 4 > > drw-rw-rw- 2 nobrow apache 168 Oct 24 20:12 . > > drwxr-xr-x 14 nobrow apache 392 Oct 24 20:12 .. > > -rw-rw-rw- 1 nobrow apache 2479 Oct 24 20:12 development.log > > -rw-rw-rw- 1 nobrow apache 0 Oct 24 20:12 production.log > > -rw-rw-rw- 1 nobrow apache 0 Oct 24 20:12 server.log > > -rw-rw-rw- 1 nobrow apache 0 Oct 24 20:12 test.log > > > I am the owner of these files so why do they not show up properly > > unless I list them as root? Of course the log files cant be accessed > > by the scripts to log messages either. > > > This is really bizarre. > > > Bash on Gentoo.Worked, thanks. Why? Why does the dir have to be a+x to be able to list the files? Are they not "real" files? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Oct 24, 8:44 pm, "Michael Graff" <skan.gryp...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> cd into the directory where the "log" directory lives. > > chmod a+x log > > On 10/24/07, nobrow <nob...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > When I create a new app with the rails command, it creates a log > > directory. You must chmod that to 666 according to the error message I > > get whenever anything (like script/generate) tries to log a message. > > Fine ... > > > ... But, what the hell is this about??? > > > $ ls -la log/ > > ls: cannot access log/.: Permission denied > > ls: cannot access log/..: Permission denied > > ls: cannot access log/development.log: Permission denied > > ls: cannot access log/test.log: Permission denied > > ls: cannot access log/server.log: Permission denied > > ls: cannot access log/production.log: Permission denied > > total 0 > > ?????????? ? ? ? ? ? . > > ?????????? ? ? ? ? ? .. > > ?????????? ? ? ? ? ? development.log > > ?????????? ? ? ? ? ? production.log > > ?????????? ? ? ? ? ? server.log > > ?????????? ? ? ? ? ? test.log > > > (entries are in red and blinking) > > > BUT > > > $ sudo ls -la log/ > > Password: > > total 4 > > drw-rw-rw- 2 nobrow apache 168 Oct 24 20:12 . > > drwxr-xr-x 14 nobrow apache 392 Oct 24 20:12 .. > > -rw-rw-rw- 1 nobrow apache 2479 Oct 24 20:12 development.log > > -rw-rw-rw- 1 nobrow apache 0 Oct 24 20:12 production.log > > -rw-rw-rw- 1 nobrow apache 0 Oct 24 20:12 server.log > > -rw-rw-rw- 1 nobrow apache 0 Oct 24 20:12 test.log > > > I am the owner of these files so why do they not show up properly > > unless I list them as root? Of course the log files cant be accessed > > by the scripts to log messages either. > > > This is really bizarre. > > > Bash on Gentoo.Same is true for tmp? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---