permission denied...
Monday, 18. February 2008, 15:13:26
For several hours I tried to fix a small "bug" in my subversion installation, but without any results. I commited a file to subversion successfully, but the hook "post-commit" didn't do anything at all. So I logged on to my server, started the hook manually and it worked perfectly.
So what went wrong? Well... it all started with my login to the server. As I'm pretty lazy, I (locally) logged in as root, installed subversion, created the logfiles and so on. Everything seemed fine and as commiting worked too I was pretty happy. Then I changed the hook to update the logfiles but nothing happened. I started the hook manually... and it worked.
So I started to read several blogs about subversion, read online manuals, tutorials and so on... nothing helped.
When I asked a friend concerning this problem I suddenly had an idea... I logged on the server switched the user to my testuser and started the hook manually:
After adjusting the permissions and ownership of the logfile everything works totally fine now. I still can't believe how blind I have been...
So what went wrong? Well... it all started with my login to the server. As I'm pretty lazy, I (locally) logged in as root, installed subversion, created the logfiles and so on. Everything seemed fine and as commiting worked too I was pretty happy. Then I changed the hook to update the logfiles but nothing happened. I started the hook manually... and it worked.
So I started to read several blogs about subversion, read online manuals, tutorials and so on... nothing helped.
When I asked a friend concerning this problem I suddenly had an idea... I logged on the server switched the user to my testuser and started the hook manually:
[testuser@localhost hooks] $ sh post-commit post-commit: line 54: /var/log/svn/project.log: Permission denied post-commit: line 55: /var/log/svn/project.log: Permission denied
After adjusting the permissions and ownership of the logfile everything works totally fine now. I still can't believe how blind I have been...
By claudeb, # 24. February 2008, 12:19:24
By bighead2007, # 24. February 2008, 14:22:37
By Treggats, # 24. February 2008, 16:12:38
I guess after 2 weeks I just forgot that root always works fine, but as I'm totally paranoid about external users I have a pretty restrictive permission setup. At least the machine now runs smoothly and I will surely remember the hours I spent on this problem for a long, long time.
And concerning my WinXP... my working account isn't able to install/setup anything, but that's fine. I just can't trust machines where a blue screen doesn't mean anything good!
I love my C64!
By Schalandra, # 27. February 2008, 09:30:28
Originally posted by Schalandra:
Speaking of that, about a month ago I noticed a monitor on somebody's desk showing a dual-pane, text-based, blue-background file manager. Yes, it was running full-screen on a 17'' display. Knowing I was the only Linux kid on the block, I was curious to learn more about it. Turns out it really was a WinXP box running something called FAR Manager (or something like that). The guy actually liked it better than the desktop. It made my day.
P.S. You still have a working C64? Cool! But I'm not sure I'd have the patience to use a real micro nowadays. Emulators FTW
By claudeb, # 27. February 2008, 12:18:12
Besides I'm using an emulator (in fact I have 3 different ones) for watching most demos I get my hands on... but sometimes the demos just don't work perfectly on an emulator and the REAL fella got to make my day.
By Schalandra, # 27. February 2008, 12:41:13
i like it
wish i could learn how to !
bravo
By rezadotcom, # 27. February 2008, 20:34:54