Home > Archive > PHP Smarty Templates > May 2005 > Re: [SMARTY] OS X chmod problem
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: [SMARTY] OS X chmod problem
|
|
| Jochem Maas 2005-05-04, 9:00 pm |
| Marcus Bointon wrote:
> I've run into a little problem. The docs for getcwd() mentions: "On
> some Unix variants, getcwd() will return FALSE if any one of the parent
> directories does not have the readable or search mode set, even if the
> current directory does." OS X is evidently one of these, and it's
> stopping Smarty running at all as it causes the
> smarty_core_create_dir_structure function to fail in userdir sites.
>
> This means that I have to give read and execute permissions to /, /
> Users, /Users/marcus, /Users/marcus/Sites etc, which is not great for
> userdir sites. I noticed that the permissions on /Users is:
>
> drwxrwxr-t 12 root admin 408 Apr 29 21:58 ./
>
> I can't find any docs on what the 't' bit means. Anyone know?
it means the 'sticky bit' is on.
plenty of documentation about the sticky bit to get about :-)
here is one to start you off....:
http://www.faqs.org/faqs/hp/hpux-faq/section-70.html
can't help you with OSX tho.
(apart from to say it looks nicer than windows on the whole :-)
>
> Any other workarounds for this?
>
> TIA,
>
> Marcus
| |
| Marcus Bointon 2005-05-04, 9:00 pm |
| On 4 May 2005, at 16:03, Jochem Maas wrote:
> it means the 'sticky bit' is on.
I'd heard of sticky bits (and what they do) but didn't realise that's
how they appear in output from ls. Anyway, I fixed the problem
(unrelated to the sticky bit) by doing what the PHP docs implied, by
doing chmod a+rx on all directories from my site folder upwards and
suddenly getcwd starts working and thus so does smarty. One for the
archives, perhaps the Smarty docs too...
> can't help you with OSX tho.
> (apart from to say it looks nicer than windows on the whole :-)
I'm running Tiger and I have to say that it is very nice indeed, even
though my graphics card (GeForce 4MX) can't do all the funky new
stuff. ArsTechnica has a deep review of 10.4 that's very interesting
reading.
Marcus
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
marcus@synchromedia.co.uk | http://www.synchromedia.co.uk
| |
| Jochem Maas 2005-05-04, 9:00 pm |
| Marcus Bointon wrote:
> On 4 May 2005, at 16:03, Jochem Maas wrote:
>
>
>
> I'd heard of sticky bits (and what they do) but didn't realise that's
> how they appear in output from ls. Anyway, I fixed the problem
your post stuck out because I learnt this myself only a very short while
ago while researching into a some cvs administration stuff
> (unrelated to the sticky bit) by doing what the PHP docs implied, by
> doing chmod a+rx on all directories from my site folder upwards and
you did use 'chmod -R' and save yourself quite a bit of typing I hope.
the sticky bit (on directories anyway) determines the group:user of new/overwritten
files inside the given directory... it means new files/dir automatically
inherit the correct perms.
> suddenly getcwd starts working and thus so does smarty. One for the
> archives, perhaps the Smarty docs too...
glad you got it fixed. :-)
>
>
>
> I'm running Tiger and I have to say that it is very nice indeed, even
> though my graphics card (GeForce 4MX) can't do all the funky new stuff.
> ArsTechnica has a deep review of 10.4 that's very interesting reading.
2 things stop me using OSX:
1. you can't maximise windows like you can elsewhere.
2. only the bottom/right corner of a window can be used to resize.
they day they 'fix' 2 in the std install is the day I buy a G5.
....but each to their own in this game :-)
>
> Marcus
| |
| Marcus Bointon 2005-05-04, 9:00 pm |
| On 4 May 2005, at 19:03, Jochem Maas wrote:
> you did use 'chmod -R' and save yourself quite a bit of typing I hope.
Actually chmod -R is no use for this - You need to set the +rx
permissions for the site directory and all above, not below it (as -R
would do). Doing chmod -R a+rx in / doesn't do anything for your
security!
Marcus
|
|
|
|
|